@burdenoff/microfe-cosmicintersection 2026.1108.1 → 2026.1109.1

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.
Files changed (90) hide show
  1. package/dist/cosmicintersection/api/cosmicApi.d.ts +14 -0
  2. package/dist/cosmicintersection/api/cosmicApi.d.ts.map +1 -1
  3. package/dist/cosmicintersection/api/cosmicApi.js +71 -56
  4. package/dist/cosmicintersection/api/cosmicApi.js.map +1 -1
  5. package/dist/cosmicintersection/api/databricksTransport.d.ts +13 -0
  6. package/dist/cosmicintersection/api/databricksTransport.d.ts.map +1 -0
  7. package/dist/cosmicintersection/api/databricksTransport.js +38 -0
  8. package/dist/cosmicintersection/api/databricksTransport.js.map +1 -0
  9. package/dist/cosmicintersection/components/ActionMenu.js +17 -17
  10. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts +13 -0
  11. package/dist/cosmicintersection/components/DatabricksQueueForm.d.ts.map +1 -0
  12. package/dist/cosmicintersection/components/DatabricksQueueForm.js +221 -0
  13. package/dist/cosmicintersection/components/DatabricksQueueForm.js.map +1 -0
  14. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts +6 -0
  15. package/dist/cosmicintersection/components/DatabricksRunPanel.d.ts.map +1 -0
  16. package/dist/cosmicintersection/components/DatabricksRunPanel.js +206 -0
  17. package/dist/cosmicintersection/components/DatabricksRunPanel.js.map +1 -0
  18. package/dist/cosmicintersection/components/EntityFormShell.js +7 -7
  19. package/dist/cosmicintersection/components/EntityTagsField.js +8 -8
  20. package/dist/cosmicintersection/components/ErrorState.js +4 -4
  21. package/dist/cosmicintersection/components/FileUploadField.js +8 -8
  22. package/dist/cosmicintersection/components/Pagination.js +6 -6
  23. package/dist/cosmicintersection/components/ReleaseDraftDialog.js +17 -17
  24. package/dist/cosmicintersection/components/RunTriageCard.js +12 -12
  25. package/dist/cosmicintersection/components/SchemaProposalPanel.js +35 -35
  26. package/dist/cosmicintersection/components/SchemaProposalPanel.js.map +1 -1
  27. package/dist/cosmicintersection/components/WorkspaceTagsPicker.js +12 -12
  28. package/dist/cosmicintersection/components/index.js +7 -7
  29. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts +2 -0
  30. package/dist/cosmicintersection/context/CosmicIntersectionContext.d.ts.map +1 -1
  31. package/dist/cosmicintersection/context/CosmicIntersectionContext.js +17 -13
  32. package/dist/cosmicintersection/context/CosmicIntersectionContext.js.map +1 -1
  33. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts +69 -0
  34. package/dist/cosmicintersection/hooks/useDatabricksExecutions.d.ts.map +1 -0
  35. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js +89 -0
  36. package/dist/cosmicintersection/hooks/useDatabricksExecutions.js.map +1 -0
  37. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts +59 -0
  38. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.d.ts.map +1 -0
  39. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js +158 -0
  40. package/dist/cosmicintersection/hooks/useDatabricksQueueForm.js.map +1 -0
  41. package/dist/cosmicintersection/lib/databricksForm.d.ts +4 -0
  42. package/dist/cosmicintersection/lib/databricksForm.d.ts.map +1 -0
  43. package/dist/cosmicintersection/lib/databricksForm.js +31 -0
  44. package/dist/cosmicintersection/lib/databricksForm.js.map +1 -0
  45. package/dist/cosmicintersection/lib/databricksIntent.d.ts +19 -0
  46. package/dist/cosmicintersection/lib/databricksIntent.d.ts.map +1 -0
  47. package/dist/cosmicintersection/lib/databricksIntent.js +60 -0
  48. package/dist/cosmicintersection/lib/databricksIntent.js.map +1 -0
  49. package/dist/cosmicintersection/lib/databricksPresentation.d.ts +5 -0
  50. package/dist/cosmicintersection/lib/databricksPresentation.d.ts.map +1 -0
  51. package/dist/cosmicintersection/lib/databricksPresentation.js +27 -0
  52. package/dist/cosmicintersection/lib/databricksPresentation.js.map +1 -0
  53. package/dist/cosmicintersection/pages/access/AccessPage.js +62 -62
  54. package/dist/cosmicintersection/pages/access/AccessPage.js.map +1 -1
  55. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js +107 -107
  56. package/dist/cosmicintersection/pages/analyses/AnalysesPage.js.map +1 -1
  57. package/dist/cosmicintersection/pages/collections/CollectionDetailPage.js +24 -24
  58. package/dist/cosmicintersection/pages/collections/CollectionsPage.js +12 -12
  59. package/dist/cosmicintersection/pages/dashboard/DashboardPage.js +18 -18
  60. package/dist/cosmicintersection/pages/datasets/DatasetDetailPage.js +91 -91
  61. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js +209 -209
  62. package/dist/cosmicintersection/pages/datasets/DatasetsPage.js.map +1 -1
  63. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js +98 -98
  64. package/dist/cosmicintersection/pages/discovery/DiscoveryPage.js.map +1 -1
  65. package/dist/cosmicintersection/pages/lineage/LineagePage.js +15 -15
  66. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js +139 -139
  67. package/dist/cosmicintersection/pages/notebooks/NotebookDetailPage.js.map +1 -1
  68. package/dist/cosmicintersection/pages/notebooks/NotebooksPage.js +34 -34
  69. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js +39 -39
  70. package/dist/cosmicintersection/pages/pipelines/PipelineDetailPage.js.map +1 -1
  71. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js +107 -107
  72. package/dist/cosmicintersection/pages/pipelines/PipelineFormPage.js.map +1 -1
  73. package/dist/cosmicintersection/pages/pipelines/PipelinesPage.js +32 -32
  74. package/dist/cosmicintersection/pages/releases/ReleasesPage.d.ts.map +1 -1
  75. package/dist/cosmicintersection/pages/releases/ReleasesPage.js +193 -161
  76. package/dist/cosmicintersection/pages/releases/ReleasesPage.js.map +1 -1
  77. package/dist/cosmicintersection/pages/runs/RunDetailPage.d.ts.map +1 -1
  78. package/dist/cosmicintersection/pages/runs/RunDetailPage.js +250 -213
  79. package/dist/cosmicintersection/pages/runs/RunDetailPage.js.map +1 -1
  80. package/dist/cosmicintersection/pages/runs/RunsPage.js +31 -31
  81. package/dist/cosmicintersection/pages/sources/SourceDetailPage.js +41 -41
  82. package/dist/cosmicintersection/pages/sources/SourcesPage.js +122 -122
  83. package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
  84. package/dist/generated/wspace-operations.d.ts +243 -0
  85. package/dist/generated/wspace-operations.d.ts.map +1 -0
  86. package/dist/generated/wspace-operations.js +1472 -0
  87. package/dist/generated/wspace-operations.js.map +1 -0
  88. package/dist/generated/wspace-types.d.ts +183281 -30204
  89. package/dist/generated/wspace-types.d.ts.map +1 -1
  90. package/package.json +10 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDatabricksQueueForm.js","names":[],"sources":["../../../src/cosmicintersection/hooks/useDatabricksQueueForm.ts"],"sourcesContent":["import { useRef, useState, type FormEvent } from 'react';\nimport type { DocumentNode } from 'graphql';\nimport { clearGraphqlFetchResponseCache } from '@burdenoff/fe-libs/shared/graphql';\n\nimport {\n CosDatabricksConnectionsDocument,\n CosDatabricksDatasetsDocument,\n CosQueueDatabricksStepDocument,\n CosResolveExternalComputeRequestDocument,\n type CosDatabricksConnectionsQuery,\n type CosDatabricksDatasetsQuery,\n type CosQueueDatabricksStepMutation,\n type CosResolveExternalComputeRequestMutation,\n} from '../../generated/wspace-operations';\nimport { databricksJobId, databricksParameters } from '../lib/databricksForm';\nimport {\n clearConfirmedDatabricksIntent,\n clearWithdrawnDatabricksIntent,\n confirmDatabricksIntent,\n prepareDatabricksIntent,\n readDatabricksIntent,\n type DatabricksIntent,\n} from '../lib/databricksIntent';\n\ntype Connection = CosDatabricksConnectionsQuery['connections']['items'][number];\ntype Dataset = CosDatabricksDatasetsQuery['cosListDatasets']['items'][number];\ntype Request = <T>(document: DocumentNode, variables: Record<string, unknown>) => Promise<T>;\n\nexport function useDatabricksQueueForm({\n request,\n runId,\n workspaceId,\n intentKey,\n onQueued,\n statusReady,\n canQueue,\n}: {\n request: Request;\n runId: string;\n workspaceId: string;\n intentKey: string;\n onQueued(): Promise<void>;\n statusReady: boolean;\n canQueue: boolean;\n}) {\n const [connections, setConnections] = useState<Connection[]>([]);\n const [datasets, setDatasets] = useState<Dataset[]>([]);\n const [connectionOffset, setConnectionOffset] = useState(0);\n const [datasetOffset, setDatasetOffset] = useState(0);\n const [moreConnections, setMoreConnections] = useState(false);\n const [moreDatasets, setMoreDatasets] = useState(false);\n const [connectionId, setConnectionId] = useState('');\n const [jobId, setJobId] = useState('');\n const [name, setName] = useState('Databricks job');\n const [parameters, setParameters] = useState('{}');\n const [maximum, setMaximum] = useState('3600');\n const [inputs, setInputs] = useState<string[]>([]);\n const [outputs, setOutputs] = useState<string[]>([]);\n const [confirmedCost, setConfirmedCost] = useState(false);\n const [busy, setBusy] = useState(false);\n const [saved] = useState(() => {\n try {\n return { intent: readDatabricksIntent(window.sessionStorage, intentKey), error: null };\n } catch {\n return {\n intent: null,\n error:\n 'The saved request is unreadable. Do not submit another job until its status is recovered.',\n };\n }\n });\n const [error, setError] = useState<string | null>(saved.error);\n const [intent, setIntent] = useState<DatabricksIntent | null>(saved.intent);\n const sending = useRef(false);\n\n const reloadIntent = () => setIntent(readDatabricksIntent(window.sessionStorage, intentKey));\n\n const loadOptions = async (kind: 'connections' | 'datasets') => {\n if (sending.current) return;\n sending.current = true;\n setBusy(true);\n setError(null);\n try {\n // The published FE4 transport has no per-request cache bypass. These\n // explicit choice refreshes must observe current credential eligibility;\n // clearing its shared short-lived read cache may refetch sibling reads.\n clearGraphqlFetchResponseCache();\n if (kind === 'connections') {\n const offset = moreConnections ? connectionOffset : 0;\n const result = await request<CosDatabricksConnectionsQuery>(\n CosDatabricksConnectionsDocument,\n {\n pagination: { limit: 50, offset },\n }\n );\n setConnections((previous) =>\n Array.from(\n new Map(\n [...(offset ? previous : []), ...result.connections.items]\n .filter(\n (item) =>\n item.workspaceId === workspaceId &&\n item.canUse &&\n item.status === 'ACTIVE' &&\n item.provider.key === 'generic-api-key'\n )\n .map((item) => [item.id, item])\n ).values()\n )\n );\n setConnectionOffset(offset + result.connections.items.length);\n setMoreConnections(result.connections.hasMore);\n } else {\n const offset = moreDatasets ? datasetOffset : 0;\n const result = await request<CosDatabricksDatasetsQuery>(CosDatabricksDatasetsDocument, {\n pagination: { limit: 50, offset },\n });\n setDatasets((previous) =>\n Array.from(\n new Map(\n [...(offset ? previous : []), ...result.cosListDatasets.items].map((item) => [\n item.id,\n item,\n ])\n ).values()\n )\n );\n setDatasetOffset(offset + result.cosListDatasets.items.length);\n setMoreDatasets(result.cosListDatasets.pageInfo.hasMore);\n }\n } catch {\n setError('Could not load choices. Retry this read; no job was submitted.');\n } finally {\n sending.current = false;\n setBusy(false);\n }\n };\n\n const submit = async (event: FormEvent) => {\n event.preventDefault();\n if (sending.current) return;\n sending.current = true;\n setBusy(true);\n setError(null);\n let dispatched = false;\n let serverConfirmed = false;\n try {\n if (!canQueue || !statusReady) {\n throw new Error('Refresh and confirm existing job status before submitting a request.');\n }\n if (!confirmedCost || !connections.some((item) => item.id === connectionId)) {\n throw new Error(\n 'Choose an available existing connection and confirm external usage charges.'\n );\n }\n const maxRuntimeSeconds = Number(maximum);\n if (\n !Number.isSafeInteger(maxRuntimeSeconds) ||\n maxRuntimeSeconds < 60 ||\n maxRuntimeSeconds > 86400\n ) {\n throw new Error('Choose a monitoring deadline between 60 and 86,400 seconds.');\n }\n if (!name.trim() || name.trim().length > 255)\n throw new Error('Enter a job step name of at most 255 characters.');\n if (inputs.length > 100 || outputs.length > 100)\n throw new Error('Select at most 100 datasets for each lineage direction.');\n const input = {\n connectionId,\n jobId: databricksJobId(jobId),\n name: name.trim(),\n parameters: databricksParameters(parameters),\n inputDatasetIds: inputs,\n outputDatasetIds: outputs,\n maxRuntimeSeconds,\n };\n const prepared = await prepareDatabricksIntent(window.sessionStorage, intentKey, input);\n if (prepared.confirmedExecutionId)\n throw new Error('This request is already confirmed. Explicitly start another job below.');\n setIntent(prepared);\n dispatched = true;\n const result = await request<CosQueueDatabricksStepMutation>(CosQueueDatabricksStepDocument, {\n runId,\n input: { ...input, requestId: prepared.requestId },\n });\n if (\n result.cosQueueDatabricksStep.runId !== runId ||\n result.cosQueueDatabricksStep.requestId !== prepared.requestId\n ) {\n throw new Error('The returned execution did not match the saved request.');\n }\n serverConfirmed = true;\n let recoveryStorageFailed = false;\n try {\n if (\n !confirmDatabricksIntent(window.sessionStorage, intentKey, result.cosQueueDatabricksStep)\n )\n throw new Error('The acknowledged execution no longer matches local recovery identity.');\n reloadIntent();\n } catch {\n // A local storage failure cannot undo the acknowledged server execution.\n recoveryStorageFailed = true;\n }\n await onQueued();\n if (recoveryStorageFailed) {\n setError(\n 'The job request is confirmed and status was refreshed, but local recovery storage failed. Do not submit another job; recover the original request identity.'\n );\n }\n } catch (failure) {\n setError(\n serverConfirmed\n ? 'The job request is confirmed, but its status refresh failed. Refresh job status; do not submit a replacement.'\n : dispatched\n ? 'The queue outcome was not confirmed. Refresh job status. Retrying identical inputs reuses the saved request; changing them is refused until the original is recovered.'\n : failure instanceof Error\n ? failure.message\n : 'The request could not be verified. No job was submitted.'\n );\n } finally {\n sending.current = false;\n setBusy(false);\n }\n };\n\n const checkSavedRequest = () => {\n try {\n reloadIntent();\n } catch {\n setError('The saved request could not be verified.');\n }\n };\n const resolveSavedRequest = async () => {\n if (sending.current) return;\n sending.current = true;\n setBusy(true);\n setError(null);\n let resolved = false;\n try {\n const savedRequest = readDatabricksIntent(window.sessionStorage, intentKey);\n if (!savedRequest || savedRequest.confirmedExecutionId) {\n throw new Error('Only an unresolved saved request can be recovered here.');\n }\n const result = await request<CosResolveExternalComputeRequestMutation>(\n CosResolveExternalComputeRequestDocument,\n { runId, requestId: savedRequest.requestId }\n );\n const resolution = result.cosResolveExternalComputeRequest;\n if (\n readDatabricksIntent(window.sessionStorage, intentKey)?.requestId !== savedRequest.requestId\n ) {\n throw new Error('The saved request changed while recovery was running.');\n }\n if (resolution.withdrawn && resolution.execution === null) {\n clearWithdrawnDatabricksIntent(window.sessionStorage, intentKey, savedRequest.requestId);\n setConfirmedCost(false);\n } else if (\n !resolution.withdrawn &&\n resolution.execution?.runId === runId &&\n resolution.execution.requestId === savedRequest.requestId\n ) {\n if (!confirmDatabricksIntent(window.sessionStorage, intentKey, resolution.execution))\n throw new Error('The recovered execution no longer matches local recovery identity.');\n } else {\n throw new Error('The response did not resolve this exact saved request.');\n }\n reloadIntent();\n resolved = true;\n await onQueued();\n } catch {\n setError(\n resolved\n ? 'The saved request was resolved, but status refresh failed. Refresh status before submitting another job.'\n : 'The saved request could not be resolved. Keep its identity and retry recovery; do not submit a replacement.'\n );\n } finally {\n sending.current = false;\n setBusy(false);\n }\n };\n const startAnotherJob = () => {\n try {\n clearConfirmedDatabricksIntent(window.sessionStorage, intentKey);\n setIntent(null);\n setConfirmedCost(false);\n } catch {\n setError('The prior request is not confirmed. Refresh status before starting another job.');\n }\n };\n return {\n connections,\n datasets,\n connectionOffset,\n datasetOffset,\n moreConnections,\n moreDatasets,\n connectionId,\n jobId,\n name,\n parameters,\n maximum,\n inputs,\n outputs,\n confirmedCost,\n busy,\n error,\n intent,\n setConnectionId,\n setJobId,\n setName,\n setParameters,\n setMaximum,\n setInputs,\n setOutputs,\n setConfirmedCost,\n loadOptions,\n submit,\n checkSavedRequest,\n resolveSavedRequest,\n startAnotherJob,\n };\n}\n"],"mappings":";;;;;;AA4BA,SAAgB,EAAuB,EACrC,YACA,UACA,gBACA,cACA,aACA,iBACA,eASC;CACD,IAAM,CAAC,GAAa,KAAkB,EAAuB,CAAC,CAAC,GACzD,CAAC,GAAU,KAAe,EAAoB,CAAC,CAAC,GAChD,CAAC,GAAkB,KAAuB,EAAS,CAAC,GACpD,CAAC,GAAe,KAAoB,EAAS,CAAC,GAC9C,CAAC,GAAiB,KAAsB,EAAS,EAAK,GACtD,CAAC,GAAc,MAAmB,EAAS,EAAK,GAChD,CAAC,GAAc,MAAmB,EAAS,EAAE,GAC7C,CAAC,GAAO,KAAY,EAAS,EAAE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AO,WAAW,EAAa;IAAU,CAC7C,EAAA,CAC0B;IAC1B,IACE,EAAqB,OAAO,gBAAgB,CAAS,CAAC,EAAE,cAAc,EAAa,WAEnF,MAAU,MAAM,uDAAuD;IAEzE,IAAI,EAAW,aAAa,EAAW,cAAc,MAEnD,AADA,EAA+B,OAAO,gBAAgB,GAAW,EAAa,SAAS,GACvF,EAAiB,EAAK;SACjB,IACL,CAAC,EAAW,aACZ,EAAW,WAAW,UAAU,KAChC,EAAW,UAAU,cAAc,EAAa;SAE5C,CAAC,EAAwB,OAAO,gBAAgB,GAAW,EAAW,SAAS,GACjF,MAAU,MAAM,oEAAoE;IAAA,OAEtF,MAAU,MAAM,wDAAwD;IAI1E,AAFA,EAAa,GACb,IAAW,IACX,MAAM,EAAS;GACjB,QAAQ;IACN,EACE,IACI,6GACA,6GACN;GACF,UAAU;IAER,AADA,EAAQ,UAAU,IAClB,EAAQ,EAAK;GACf;EACF;EAwCE,uBAvC4B;GAC5B,IAAI;IAGF,AAFA,EAA+B,OAAO,gBAAgB,CAAS,GAC/D,EAAU,IAAI,GACd,EAAiB,EAAK;GACxB,QAAQ;IACN,EAAS,iFAAiF;GAC5F;EACF;CAgCA;AACF"}
@@ -0,0 +1,4 @@
1
+ /** Browser validation improves feedback; the service remains authoritative. */
2
+ export declare function databricksParameters(text: string): Record<string, string>;
3
+ export declare function databricksJobId(text: string): string;
4
+ //# sourceMappingURL=databricksForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databricksForm.d.ts","sourceRoot":"","sources":["../../../src/cosmicintersection/lib/databricksForm.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAiCzE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKpD"}
@@ -0,0 +1,31 @@
1
+ //#region src/cosmicintersection/lib/databricksForm.ts
2
+ function e(e) {
3
+ let t;
4
+ try {
5
+ t = JSON.parse(e);
6
+ } catch {
7
+ throw Error("Job parameters must be valid JSON with nonsecret string values.");
8
+ }
9
+ if (!t || typeof t != "object" || Array.isArray(t)) throw Error("Job parameters must be a JSON object with string values.");
10
+ let n = Object.entries(t);
11
+ if (n.length > 50) throw Error("Use at most 50 job parameters.");
12
+ let r = {};
13
+ for (let [e, t] of n) {
14
+ if (!/^[A-Za-z][A-Za-z0-9_.-]{0,99}$/.test(e) || /password|passcode|token|secret|authorization|cookie|credential|api.?key/i.test(e) || [
15
+ "__proto__",
16
+ "constructor",
17
+ "prototype"
18
+ ].includes(e) || e.startsWith("cosmicintersection_") || typeof t != "string" || t.length > 4096 || Array.from(t).some((e) => e.charCodeAt(0) < 32)) throw Error("Use nonsecret, non-reserved parameter names and string values of at most 4,096 characters without control characters.");
19
+ r[e] = t;
20
+ }
21
+ if (new TextEncoder().encode(JSON.stringify(r)).byteLength > 16384) throw Error("Encoded job parameters must fit within 16 KiB.");
22
+ return r;
23
+ }
24
+ function t(e) {
25
+ if (!/^[1-9]\d{0,15}$/.test(e) || !Number.isSafeInteger(Number(e))) throw Error("Enter the positive numeric ID of an existing Databricks job.");
26
+ return e;
27
+ }
28
+ //#endregion
29
+ export { t as databricksJobId, e as databricksParameters };
30
+
31
+ //# sourceMappingURL=databricksForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databricksForm.js","names":[],"sources":["../../../src/cosmicintersection/lib/databricksForm.ts"],"sourcesContent":["/** Browser validation improves feedback; the service remains authoritative. */\nexport function databricksParameters(text: string): Record<string, string> {\n let value: unknown;\n try {\n value = JSON.parse(text);\n } catch {\n throw new Error('Job parameters must be valid JSON with nonsecret string values.');\n }\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n throw new Error('Job parameters must be a JSON object with string values.');\n }\n const entries = Object.entries(value);\n if (entries.length > 50) throw new Error('Use at most 50 job parameters.');\n const result: Record<string, string> = {};\n for (const [key, item] of entries) {\n if (\n !/^[A-Za-z][A-Za-z0-9_.-]{0,99}$/.test(key) ||\n /password|passcode|token|secret|authorization|cookie|credential|api.?key/i.test(key) ||\n ['__proto__', 'constructor', 'prototype'].includes(key) ||\n key.startsWith('cosmicintersection_') ||\n typeof item !== 'string' ||\n item.length > 4096 ||\n Array.from(item).some((char) => char.charCodeAt(0) < 32)\n ) {\n throw new Error(\n 'Use nonsecret, non-reserved parameter names and string values of at most 4,096 characters without control characters.'\n );\n }\n result[key] = item;\n }\n if (new TextEncoder().encode(JSON.stringify(result)).byteLength > 16_384) {\n throw new Error('Encoded job parameters must fit within 16 KiB.');\n }\n return result;\n}\n\nexport function databricksJobId(text: string): string {\n if (!/^[1-9]\\d{0,15}$/.test(text) || !Number.isSafeInteger(Number(text))) {\n throw new Error('Enter the positive numeric ID of an existing Databricks job.');\n }\n return text;\n}\n"],"mappings":";AACA,SAAgB,EAAqB,GAAsC;CACzE,IAAI;CACJ,IAAI;EACF,IAAQ,KAAK,MAAM,CAAI;CACzB,QAAQ;EACN,MAAU,MAAM,iEAAiE;CACnF;CACA,IAAI,CAAC,KAAS,OAAO,KAAU,YAAY,MAAM,QAAQ,CAAK,GAC5D,MAAU,MAAM,0DAA0D;CAE5E,IAAM,IAAU,OAAO,QAAQ,CAAK;CACpC,IAAI,EAAQ,SAAS,IAAI,MAAU,MAAM,gCAAgC;CACzE,IAAM,IAAiC,CAAC;CACxC,KAAK,IAAM,CAAC,GAAK,MAAS,GAAS;EACjC,IACE,CAAC,iCAAiC,KAAK,CAAG,KAC1C,2EAA2E,KAAK,CAAG,KACnF;GAAC;GAAa;GAAe;EAAW,CAAC,CAAC,SAAS,CAAG,KACtD,EAAI,WAAW,qBAAqB,KACpC,OAAO,KAAS,YAChB,EAAK,SAAS,QACd,MAAM,KAAK,CAAI,CAAC,CAAC,MAAM,MAAS,EAAK,WAAW,CAAC,IAAI,EAAE,GAEvD,MAAU,MACR,uHACF;EAEF,EAAO,KAAO;CAChB;CACA,IAAI,IAAI,YAAY,CAAC,CAAC,OAAO,KAAK,UAAU,CAAM,CAAC,CAAC,CAAC,aAAa,OAChE,MAAU,MAAM,gDAAgD;CAElE,OAAO;AACT;AAEA,SAAgB,EAAgB,GAAsB;CACpD,IAAI,CAAC,kBAAkB,KAAK,CAAI,KAAK,CAAC,OAAO,cAAc,OAAO,CAAI,CAAC,GACrE,MAAU,MAAM,8DAA8D;CAEhF,OAAO;AACT"}
@@ -0,0 +1,19 @@
1
+ /** Durable product intent only: never stores credentials, names or job parameters. */
2
+ export interface DatabricksIntent {
3
+ requestId: string;
4
+ fingerprint: string;
5
+ confirmedExecutionId?: string;
6
+ }
7
+ type IntentStorage = Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;
8
+ export declare function readDatabricksIntent(storage: IntentStorage, key: string): DatabricksIntent | null;
9
+ export declare function prepareDatabricksIntent(storage: IntentStorage, key: string, input: unknown): Promise<DatabricksIntent>;
10
+ export declare function confirmDatabricksIntent(storage: IntentStorage, key: string, execution: {
11
+ requestId: string;
12
+ id: string;
13
+ }): boolean;
14
+ /** Explicit "another job" only after the server returned this exact intent. */
15
+ export declare function clearConfirmedDatabricksIntent(storage: IntentStorage, key: string): void;
16
+ /** Called only after the service durably fenced this exact absent request UUID. */
17
+ export declare function clearWithdrawnDatabricksIntent(storage: IntentStorage, key: string, requestId: string): void;
18
+ export {};
19
+ //# sourceMappingURL=databricksIntent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databricksIntent.d.ts","sourceRoot":"","sources":["../../../src/cosmicintersection/lib/databricksIntent.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,KAAK,aAAa,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,CAAC,CAAC;AAIzE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CA8BjG;AAkBD,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,aAAa,EACtB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,gBAAgB,CAAC,CAmB3B;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,aAAa,EACtB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC3C,OAAO,CAMT;AAED,+EAA+E;AAC/E,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAMxF;AAED,mFAAmF;AACnF,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,aAAa,EACtB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,GAChB,IAAI,CAMN"}
@@ -0,0 +1,60 @@
1
+ //#region src/cosmicintersection/lib/databricksIntent.ts
2
+ var e = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
3
+ function t(t, n) {
4
+ let r = t.getItem(n);
5
+ if (r === null) return null;
6
+ let i;
7
+ try {
8
+ i = JSON.parse(r);
9
+ } catch {
10
+ throw Error("The saved Databricks request cannot be verified. Do not submit another job.");
11
+ }
12
+ if (!i || typeof i != "object" || !("requestId" in i) || typeof i.requestId != "string" || !e.test(i.requestId) || !("fingerprint" in i) || typeof i.fingerprint != "string" || !/^[a-f0-9]{64}$/.test(i.fingerprint) || "confirmedExecutionId" in i && (typeof i.confirmedExecutionId != "string" || !e.test(i.confirmedExecutionId))) throw Error("The saved Databricks request cannot be verified. Do not submit another job.");
13
+ return {
14
+ requestId: i.requestId,
15
+ fingerprint: i.fingerprint,
16
+ ..."confirmedExecutionId" in i && typeof i.confirmedExecutionId == "string" ? { confirmedExecutionId: i.confirmedExecutionId } : {}
17
+ };
18
+ }
19
+ function n(e) {
20
+ if (Array.isArray(e)) return `[${e.map(n).join(",")}]`;
21
+ if (typeof e == "object" && e) return `{${Object.entries(e).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${n(t)}`).join(",")}}`;
22
+ if (e === void 0 || typeof e == "number" && !Number.isFinite(e)) throw Error("Databricks request contains an unsupported value.");
23
+ let t = JSON.stringify(e);
24
+ if (t === void 0) throw Error("Databricks request contains an unsupported value.");
25
+ return t;
26
+ }
27
+ async function r(e, r, i) {
28
+ let a = new TextEncoder().encode(n(i)), o = Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256", a))).map((e) => e.toString(16).padStart(2, "0")).join(""), s = t(e, r);
29
+ if (s) {
30
+ if (s.fingerprint !== o) throw Error("A previous request is unresolved. Restore its exact inputs and retry or inspect its status.");
31
+ return s;
32
+ }
33
+ let c = {
34
+ requestId: crypto.randomUUID(),
35
+ fingerprint: o
36
+ };
37
+ return e.setItem(r, JSON.stringify(c)), c;
38
+ }
39
+ function i(n, r, i) {
40
+ let a = t(n, r);
41
+ if (!a || a.requestId !== i.requestId) return !1;
42
+ if (!e.test(i.id)) throw Error("The confirmed execution ID is invalid.");
43
+ return n.setItem(r, JSON.stringify({
44
+ ...a,
45
+ confirmedExecutionId: i.id
46
+ })), !0;
47
+ }
48
+ function a(e, n) {
49
+ if (!t(e, n)?.confirmedExecutionId) throw Error("Refresh the existing request status before queuing another job.");
50
+ e.removeItem(n);
51
+ }
52
+ function o(e, n, r) {
53
+ let i = t(e, n);
54
+ if (!i || i.requestId !== r || i.confirmedExecutionId) throw Error("The acknowledged withdrawal does not match the unresolved saved request.");
55
+ e.removeItem(n);
56
+ }
57
+ //#endregion
58
+ export { a as clearConfirmedDatabricksIntent, o as clearWithdrawnDatabricksIntent, i as confirmDatabricksIntent, r as prepareDatabricksIntent, t as readDatabricksIntent };
59
+
60
+ //# sourceMappingURL=databricksIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databricksIntent.js","names":[],"sources":["../../../src/cosmicintersection/lib/databricksIntent.ts"],"sourcesContent":["/** Durable product intent only: never stores credentials, names or job parameters. */\nexport interface DatabricksIntent {\n requestId: string;\n fingerprint: string;\n confirmedExecutionId?: string;\n}\n\ntype IntentStorage = Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;\n\nconst UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n\nexport function readDatabricksIntent(storage: IntentStorage, key: string): DatabricksIntent | null {\n const raw = storage.getItem(key);\n if (raw === null) return null;\n let value: unknown;\n try {\n value = JSON.parse(raw);\n } catch {\n throw new Error('The saved Databricks request cannot be verified. Do not submit another job.');\n }\n if (\n !value ||\n typeof value !== 'object' ||\n !('requestId' in value) ||\n typeof value.requestId !== 'string' ||\n !UUID.test(value.requestId) ||\n !('fingerprint' in value) ||\n typeof value.fingerprint !== 'string' ||\n !/^[a-f0-9]{64}$/.test(value.fingerprint) ||\n ('confirmedExecutionId' in value &&\n (typeof value.confirmedExecutionId !== 'string' || !UUID.test(value.confirmedExecutionId)))\n ) {\n throw new Error('The saved Databricks request cannot be verified. Do not submit another job.');\n }\n return {\n requestId: value.requestId,\n fingerprint: value.fingerprint,\n ...('confirmedExecutionId' in value && typeof value.confirmedExecutionId === 'string'\n ? { confirmedExecutionId: value.confirmedExecutionId }\n : {}),\n };\n}\n\n/** Stable serialization makes reordered parameter keys the same intent. */\nfunction canonical(value: unknown): string {\n if (Array.isArray(value)) return `[${value.map(canonical).join(',')}]`;\n if (value !== null && typeof value === 'object') {\n return `{${Object.entries(value)\n .sort(([left], [right]) => (left < right ? -1 : left > right ? 1 : 0))\n .map(([key, item]) => `${JSON.stringify(key)}:${canonical(item)}`)\n .join(',')}}`;\n }\n if (value === undefined || (typeof value === 'number' && !Number.isFinite(value)))\n throw new Error('Databricks request contains an unsupported value.');\n const encoded = JSON.stringify(value);\n if (encoded === undefined) throw new Error('Databricks request contains an unsupported value.');\n return encoded;\n}\n\nexport async function prepareDatabricksIntent(\n storage: IntentStorage,\n key: string,\n input: unknown\n): Promise<DatabricksIntent> {\n const bytes = new TextEncoder().encode(canonical(input));\n const fingerprint = Array.from(new Uint8Array(await crypto.subtle.digest('SHA-256', bytes)))\n .map((byte) => byte.toString(16).padStart(2, '0'))\n .join('');\n // Read after hashing so a preceding same-tab submission cannot be overwritten.\n const previous = readDatabricksIntent(storage, key);\n if (previous) {\n if (previous.fingerprint !== fingerprint) {\n throw new Error(\n 'A previous request is unresolved. Restore its exact inputs and retry or inspect its status.'\n );\n }\n return previous;\n }\n const intent = { requestId: crypto.randomUUID(), fingerprint };\n // A failed persistence write must prevent the network request entirely.\n storage.setItem(key, JSON.stringify(intent));\n return intent;\n}\n\nexport function confirmDatabricksIntent(\n storage: IntentStorage,\n key: string,\n execution: { requestId: string; id: string }\n): boolean {\n const intent = readDatabricksIntent(storage, key);\n if (!intent || intent.requestId !== execution.requestId) return false;\n if (!UUID.test(execution.id)) throw new Error('The confirmed execution ID is invalid.');\n storage.setItem(key, JSON.stringify({ ...intent, confirmedExecutionId: execution.id }));\n return true;\n}\n\n/** Explicit \"another job\" only after the server returned this exact intent. */\nexport function clearConfirmedDatabricksIntent(storage: IntentStorage, key: string): void {\n const intent = readDatabricksIntent(storage, key);\n if (!intent?.confirmedExecutionId) {\n throw new Error('Refresh the existing request status before queuing another job.');\n }\n storage.removeItem(key);\n}\n\n/** Called only after the service durably fenced this exact absent request UUID. */\nexport function clearWithdrawnDatabricksIntent(\n storage: IntentStorage,\n key: string,\n requestId: string\n): void {\n const intent = readDatabricksIntent(storage, key);\n if (!intent || intent.requestId !== requestId || intent.confirmedExecutionId) {\n throw new Error('The acknowledged withdrawal does not match the unresolved saved request.');\n }\n storage.removeItem(key);\n}\n"],"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Scope } from '../api/databricksTransport';
2
+ /** No bearer or job parameters enter the durable product-intent key. */
3
+ export declare function databricksIntentKey(scope: DatabricksRequestScope, runId: string): string;
4
+ export declare function safeLogsUrl(value: string | null | undefined): string | null;
5
+ //# sourceMappingURL=databricksPresentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databricksPresentation.d.ts","sourceRoot":"","sources":["../../../src/cosmicintersection/lib/databricksPresentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAyBxF;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAa3E"}
@@ -0,0 +1,27 @@
1
+ //#region src/cosmicintersection/lib/databricksPresentation.ts
2
+ function e(e, t) {
3
+ let n = new URL(e.apiGatewayUrl);
4
+ if (!["http:", "https:"].includes(n.protocol) || n.username || n.password || n.search || n.hash) throw Error("Databricks requires a gateway URL without embedded credentials or query parameters.");
5
+ return "cosmic.databricks.intent.v1:" + JSON.stringify([
6
+ n.origin + n.pathname,
7
+ e.actorId,
8
+ e.tenantId ?? null,
9
+ e.organizationId ?? null,
10
+ e.workspaceId,
11
+ e.projectId ?? null,
12
+ t
13
+ ]);
14
+ }
15
+ function t(e) {
16
+ if (!e) return null;
17
+ try {
18
+ let t = new URL(e);
19
+ return t.protocol === "https:" && !t.username && !t.password && t.hostname.endsWith(".cloud.databricks.com") ? t.href : null;
20
+ } catch {
21
+ return null;
22
+ }
23
+ }
24
+ //#endregion
25
+ export { e as databricksIntentKey, t as safeLogsUrl };
26
+
27
+ //# sourceMappingURL=databricksPresentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databricksPresentation.js","names":[],"sources":["../../../src/cosmicintersection/lib/databricksPresentation.ts"],"sourcesContent":["import type { DatabricksRequestScope } from '../api/databricksTransport';\n\n/** No bearer or job parameters enter the durable product-intent key. */\nexport function databricksIntentKey(scope: DatabricksRequestScope, runId: string): string {\n const gateway = new URL(scope.apiGatewayUrl);\n if (\n !['http:', 'https:'].includes(gateway.protocol) ||\n gateway.username ||\n gateway.password ||\n gateway.search ||\n gateway.hash\n ) {\n throw new Error(\n 'Databricks requires a gateway URL without embedded credentials or query parameters.'\n );\n }\n return (\n 'cosmic.databricks.intent.v1:' +\n JSON.stringify([\n gateway.origin + gateway.pathname,\n scope.actorId,\n scope.tenantId ?? null,\n scope.organizationId ?? null,\n scope.workspaceId,\n scope.projectId ?? null,\n runId,\n ])\n );\n}\n\n// Match the backend AWS-only attested origin contract; Azure/GCP are not supported.\nexport function safeLogsUrl(value: string | null | undefined): string | null {\n if (!value) return null;\n try {\n const url = new URL(value);\n return url.protocol === 'https:' &&\n !url.username &&\n !url.password &&\n url.hostname.endsWith('.cloud.databricks.com')\n ? url.href\n : null;\n } catch {\n return null;\n }\n}\n"],"mappings":";AAGA,SAAgB,EAAoB,GAA+B,GAAuB;CACxF,IAAM,IAAU,IAAI,IAAI,EAAM,aAAa;CAC3C,IACE,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,SAAS,EAAQ,QAAQ,KAC9C,EAAQ,YACR,EAAQ,YACR,EAAQ,UACR,EAAQ,MAER,MAAU,MACR,qFACF;CAEF,OACE,iCACA,KAAK,UAAU;EACb,EAAQ,SAAS,EAAQ;EACzB,EAAM;EACN,EAAM,YAAY;EAClB,EAAM,kBAAkB;EACxB,EAAM;EACN,EAAM,aAAa;EACnB;CACF,CAAC;AAEL;AAGA,SAAgB,EAAY,GAAiD;CAC3E,IAAI,CAAC,GAAO,OAAO;CACnB,IAAI;EACF,IAAM,IAAM,IAAI,IAAI,CAAK;EACzB,OAAO,EAAI,aAAa,YACtB,CAAC,EAAI,YACL,CAAC,EAAI,YACL,EAAI,SAAS,SAAS,uBAAuB,IAC3C,EAAI,OACJ;CACN,QAAQ;EACN,OAAO;CACT;AACF"}
@@ -12,8 +12,8 @@ import "../../components/index.js";
12
12
  import { useSelectedRecord as a } from "../../lib/useSelectedRecord.js";
13
13
  import { useMemo as o, useState as s } from "react";
14
14
  import { Fragment as le, jsx as c, jsxs as l } from "react/jsx-runtime";
15
- import { KeyRound as u, ShieldCheck as ue } from "lucide-react";
16
- import { Badge as d, Button as f, Dialog as p, DialogContent as de, DialogDescription as m, DialogFooter as h, DialogHeader as g, DialogTitle as _, Input as v, Label as y, Select as b, SelectContent as x, SelectItem as S, SelectTrigger as C, SelectValue as w, Table as fe, TableBody as pe, TableCell as T, TableHead as E, TableHeader as me, TableRow as D, Textarea as he } from "@burdenoff/fe-libs/ui";
15
+ import { Badge as u, Button as d, Dialog as f, DialogContent as p, DialogDescription as m, DialogFooter as ue, DialogHeader as h, DialogTitle as g, Input as _, Label as v, Select as y, SelectContent as b, SelectItem as x, SelectTrigger as S, SelectValue as C, Table as de, TableBody as fe, TableCell as w, TableHead as T, TableHeader as pe, TableRow as E, Textarea as me } from "@burdenoff/fe-libs/ui";
16
+ import { KeyRound as D, ShieldCheck as he } from "lucide-react";
17
17
  //#region src/cosmicintersection/pages/access/AccessPage.tsx
18
18
  var O = "ALL", ge = [
19
19
  "PENDING",
@@ -92,17 +92,17 @@ function M() {
92
92
  if (n.error) throw Error(n.error.message);
93
93
  if (!n.data?.cosRevokeAccess?.id) throw e.error(M("cosmicintersection.pages.access.revokeError", "Could not revoke grant"), M("cosmicintersection.pages.access.revokeErrorDescription", "The server did not confirm the change.")), Error("Revoke not confirmed");
94
94
  e.success(M("cosmicintersection.pages.access.accessRevoked", "Access revoked")), X(null), await H();
95
- }, Q = (e) => {
95
+ }, ke = (e) => {
96
96
  X(e);
97
- }, ke = /* @__PURE__ */ l(f, {
97
+ }, Q = /* @__PURE__ */ l(d, {
98
98
  type: "button",
99
99
  onClick: Ee,
100
- children: [/* @__PURE__ */ c(u, { className: "size-4" }), M("cosmicintersection.pages.access.grantAccess", "Grant access")]
100
+ children: [/* @__PURE__ */ c(D, { className: "size-4" }), M("cosmicintersection.pages.access.grantAccess", "Grant access")]
101
101
  }), $ = N === O;
102
102
  return /* @__PURE__ */ l(se, {
103
103
  title: M("cosmicintersection.pages.access.title", "Data access"),
104
104
  description: M("cosmicintersection.pages.access.description", "Govern who can reach restricted and embargoed datasets, with scoped, expiring grants."),
105
- actions: ke,
105
+ actions: Q,
106
106
  children: [
107
107
  /* @__PURE__ */ l("div", {
108
108
  className: "space-y-4",
@@ -110,32 +110,32 @@ function M() {
110
110
  className: "flex flex-wrap items-center gap-3",
111
111
  children: [/* @__PURE__ */ c("div", {
112
112
  className: "w-full max-w-[18rem]",
113
- children: /* @__PURE__ */ l(b, {
113
+ children: /* @__PURE__ */ l(y, {
114
114
  value: N,
115
115
  onValueChange: ye,
116
- children: [/* @__PURE__ */ c(C, {
116
+ children: [/* @__PURE__ */ c(S, {
117
117
  "aria-label": "Filter by dataset",
118
- children: /* @__PURE__ */ c(w, { placeholder: "All datasets" })
119
- }), /* @__PURE__ */ l(x, { children: [/* @__PURE__ */ c(S, {
118
+ children: /* @__PURE__ */ c(C, { placeholder: "All datasets" })
119
+ }), /* @__PURE__ */ l(b, { children: [/* @__PURE__ */ c(x, {
120
120
  value: O,
121
121
  children: "All datasets"
122
- }), R.map((e) => /* @__PURE__ */ c(S, {
122
+ }), R.map((e) => /* @__PURE__ */ c(x, {
123
123
  value: e.id,
124
124
  children: e.name
125
125
  }, e.id))] })]
126
126
  })
127
127
  }), /* @__PURE__ */ c("div", {
128
128
  className: "w-full max-w-[14rem]",
129
- children: /* @__PURE__ */ l(b, {
129
+ children: /* @__PURE__ */ l(y, {
130
130
  value: I,
131
131
  onValueChange: xe,
132
- children: [/* @__PURE__ */ c(C, {
132
+ children: [/* @__PURE__ */ c(S, {
133
133
  "aria-label": "Filter by status",
134
- children: /* @__PURE__ */ c(w, { placeholder: "All statuses" })
135
- }), /* @__PURE__ */ l(x, { children: [/* @__PURE__ */ c(S, {
134
+ children: /* @__PURE__ */ c(C, { placeholder: "All statuses" })
135
+ }), /* @__PURE__ */ l(b, { children: [/* @__PURE__ */ c(x, {
136
136
  value: O,
137
137
  children: "All statuses"
138
- }), ge.map((e) => /* @__PURE__ */ c(S, {
138
+ }), ge.map((e) => /* @__PURE__ */ c(x, {
139
139
  value: e,
140
140
  children: ce(e)
141
141
  }, e))] })]
@@ -154,33 +154,33 @@ function M() {
154
154
  if (U.length === 0) {
155
155
  let e = N !== O || I !== O;
156
156
  return /* @__PURE__ */ c(re, {
157
- icon: ue,
157
+ icon: he,
158
158
  title: e ? M("cosmicintersection.pages.access.emptyFilterTitle", "No grants match these filters") : M("cosmicintersection.pages.access.emptyTitle", "No access grants yet"),
159
159
  description: e ? M("cosmicintersection.pages.access.emptyFilterDescription", "Try clearing the dataset or status filter to see more grants.") : M("cosmicintersection.pages.access.emptyDescription", "Grant a workspace member scoped access to a restricted or embargoed dataset."),
160
- action: e ? void 0 : ke
160
+ action: e ? void 0 : Q
161
161
  });
162
162
  }
163
163
  return /* @__PURE__ */ l(le, { children: [/* @__PURE__ */ c("div", {
164
164
  className: "hidden rounded-card border border-border-default bg-bg-elevated md:block",
165
- children: /* @__PURE__ */ l(fe, { children: [/* @__PURE__ */ c(me, { children: /* @__PURE__ */ l(D, { children: [
166
- $ ? /* @__PURE__ */ c(E, { children: "Dataset" }) : null,
167
- /* @__PURE__ */ c(E, { children: "Grantee" }),
168
- /* @__PURE__ */ c(E, { children: "Status" }),
169
- /* @__PURE__ */ c(E, { children: "Scopes" }),
170
- /* @__PURE__ */ c(E, { children: "Reason" }),
171
- /* @__PURE__ */ c(E, { children: "Granted" }),
172
- /* @__PURE__ */ c(E, { children: "Expires" }),
173
- /* @__PURE__ */ c(E, { children: "Revoked" }),
174
- /* @__PURE__ */ c(E, {
165
+ children: /* @__PURE__ */ l(de, { children: [/* @__PURE__ */ c(pe, { children: /* @__PURE__ */ l(E, { children: [
166
+ $ ? /* @__PURE__ */ c(T, { children: "Dataset" }) : null,
167
+ /* @__PURE__ */ c(T, { children: "Grantee" }),
168
+ /* @__PURE__ */ c(T, { children: "Status" }),
169
+ /* @__PURE__ */ c(T, { children: "Scopes" }),
170
+ /* @__PURE__ */ c(T, { children: "Reason" }),
171
+ /* @__PURE__ */ c(T, { children: "Granted" }),
172
+ /* @__PURE__ */ c(T, { children: "Expires" }),
173
+ /* @__PURE__ */ c(T, { children: "Revoked" }),
174
+ /* @__PURE__ */ c(T, {
175
175
  className: "text-right",
176
176
  children: "Actions"
177
177
  })
178
- ] }) }), /* @__PURE__ */ c(pe, { children: U.map((e) => /* @__PURE__ */ l(D, {
178
+ ] }) }), /* @__PURE__ */ c(fe, { children: U.map((e) => /* @__PURE__ */ l(E, {
179
179
  "aria-selected": P === e.id,
180
180
  "data-state": P === e.id ? "selected" : void 0,
181
181
  className: P === e.id ? "bg-bg-sunken" : void 0,
182
182
  children: [
183
- $ ? /* @__PURE__ */ c(T, {
183
+ $ ? /* @__PURE__ */ c(w, {
184
184
  className: "max-w-[12rem]",
185
185
  children: /* @__PURE__ */ c("span", {
186
186
  className: "line-clamp-1 text-sm text-text-primary",
@@ -190,7 +190,7 @@ function M() {
190
190
  })
191
191
  })
192
192
  }) : null,
193
- /* @__PURE__ */ c(T, {
193
+ /* @__PURE__ */ c(w, {
194
194
  className: "max-w-[12rem]",
195
195
  children: /* @__PURE__ */ c("button", {
196
196
  type: "button",
@@ -200,19 +200,19 @@ function M() {
200
200
  children: e.granteeId
201
201
  })
202
202
  }),
203
- /* @__PURE__ */ c(T, { children: /* @__PURE__ */ c(i, { status: e.status }) }),
204
- /* @__PURE__ */ c(T, { children: /* @__PURE__ */ c("div", {
203
+ /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(i, { status: e.status }) }),
204
+ /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c("div", {
205
205
  className: "flex max-w-[12rem] flex-wrap gap-1",
206
206
  children: e.scopes.length === 0 ? /* @__PURE__ */ c("span", {
207
207
  className: "text-xs text-text-secondary",
208
208
  children: "—"
209
- }) : e.scopes.map((e) => /* @__PURE__ */ c(d, {
209
+ }) : e.scopes.map((e) => /* @__PURE__ */ c(u, {
210
210
  variant: "outline",
211
211
  className: "text-xs",
212
212
  children: e
213
213
  }, e))
214
214
  }) }),
215
- /* @__PURE__ */ c(T, {
215
+ /* @__PURE__ */ c(w, {
216
216
  className: "max-w-[14rem]",
217
217
  children: e.reason ? /* @__PURE__ */ c("span", {
218
218
  className: "line-clamp-1 text-sm text-text-secondary",
@@ -222,24 +222,24 @@ function M() {
222
222
  children: "—"
223
223
  })
224
224
  }),
225
- /* @__PURE__ */ c(T, {
225
+ /* @__PURE__ */ c(w, {
226
226
  className: "whitespace-nowrap text-sm text-text-secondary",
227
227
  children: A(e.grantedAt)
228
228
  }),
229
- /* @__PURE__ */ c(T, {
229
+ /* @__PURE__ */ c(w, {
230
230
  className: "whitespace-nowrap text-sm text-text-secondary",
231
231
  children: A(e.expiresAt)
232
232
  }),
233
- /* @__PURE__ */ c(T, {
233
+ /* @__PURE__ */ c(w, {
234
234
  className: "whitespace-nowrap text-sm text-text-secondary",
235
235
  children: A(e.revokedAt)
236
236
  }),
237
- /* @__PURE__ */ c(T, {
237
+ /* @__PURE__ */ c(w, {
238
238
  className: "text-right",
239
239
  children: k(e.status) ? /* @__PURE__ */ c(r, {
240
240
  ariaLabel: `Actions for grant to ${e.granteeId}`,
241
241
  entityName: e.granteeId,
242
- onDelete: () => Q(e),
242
+ onDelete: () => ke(e),
243
243
  deleteLabel: "Revoke grant"
244
244
  }) : /* @__PURE__ */ c("span", {
245
245
  className: "text-xs text-text-secondary",
@@ -277,7 +277,7 @@ function M() {
277
277
  })] }),
278
278
  e.scopes.length > 0 ? /* @__PURE__ */ c("div", {
279
279
  className: "flex flex-wrap gap-1",
280
- children: e.scopes.map((e) => /* @__PURE__ */ c(d, {
280
+ children: e.scopes.map((e) => /* @__PURE__ */ c(u, {
281
281
  variant: "outline",
282
282
  className: "text-xs",
283
283
  children: e
@@ -299,7 +299,7 @@ function M() {
299
299
  }), k(e.status) ? /* @__PURE__ */ c(r, {
300
300
  ariaLabel: `Actions for grant to ${e.granteeId}`,
301
301
  entityName: e.granteeId,
302
- onDelete: () => Q(e),
302
+ onDelete: () => ke(e),
303
303
  deleteLabel: "Revoke grant"
304
304
  }) : null]
305
305
  })
@@ -307,29 +307,29 @@ function M() {
307
307
  })] });
308
308
  })()]
309
309
  }),
310
- /* @__PURE__ */ c(p, {
310
+ /* @__PURE__ */ c(f, {
311
311
  open: Te,
312
312
  onOpenChange: (e) => K(e || W ? e : !1),
313
- children: /* @__PURE__ */ l(de, {
313
+ children: /* @__PURE__ */ l(p, {
314
314
  className: "max-h-[85vh] max-w-md overflow-y-auto",
315
315
  children: [
316
- /* @__PURE__ */ l(g, { children: [/* @__PURE__ */ c(_, { children: M("cosmicintersection.pages.access.grantDataAccess", "Grant data access") }), /* @__PURE__ */ c(m, { children: M("cosmicintersection.pages.access.grantDataAccessDescription", "Give a workspace member scoped access to a dataset. Access is identified by the member's User ID.") })] }),
316
+ /* @__PURE__ */ l(h, { children: [/* @__PURE__ */ c(g, { children: M("cosmicintersection.pages.access.grantDataAccess", "Grant data access") }), /* @__PURE__ */ c(m, { children: M("cosmicintersection.pages.access.grantDataAccessDescription", "Give a workspace member scoped access to a dataset. Access is identified by the member's User ID.") })] }),
317
317
  /* @__PURE__ */ l("div", {
318
318
  className: "space-y-4",
319
319
  children: [
320
320
  /* @__PURE__ */ l("div", {
321
321
  className: "space-y-1.5",
322
- children: [/* @__PURE__ */ c(y, {
322
+ children: [/* @__PURE__ */ c(v, {
323
323
  htmlFor: "grant-dataset",
324
324
  children: M("cosmicintersection.pages.access.dataset", "Dataset")
325
- }), /* @__PURE__ */ l(b, {
325
+ }), /* @__PURE__ */ l(y, {
326
326
  value: q.datasetId || void 0,
327
327
  onValueChange: (e) => Z("datasetId", e),
328
- children: [/* @__PURE__ */ c(C, {
328
+ children: [/* @__PURE__ */ c(S, {
329
329
  id: "grant-dataset",
330
330
  "aria-label": M("cosmicintersection.pages.access.dataset", "Dataset"),
331
- children: /* @__PURE__ */ c(w, { placeholder: M("cosmicintersection.pages.access.selectDataset", "Select a dataset") })
332
- }), /* @__PURE__ */ c(x, { children: R.map((e) => /* @__PURE__ */ c(S, {
331
+ children: /* @__PURE__ */ c(C, { placeholder: M("cosmicintersection.pages.access.selectDataset", "Select a dataset") })
332
+ }), /* @__PURE__ */ c(b, { children: R.map((e) => /* @__PURE__ */ c(x, {
333
333
  value: e.id,
334
334
  children: e.name
335
335
  }, e.id)) })]
@@ -338,11 +338,11 @@ function M() {
338
338
  /* @__PURE__ */ l("div", {
339
339
  className: "space-y-1.5",
340
340
  children: [
341
- /* @__PURE__ */ c(y, {
341
+ /* @__PURE__ */ c(v, {
342
342
  htmlFor: "grant-grantee",
343
343
  children: M("cosmicintersection.pages.access.grantee", "Grantee (User ID)")
344
344
  }),
345
- /* @__PURE__ */ c(v, {
345
+ /* @__PURE__ */ c(_, {
346
346
  id: "grant-grantee",
347
347
  value: q.granteeId,
348
348
  onChange: (e) => Z("granteeId", e.target.value),
@@ -363,10 +363,10 @@ function M() {
363
363
  }),
364
364
  /* @__PURE__ */ l("div", {
365
365
  className: "space-y-1.5",
366
- children: [/* @__PURE__ */ c(y, {
366
+ children: [/* @__PURE__ */ c(v, {
367
367
  htmlFor: "grant-reason",
368
368
  children: M("cosmicintersection.pages.access.reason", "Reason")
369
- }), /* @__PURE__ */ c(he, {
369
+ }), /* @__PURE__ */ c(me, {
370
370
  id: "grant-reason",
371
371
  value: q.reason,
372
372
  onChange: (e) => Z("reason", e.target.value),
@@ -377,11 +377,11 @@ function M() {
377
377
  /* @__PURE__ */ l("div", {
378
378
  className: "space-y-1.5",
379
379
  children: [
380
- /* @__PURE__ */ c(y, {
380
+ /* @__PURE__ */ c(v, {
381
381
  htmlFor: "grant-expires",
382
382
  children: M("cosmicintersection.pages.access.expiresOptional", "Expires (optional)")
383
383
  }),
384
- /* @__PURE__ */ c(v, {
384
+ /* @__PURE__ */ c(_, {
385
385
  id: "grant-expires",
386
386
  type: "datetime-local",
387
387
  value: q.expiresAt,
@@ -395,31 +395,31 @@ function M() {
395
395
  })
396
396
  ]
397
397
  }),
398
- /* @__PURE__ */ l(h, { children: [/* @__PURE__ */ c(f, {
398
+ /* @__PURE__ */ l(ue, { children: [/* @__PURE__ */ c(d, {
399
399
  type: "button",
400
400
  variant: "outline",
401
401
  onClick: () => K(!1),
402
402
  disabled: W,
403
403
  children: M("cosmicintersection.common.cancel", "Cancel")
404
- }), /* @__PURE__ */ l(f, {
404
+ }), /* @__PURE__ */ l(d, {
405
405
  type: "button",
406
406
  onClick: () => void De(),
407
407
  disabled: W,
408
- children: [/* @__PURE__ */ c(u, { className: "size-4" }), W ? M("cosmicintersection.pages.access.granting", "Granting…") : M("cosmicintersection.pages.access.grantAccess", "Grant access")]
408
+ children: [/* @__PURE__ */ c(D, { className: "size-4" }), W ? M("cosmicintersection.pages.access.granting", "Granting…") : M("cosmicintersection.pages.access.grantAccess", "Grant access")]
409
409
  })] })
410
410
  ]
411
411
  })
412
412
  }),
413
- /* @__PURE__ */ c(p, {
413
+ /* @__PURE__ */ c(f, {
414
414
  open: Y != null,
415
415
  onOpenChange: (e) => !e && X(null),
416
- children: /* @__PURE__ */ l(de, { children: [/* @__PURE__ */ l(g, { children: [/* @__PURE__ */ c(_, { children: M("cosmicintersection.pages.access.revokeConfirmTitle", "Revoke access?") }), /* @__PURE__ */ c(m, { children: M("cosmicintersection.pages.access.revokeConfirmDescription", "The grantee immediately loses access to this dataset. To restore access later, a new grant must be created and approved.") })] }), /* @__PURE__ */ l(h, { children: [/* @__PURE__ */ c(f, {
416
+ children: /* @__PURE__ */ l(p, { children: [/* @__PURE__ */ l(h, { children: [/* @__PURE__ */ c(g, { children: M("cosmicintersection.pages.access.revokeConfirmTitle", "Revoke access?") }), /* @__PURE__ */ c(m, { children: M("cosmicintersection.pages.access.revokeConfirmDescription", "The grantee immediately loses access to this dataset. To restore access later, a new grant must be created and approved.") })] }), /* @__PURE__ */ l(ue, { children: [/* @__PURE__ */ c(d, {
417
417
  type: "button",
418
418
  variant: "outline",
419
419
  onClick: () => X(null),
420
420
  disabled: G,
421
421
  children: M("cosmicintersection.pages.access.cancel", "Cancel")
422
- }), /* @__PURE__ */ c(f, {
422
+ }), /* @__PURE__ */ c(d, {
423
423
  type: "button",
424
424
  variant: "destructive",
425
425
  onClick: () => Y && void Oe(Y),