@elaraai/e3-ui-components 0.0.1-beta.9 → 1.0.0
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/CLA.md +1 -1
- package/CONTRIBUTING.md +3 -3
- package/LICENSE.md +15 -666
- package/README.md +69 -1
- package/dist/components/DataTaskPreview.d.ts +16 -0
- package/dist/components/DataTaskPreview.d.ts.map +1 -0
- package/dist/components/DatasetPreview.d.ts +14 -0
- package/dist/components/DatasetPreview.d.ts.map +1 -0
- package/dist/components/EastValueViewer.d.ts.map +1 -1
- package/dist/components/ErrorBoundary.d.ts +10 -2
- package/dist/components/ErrorBoundary.d.ts.map +1 -1
- package/dist/components/InputPreview.d.ts +1 -7
- package/dist/components/InputPreview.d.ts.map +1 -1
- package/dist/components/TaskLogs.d.ts +13 -0
- package/dist/components/TaskLogs.d.ts.map +1 -0
- package/dist/components/TaskPreview.d.ts +1 -8
- package/dist/components/TaskPreview.d.ts.map +1 -1
- package/dist/components/UITaskPreview.d.ts +16 -0
- package/dist/components/UITaskPreview.d.ts.map +1 -0
- package/dist/components/VirtualizedLogViewer.d.ts.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/diff/format.d.ts +19 -0
- package/dist/diff/format.d.ts.map +1 -0
- package/dist/diff/index.d.ts +10 -0
- package/dist/diff/index.d.ts.map +1 -0
- package/dist/diff/manual.d.ts +25 -0
- package/dist/diff/manual.d.ts.map +1 -0
- package/dist/diff/walker.d.ts +52 -0
- package/dist/diff/walker.d.ts.map +1 -0
- package/dist/hooks/datasets.d.ts +5 -1
- package/dist/hooks/datasets.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/types.d.ts +2 -6
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/hooks/useDatasetStatus.d.ts +20 -0
- package/dist/hooks/useDatasetStatus.d.ts.map +1 -0
- package/dist/hooks/useDatasetValue.d.ts +35 -0
- package/dist/hooks/useDatasetValue.d.ts.map +1 -0
- package/dist/hooks/useInputData.d.ts +5 -1
- package/dist/hooks/useInputData.d.ts.map +1 -1
- package/dist/hooks/useTaskDetails.d.ts +14 -0
- package/dist/hooks/useTaskDetails.d.ts.map +1 -0
- package/dist/hooks/useTaskLogsHook.d.ts +2 -2
- package/dist/hooks/useTaskLogsHook.d.ts.map +1 -1
- package/dist/hooks/useTaskOutput.d.ts +5 -1
- package/dist/hooks/useTaskOutput.d.ts.map +1 -1
- package/dist/index.cjs +50775 -1780
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +50886 -1907
- package/dist/index.js.map +1 -1
- package/dist/ontology/NodePropertiesDrawer.d.ts +19 -0
- package/dist/ontology/NodePropertiesDrawer.d.ts.map +1 -0
- package/dist/ontology/OntologyEdge.d.ts +11 -0
- package/dist/ontology/OntologyEdge.d.ts.map +1 -0
- package/dist/ontology/OntologyNode.d.ts +14 -0
- package/dist/ontology/OntologyNode.d.ts.map +1 -0
- package/dist/ontology/accents.d.ts +20 -0
- package/dist/ontology/accents.d.ts.map +1 -0
- package/dist/ontology/bind-runtime.d.ts +30 -0
- package/dist/ontology/bind-runtime.d.ts.map +1 -0
- package/dist/ontology/flow-state.d.ts +34 -0
- package/dist/ontology/flow-state.d.ts.map +1 -0
- package/dist/ontology/index.d.ts +10 -0
- package/dist/ontology/index.d.ts.map +1 -0
- package/dist/ontology/layout.d.ts +9 -0
- package/dist/ontology/layout.d.ts.map +1 -0
- package/dist/ontology/types.d.ts +46 -0
- package/dist/ontology/types.d.ts.map +1 -0
- package/dist/platform/bind-runtime.d.ts +139 -0
- package/dist/platform/bind-runtime.d.ts.map +1 -0
- package/dist/platform/dataset-hooks.d.ts +175 -0
- package/dist/platform/dataset-hooks.d.ts.map +1 -0
- package/dist/platform/dataset-store.d.ts +251 -0
- package/dist/platform/dataset-store.d.ts.map +1 -0
- package/dist/platform/e3-config.d.ts +59 -0
- package/dist/platform/e3-config.d.ts.map +1 -0
- package/dist/platform/index.d.ts +16 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/staged-store.d.ts +108 -0
- package/dist/platform/staged-store.d.ts.map +1 -0
- package/package.json +47 -24
- package/dist/hooks/useInputDataPreview.d.ts +0 -8
- package/dist/hooks/useInputDataPreview.d.ts.map +0 -1
- package/dist/hooks/useTaskOutputPreview.d.ts +0 -8
- package/dist/hooks/useTaskOutputPreview.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -113,20 +113,88 @@ npm run build # Build library
|
|
|
113
113
|
npm run lint # Check code quality
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
+
## Claude Code plugin
|
|
117
|
+
|
|
118
|
+
The East ecosystem also ships a [Claude Code](https://claude.com/claude-code) plugin — East language skills, example search, and preemptive diagnostics for East code — installed separately from the `elaraai` marketplace:
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
# Inside Claude Code
|
|
122
|
+
/plugin marketplace add elaraai/east-workspace
|
|
123
|
+
/plugin install east@elaraai
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# From a terminal
|
|
128
|
+
claude plugin marketplace add elaraai/east-workspace
|
|
129
|
+
claude plugin install east@elaraai
|
|
130
|
+
```
|
|
131
|
+
|
|
116
132
|
## License
|
|
117
133
|
|
|
118
134
|
Dual-licensed:
|
|
119
135
|
- **Open Source**: [AGPL-3.0](LICENSE.md) - Free for open source use
|
|
120
136
|
- **Commercial**: Available for proprietary use - contact support@elara.ai
|
|
121
137
|
|
|
138
|
+
|
|
139
|
+
<!-- Ecosystem — keep in sync with docs/snippets/ECOSYSTEM.md -->
|
|
140
|
+
|
|
141
|
+
### Ecosystem
|
|
142
|
+
|
|
143
|
+
- **[East](https://github.com/elaraai/east-workspace/tree/main/libs/east)**: Statically typed, expression-based language with serializable IR. Run portable logic across TypeScript, Python, C, and other runtimes.
|
|
144
|
+
- [@elaraai/east](https://www.npmjs.com/package/@elaraai/east): Core language SDK with type system, expressions, and reference JS compiler
|
|
145
|
+
|
|
146
|
+
- **[East Node](https://github.com/elaraai/east-workspace/tree/main/libs/east-node)**: Node.js platform functions for I/O, databases, and system operations.
|
|
147
|
+
- [@elaraai/east-node-std](https://www.npmjs.com/package/@elaraai/east-node-std): Console, FileSystem, Fetch, Crypto, Time, Path, Random
|
|
148
|
+
- [@elaraai/east-node-io](https://www.npmjs.com/package/@elaraai/east-node-io): SQLite, PostgreSQL, MySQL, MongoDB, Redis, S3, FTP, SFTP, XLSX, XML, compression
|
|
149
|
+
- [@elaraai/east-node-cli](https://www.npmjs.com/package/@elaraai/east-node-cli): CLI for running East IR programs in Node.js
|
|
150
|
+
|
|
151
|
+
- **[East C](https://github.com/elaraai/east-workspace/tree/main/libs/east-c)**: C11 native runtime for executing East IR. Tarballed for `linux-x64` and `linux-arm64`, attached to each GitHub Release.
|
|
152
|
+
- `east-c`: Core runtime — type system, IR interpreter, 200+ builtins, serialization (Beast2, JSON, CSV, East text)
|
|
153
|
+
- `east-c-std`: Console, FileSystem, Fetch, Crypto, Time, Path, Random
|
|
154
|
+
- `east-c-cli`: CLI for running East IR programs natively
|
|
155
|
+
|
|
156
|
+
- **[East Python](https://github.com/elaraai/east-workspace/tree/main/libs/east-py)**: Python runtime, standard platform, I/O, and data-science platform functions. Published to PyPI.
|
|
157
|
+
- [east-py](https://pypi.org/project/east-py/): Core Python runtime — type system, IR compiler, 212+ builtins, Cython-accelerated hot paths
|
|
158
|
+
- [east-py-std](https://pypi.org/project/east-py-std/): Console, FileSystem, Fetch, Crypto, Time, Path, Random
|
|
159
|
+
- [east-py-io](https://pypi.org/project/east-py-io/): SQLite, PostgreSQL, MySQL, MongoDB, Redis, S3, FTP, SFTP, XLSX, XML, compression
|
|
160
|
+
- [east-py-cli](https://pypi.org/project/east-py-cli/): CLI for running East IR programs in Python
|
|
161
|
+
- [east-py-datascience](https://pypi.org/project/east-py-datascience/) (PyPI) + [@elaraai/east-py-datascience](https://www.npmjs.com/package/@elaraai/east-py-datascience) (npm): Optimization (MADS, Optuna, ALNS, GoogleOR), ML (XGBoost, LightGBM, NGBoost, PyTorch, Lightning, GP), Bayesian inference (PyMC), explainability (SHAP), conformal prediction (MAPIE)
|
|
162
|
+
|
|
163
|
+
- **[East UI](https://github.com/elaraai/east-workspace/tree/main/libs/east-ui)**: Typed UI component definitions and React renderer, plus VS Code preview.
|
|
164
|
+
- [@elaraai/east-ui](https://www.npmjs.com/package/@elaraai/east-ui): 50+ typed UI components for layouts, forms, charts, tables, dialogs
|
|
165
|
+
- [@elaraai/east-ui-components](https://www.npmjs.com/package/@elaraai/east-ui-components): React renderer with Chakra UI v3 styling
|
|
166
|
+
- [@elaraai/e3-ui](https://www.npmjs.com/package/@elaraai/e3-ui): e3 + UI bridge — Data bindings, `e3.ui()` task, manifest
|
|
167
|
+
- [@elaraai/e3-ui-components](https://www.npmjs.com/package/@elaraai/e3-ui-components): React Query hooks and preview components for the e3 API
|
|
168
|
+
- [east-ui-preview](https://marketplace.visualstudio.com/items?itemName=ElaraAI.east-ui-preview): VS Code extension for live East UI component preview
|
|
169
|
+
|
|
170
|
+
- **[e3 — East Execution Engine](https://github.com/elaraai/east-workspace/tree/main/libs/e3)**: Durable execution engine for running East pipelines at scale. Git-like content-addressable storage, automatic memoization, reactive dataflow, real-time monitoring.
|
|
171
|
+
- [@elaraai/e3](https://www.npmjs.com/package/@elaraai/e3): SDK for authoring e3 packages with typed tasks and pipelines
|
|
172
|
+
- [@elaraai/e3-core](https://www.npmjs.com/package/@elaraai/e3-core): Object store, dataflow orchestrator, execution state
|
|
173
|
+
- [@elaraai/e3-types](https://www.npmjs.com/package/@elaraai/e3-types): Shared type definitions for e3 packages
|
|
174
|
+
- [@elaraai/e3-cli](https://www.npmjs.com/package/@elaraai/e3-cli): `e3 repo`, `e3 package`, `e3 workspace`, `e3 start`, `e3 watch`, `e3 logs` commands
|
|
175
|
+
- [@elaraai/e3-api-client](https://www.npmjs.com/package/@elaraai/e3-api-client): HTTP client for remote e3 repositories
|
|
176
|
+
- [@elaraai/e3-api-server](https://www.npmjs.com/package/@elaraai/e3-api-server): REST API server for e3 repositories
|
|
177
|
+
- [@elaraai/e3-api-tests](https://www.npmjs.com/package/@elaraai/e3-api-tests): Shared API compliance test suites
|
|
178
|
+
|
|
122
179
|
## Links
|
|
123
180
|
|
|
124
181
|
- **Website**: [https://elaraai.com/](https://elaraai.com/)
|
|
125
182
|
- **e3 API Client**: [https://www.npmjs.com/package/@elaraai/e3-api-client](https://www.npmjs.com/package/@elaraai/e3-api-client)
|
|
126
183
|
- **East UI**: [https://www.npmjs.com/package/@elaraai/east-ui](https://www.npmjs.com/package/@elaraai/east-ui)
|
|
127
|
-
- **Issues**: [https://github.com/elaraai/east-
|
|
184
|
+
- **Issues**: [https://github.com/elaraai/east-workspace/issues](https://github.com/elaraai/east-workspace/issues)
|
|
128
185
|
- **Email**: support@elara.ai
|
|
129
186
|
|
|
187
|
+
|
|
188
|
+
<!-- About Elara — keep in sync with docs/snippets/ABOUT_ELARA.md -->
|
|
189
|
+
|
|
190
|
+
## About Elara
|
|
191
|
+
|
|
192
|
+
East is developed by [Elara AI Pty Ltd](https://elaraai.com/), an AI-powered platform that creates economic digital twins of businesses that optimize performance. Elara combines business objectives, decisions and data to help organizations make data-driven decisions across operations, purchasing, sales and customer engagement, and project and investment planning. East powers the computational layer of Elara solutions, enabling the expression of complex business logic and data in a simple, type-safe and portable language.
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
*Developed by [Elara AI Pty Ltd](https://elaraai.com/).*
|
|
197
|
+
|
|
130
198
|
---
|
|
131
199
|
|
|
132
200
|
*Developed by [Elara AI Pty Ltd](https://elaraai.com/) - Powering the computational layer of AI-driven business optimization.*
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RequestOptions } from '@elaraai/e3-api-client';
|
|
2
|
+
type ViewMode = 'output' | 'logs';
|
|
3
|
+
export interface DataTaskPreviewProps {
|
|
4
|
+
apiUrl: string;
|
|
5
|
+
repo: string;
|
|
6
|
+
workspace: string;
|
|
7
|
+
task: string;
|
|
8
|
+
requestOptions?: RequestOptions;
|
|
9
|
+
/** Initially selected tab. Default 'output'. */
|
|
10
|
+
initialView?: ViewMode;
|
|
11
|
+
/** Max output bytes to render inline (above → download button). Default 200KB. */
|
|
12
|
+
sizeLimit?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const DataTaskPreview: import('react').NamedExoticComponent<DataTaskPreviewProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=DataTaskPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/DataTaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAiBH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAO7D,KAAK,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAElC,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gDAAgD;IAChD,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAMD,eAAO,MAAM,eAAe,4DAoE1B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RequestOptions } from '@elaraai/e3-api-client';
|
|
2
|
+
export interface DatasetPreviewProps {
|
|
3
|
+
apiUrl: string;
|
|
4
|
+
repo: string;
|
|
5
|
+
workspace: string | null;
|
|
6
|
+
/** Dotted path string, e.g. "inputs.threshold". */
|
|
7
|
+
path: string | null;
|
|
8
|
+
requestOptions?: RequestOptions;
|
|
9
|
+
/** Max bytes to fetch + render inline. Above this → download button. */
|
|
10
|
+
sizeLimit?: number;
|
|
11
|
+
pollInterval?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const DatasetPreview: import('react').NamedExoticComponent<DatasetPreviewProps>;
|
|
14
|
+
//# sourceMappingURL=DatasetPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatasetPreview.d.ts","sourceRoot":"","sources":["../../src/components/DatasetPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAkBH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAS7D,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mDAAmD;IACnD,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAsBD,eAAO,MAAM,cAAc,2DA6DzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EastValueViewer.d.ts","sourceRoot":"","sources":["../../src/components/EastValueViewer.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;CAClB;AA+UD,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"EastValueViewer.d.ts","sourceRoot":"","sources":["../../src/components/EastValueViewer.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;CAClB;AA+UD,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,oBAAoB,2CAapE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
|
1
|
+
import { Component, ErrorInfo, ReactNode } from 'react';
|
|
2
2
|
export interface ErrorBoundaryProps {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
}
|
|
@@ -8,12 +8,20 @@ interface ErrorBoundaryState {
|
|
|
8
8
|
/**
|
|
9
9
|
* React Error Boundary that catches rendering errors in East UI components.
|
|
10
10
|
* Displays EastError details (including source locations) using StatusDisplay.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* `componentDidUpdate` clears the error when `children` changes, so a
|
|
14
|
+
* transient render exception followed by a successful re-render shows up
|
|
15
|
+
* as a brief "flash" of the error UI. We always `console.error` the caught
|
|
16
|
+
* exception so the failure is preserved even when the visual flash is too
|
|
17
|
+
* fast to read.
|
|
11
18
|
*/
|
|
12
19
|
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
13
20
|
constructor(props: ErrorBoundaryProps);
|
|
14
21
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
22
|
+
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
15
23
|
componentDidUpdate(prevProps: ErrorBoundaryProps): void;
|
|
16
|
-
render(): string | number | bigint | boolean |
|
|
24
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
17
25
|
}
|
|
18
26
|
export {};
|
|
19
27
|
//# sourceMappingURL=ErrorBoundary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/components/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/components/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlE,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,UAAU,kBAAkB;IACxB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;gBACpE,KAAK,EAAE,kBAAkB;IAKrC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,kBAAkB;IAIxD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI;IAItD,kBAAkB,CAAC,SAAS,EAAE,kBAAkB;IAOhD,MAAM;CAYlB"}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequestOptions } from '@elaraai/e3-api-client';
|
|
2
2
|
export interface InputPreviewProps {
|
|
3
3
|
apiUrl: string;
|
|
4
4
|
repo: string;
|
|
5
5
|
workspace: string;
|
|
6
6
|
path: string;
|
|
7
|
-
inputInfo: DatasetStatusInfo | null;
|
|
8
7
|
requestOptions?: RequestOptions;
|
|
9
8
|
}
|
|
10
|
-
/**
|
|
11
|
-
* Renders a preview of an input dataset value.
|
|
12
|
-
* Decodes Beast2 data and renders as an East UI component if possible,
|
|
13
|
-
* otherwise displays the raw data using EastValueViewer.
|
|
14
|
-
*/
|
|
15
9
|
export declare const InputPreview: import('react').NamedExoticComponent<InputPreviewProps>;
|
|
16
10
|
//# sourceMappingURL=InputPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputPreview.d.ts","sourceRoot":"","sources":["../../src/components/InputPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"InputPreview.d.ts","sourceRoot":"","sources":["../../src/components/InputPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED,eAAO,MAAM,YAAY,yDAyBuD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RequestOptions } from '@elaraai/e3-api-client';
|
|
2
|
+
export interface TaskLogsProps {
|
|
3
|
+
apiUrl: string;
|
|
4
|
+
repo: string;
|
|
5
|
+
workspace: string;
|
|
6
|
+
task: string;
|
|
7
|
+
requestOptions?: RequestOptions;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Renders a virtualized log viewer for a task's stdout/stderr.
|
|
11
|
+
*/
|
|
12
|
+
export declare const TaskLogs: import('react').NamedExoticComponent<TaskLogsProps>;
|
|
13
|
+
//# sourceMappingURL=TaskLogs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskLogs.d.ts","sourceRoot":"","sources":["../../src/components/TaskLogs.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,qDA4BnB,CAAC"}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequestOptions } from '@elaraai/e3-api-client';
|
|
2
2
|
export interface TaskPreviewProps {
|
|
3
3
|
apiUrl: string;
|
|
4
4
|
repo: string;
|
|
5
5
|
workspace: string;
|
|
6
6
|
task: string;
|
|
7
|
-
taskInfo: TaskStatusInfo | null;
|
|
8
|
-
outputHash: string | null;
|
|
9
7
|
requestOptions?: RequestOptions;
|
|
10
8
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Renders a preview of a task's output and logs.
|
|
13
|
-
* Decodes Beast2 data and renders as an East UI component if possible,
|
|
14
|
-
* with a virtualized log viewer for stdout/stderr.
|
|
15
|
-
*/
|
|
16
9
|
export declare const TaskPreview: import('react').NamedExoticComponent<TaskPreviewProps>;
|
|
17
10
|
//# sourceMappingURL=TaskPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/TaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"TaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/TaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAM7D,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED,eAAO,MAAM,WAAW,wDAsCmF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { E3Config } from '../platform/e3-config.js';
|
|
2
|
+
export interface UITaskPreviewProps {
|
|
3
|
+
/** Task name (must have `kind: 'ui'`). */
|
|
4
|
+
task: string;
|
|
5
|
+
/**
|
|
6
|
+
* Override the surrounding `<E3Provider>` config — useful when a
|
|
7
|
+
* single page renders previews for multiple workspaces.
|
|
8
|
+
*/
|
|
9
|
+
config?: E3Config;
|
|
10
|
+
/**
|
|
11
|
+
* Poll interval (ms) for the manifest's declared reads. Default 1000ms.
|
|
12
|
+
*/
|
|
13
|
+
pollInterval?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const UITaskPreview: import('react').NamedExoticComponent<UITaskPreviewProps>;
|
|
16
|
+
//# sourceMappingURL=UITaskPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UITaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/UITaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAmCH,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQtE,MAAM,WAAW,kBAAkB;IAC/B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAMD,eAAO,MAAM,aAAa,0DA+FxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VirtualizedLogViewer.d.ts","sourceRoot":"","sources":["../../src/components/VirtualizedLogViewer.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAqC,KAAK,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAUvG,MAAM,WAAW,yBAAyB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,aAAa,CAAC;CACvB;AA2DD,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"VirtualizedLogViewer.d.ts","sourceRoot":"","sources":["../../src/components/VirtualizedLogViewer.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAqC,KAAK,aAAa,EAAgB,MAAM,kBAAkB,CAAC;AAUvG,MAAM,WAAW,yBAAyB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,aAAa,CAAC;CACvB;AA2DD,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,yBAAyB,2CAmVhF"}
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export { InputPreview, type InputPreviewProps } from './InputPreview.js';
|
|
6
6
|
export { TaskPreview, type TaskPreviewProps } from './TaskPreview.js';
|
|
7
|
+
export { TaskLogs, type TaskLogsProps } from './TaskLogs.js';
|
|
8
|
+
export { UITaskPreview, type UITaskPreviewProps } from './UITaskPreview.js';
|
|
9
|
+
export { DataTaskPreview, type DataTaskPreviewProps } from './DataTaskPreview.js';
|
|
10
|
+
export { DatasetPreview, type DatasetPreviewProps } from './DatasetPreview.js';
|
|
7
11
|
export { StatusDisplay, type StatusDisplayProps } from './StatusDisplay.js';
|
|
8
12
|
export { EastValueViewer, type EastValueViewerProps } from './EastValueViewer.js';
|
|
9
13
|
export { VirtualizedLogViewer, type VirtualizedLogViewerProps } from './VirtualizedLogViewer.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EastTypeValue } from '@elaraai/east';
|
|
2
|
+
/**
|
|
3
|
+
* Format a decoded East value into a short human-readable string. The
|
|
4
|
+
* `typeValue` selects formatting:
|
|
5
|
+
* - Primitives get a per-type compact form (e.g. `"42.50"`, `"2025-01-01"`).
|
|
6
|
+
* - Variants render their tag (and a printed inner for non-null cases).
|
|
7
|
+
* - Containers fall through to `printFor(typeValue)(value)`.
|
|
8
|
+
*
|
|
9
|
+
* When `typeValue` is null we have no type to round-trip against — return
|
|
10
|
+
* `"<value>"`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatLeafValue(typeValue: EastTypeValue | null, value: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Pretty-print a TreePath using the same "field: name" / "index: 5" /
|
|
15
|
+
* "key: foo" pattern as the staged-store cache key — but reduced to a
|
|
16
|
+
* bare label suitable for the binding-group header.
|
|
17
|
+
*/
|
|
18
|
+
export declare function formatBindingLabel(segments: ReadonlyArray<any>): string;
|
|
19
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/diff/format.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAIxE;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CAuBnF;AAcD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,CASvE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ValueTypeOf } from '@elaraai/east';
|
|
2
|
+
import { Diff } from '@elaraai/e3-ui';
|
|
3
|
+
type DiffValue = ValueTypeOf<typeof Diff.Component.schema>;
|
|
4
|
+
export interface EastChakraDiffProps {
|
|
5
|
+
value: DiffValue;
|
|
6
|
+
storageKey: string;
|
|
7
|
+
}
|
|
8
|
+
declare const EastChakraDiff: import('react').NamedExoticComponent<EastChakraDiffProps>;
|
|
9
|
+
export { EastChakraDiff };
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/diff/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AA2CH,OAAO,EAUH,KAAK,WAAW,EAQnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,IAAI,EAAmB,MAAM,gBAAgB,CAAC;AAwBvD,KAAK,SAAS,GAAG,WAAW,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;AA00B3D,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,cAAc,2DA2asC,CAAC;AAM3D,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EastTypeValue } from '@elaraai/east';
|
|
2
|
+
/**
|
|
3
|
+
* Whether a leaf type supports inline manual editing in the conflict
|
|
4
|
+
* chooser. Container leaves (Struct/Array/Dict/Set/Variant/Ref) and
|
|
5
|
+
* "valueless" primitives (Null/Blob) return false — the renderer hides the
|
|
6
|
+
* Manual chooser entirely for those.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isPrimitiveLeafType(t: EastTypeValue | null): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Render a leaf value as a string suitable for the manual-editor's text
|
|
11
|
+
* input. Empty string when there's nothing useful to show.
|
|
12
|
+
*/
|
|
13
|
+
export declare function formatManualDraft(leafType: EastTypeValue | null, value: any): string;
|
|
14
|
+
/**
|
|
15
|
+
* Parse a draft string back to a typed leaf value. Returns
|
|
16
|
+
* `{ ok: false }` for invalid input — the renderer keeps the previous
|
|
17
|
+
* valid value rather than firing onChange with garbage.
|
|
18
|
+
*/
|
|
19
|
+
export declare function parseManualDraft(leafType: EastTypeValue, draft: string): {
|
|
20
|
+
ok: true;
|
|
21
|
+
value: any;
|
|
22
|
+
} | {
|
|
23
|
+
ok: false;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=manual.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manual.d.ts","sourceRoot":"","sources":["../../src/diff/manual.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI,GAAG,OAAO,CAYpE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CAcpF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC5B,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,MAAM,GACd;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,GAAG,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAoB1C"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EastTypeValue, PatchLeafOp } from '@elaraai/east';
|
|
2
|
+
export type LeafOp = PatchLeafOp;
|
|
3
|
+
/** A leaf change — one user-visible before/after pair. */
|
|
4
|
+
export interface LeafNode {
|
|
5
|
+
kind: "leaf";
|
|
6
|
+
/** Stringified PatchPath — stable id within the binding. */
|
|
7
|
+
path: string;
|
|
8
|
+
/** Last segment, for display. */
|
|
9
|
+
label: string;
|
|
10
|
+
op: LeafOp;
|
|
11
|
+
leafType: EastTypeValue | null;
|
|
12
|
+
before: any;
|
|
13
|
+
after: any;
|
|
14
|
+
/** Set when the patch's expectation at this leaf disagrees with the
|
|
15
|
+
* actual base value (overlay-mode drift). When present, the row should
|
|
16
|
+
* render a warning badge with `actual` so the user can see what the
|
|
17
|
+
* source has now vs what the patch expected. */
|
|
18
|
+
stale?: {
|
|
19
|
+
expected: unknown;
|
|
20
|
+
actual: unknown;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/** An interior change — wraps multiple leaf or group children. */
|
|
24
|
+
export interface GroupNode {
|
|
25
|
+
kind: "group";
|
|
26
|
+
/** Stringified PatchPath. */
|
|
27
|
+
path: string;
|
|
28
|
+
/** Last segment, for display. */
|
|
29
|
+
label: string;
|
|
30
|
+
/** Total leaves under this subtree. */
|
|
31
|
+
leafCount: number;
|
|
32
|
+
/** Flat list of every leaf path under this subtree. Pre-computed during
|
|
33
|
+
* walk so the renderer's "discard all" handler doesn't re-traverse on
|
|
34
|
+
* each render. */
|
|
35
|
+
subtreeLeafPaths: string[];
|
|
36
|
+
children: DiffNode[];
|
|
37
|
+
}
|
|
38
|
+
export type DiffNode = LeafNode | GroupNode;
|
|
39
|
+
/** Enumerate all leaves under a node — used for total-count tallies that
|
|
40
|
+
* need {@link LeafNode} objects (not just paths). */
|
|
41
|
+
export declare function collectLeaves(node: DiffNode, into?: LeafNode[]): LeafNode[];
|
|
42
|
+
/**
|
|
43
|
+
* Walk a patch and build the renderer's `DiffNode` tree. Returns `null` when
|
|
44
|
+
* the patch is unchanged (no events fire).
|
|
45
|
+
*
|
|
46
|
+
* @param typeValue - Runtime EastTypeValue of the value being patched.
|
|
47
|
+
* @param patch - The patch (`PatchTypeOf<T>`).
|
|
48
|
+
* @param rootLabel - Display label for the root node (the renderer fills in
|
|
49
|
+
* the binding name here).
|
|
50
|
+
*/
|
|
51
|
+
export declare function walkPatchToTree(typeValue: EastTypeValue, patch: any, rootLabel: string): DiffNode | null;
|
|
52
|
+
//# sourceMappingURL=walker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walker.d.ts","sourceRoot":"","sources":["../../src/diff/walker.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,WAAW,EAInB,MAAM,eAAe,CAAC;AAMvB,MAAM,MAAM,MAAM,GAAG,WAAW,CAAC;AAEjC,0DAA0D;AAC1D,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,GAAG,CAAC;IACX;;;qDAGiD;IACjD,KAAK,CAAC,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC;CAClD;AAED,kEAAkE;AAClE,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB;;uBAEmB;IACnB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE5C;sDACsD;AACtD,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,GAAE,QAAQ,EAAO,GAAG,QAAQ,EAAE,CAI/E;AAwBD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,GAAG,EACV,SAAS,EAAE,MAAM,GAClB,QAAQ,GAAG,IAAI,CAsDjB"}
|
package/dist/hooks/datasets.d.ts
CHANGED
|
@@ -8,7 +8,11 @@ export declare function useDatasetListRecursive(url: string, repo: string, works
|
|
|
8
8
|
export declare function useDatasetListRecursivePaths(url: string, repo: string, workspace: string | null, path: TreePath, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult<string[], Error>;
|
|
9
9
|
export declare function useDatasetListWithStatus(url: string, repo: string, workspace: string | null, path: TreePath, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult<ListEntry[], Error>;
|
|
10
10
|
export declare function useDatasetGetStatus(url: string, repo: string, workspace: string | null, path: TreePath, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult<DatasetStatusDetail, Error>;
|
|
11
|
-
export declare function useDatasetGet(url: string, repo: string, workspace: string | null, path: TreePath, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult<
|
|
11
|
+
export declare function useDatasetGet(url: string, repo: string, workspace: string | null, path: TreePath, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): UseQueryResult<{
|
|
12
|
+
data: Uint8Array;
|
|
13
|
+
hash: string;
|
|
14
|
+
size: number;
|
|
15
|
+
}, Error>;
|
|
12
16
|
export declare function useDatasetSet(url: string, repo: string, workspace: string | null, requestOptions?: RequestOptions): import('@tanstack/react-query').UseMutationResult<void, Error, {
|
|
13
17
|
path: TreePath;
|
|
14
18
|
data: Uint8Array;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/hooks/datasets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,mCAOjJ;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,mCAOnK;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC,SAAS,EAAE,EAAE,KAAK,CAAC,CAO/M;AAED,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,mCAO/K;AAED,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC,SAAS,EAAE,EAAE,KAAK,CAAC,CAOhN;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAOnN;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc
|
|
1
|
+
{"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/hooks/datasets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,mCAOjJ;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,mCAOnK;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC,SAAS,EAAE,EAAE,KAAK,CAAC,CAO/M;AAED,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,mCAO/K;AAED,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC,SAAS,EAAE,EAAE,KAAK,CAAC,CAOhN;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAOnN;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,cAAc;;;;UAOhK;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,cAAc,CAAC,EAAE,cAAc;UACtE,QAAQ;UAAQ,UAAU;YAGrE"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -9,4 +9,7 @@ export * from './workspaces.js';
|
|
|
9
9
|
export * from './datasets.js';
|
|
10
10
|
export * from './tasks.js';
|
|
11
11
|
export * from './executions.js';
|
|
12
|
+
export { useDatasetStatus, type DatasetStatus, type UseDatasetStatusOptions } from './useDatasetStatus.js';
|
|
13
|
+
export { useDatasetValue, useDatasetDownload, type DatasetValueResult, type UseDatasetValueOptions } from './useDatasetValue.js';
|
|
14
|
+
export { useTaskDetails, getTaskKind, getTaskMetadata, type UseTaskDetailsOptions } from './useTaskDetails.js';
|
|
12
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,KAAK,aAAa,EAAE,KAAK,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC3G,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACjI,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/hooks/types.d.ts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { DatasetStatusDetail } from '@elaraai/e3-api-client';
|
|
2
|
+
import { option } from '@elaraai/east';
|
|
2
3
|
/**
|
|
3
4
|
* Dataset preview combining status metadata with optional data.
|
|
4
5
|
* When the dataset is oversized, `value` is `{ type: 'none' }`.
|
|
5
6
|
* When loaded, `value` is `{ type: 'some', value: Uint8Array }`.
|
|
6
7
|
*/
|
|
7
8
|
export type DatasetPreview = DatasetStatusDetail & {
|
|
8
|
-
value:
|
|
9
|
-
type: 'some';
|
|
10
|
-
value: Uint8Array;
|
|
11
|
-
} | {
|
|
12
|
-
type: 'none';
|
|
13
|
-
};
|
|
9
|
+
value: option<Uint8Array>;
|
|
14
10
|
};
|
|
15
11
|
/**
|
|
16
12
|
* Subset of UseQueryOptions that can be overridden by callers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/hooks/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/hooks/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAC/C,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1C,cAAc,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACpC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;CACvD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { RequestOptions } from '@elaraai/e3-api-client';
|
|
3
|
+
import { EastTypeValue } from '@elaraai/east';
|
|
4
|
+
import { QueryOverrides } from './types.js';
|
|
5
|
+
export interface DatasetStatus {
|
|
6
|
+
path: string;
|
|
7
|
+
type: EastTypeValue;
|
|
8
|
+
/** "unassigned" | "null" | "value" */
|
|
9
|
+
refType: string;
|
|
10
|
+
hash: string | null;
|
|
11
|
+
sizeBytes: number | null;
|
|
12
|
+
}
|
|
13
|
+
export interface UseDatasetStatusOptions {
|
|
14
|
+
requestOptions?: RequestOptions;
|
|
15
|
+
pollInterval?: number;
|
|
16
|
+
queryOverrides?: QueryOverrides;
|
|
17
|
+
}
|
|
18
|
+
/** Lightweight status fetch — hash, type, size. No value bytes. */
|
|
19
|
+
export declare function useDatasetStatus(apiUrl: string, repo: string, workspace: string | null, datasetPath: string | null, options?: UseDatasetStatusOptions): UseQueryResult<DatasetStatus, Error>;
|
|
20
|
+
//# sourceMappingURL=useDatasetStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDatasetStatus.d.ts","sourceRoot":"","sources":["../../src/hooks/useDatasetStatus.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAW,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACpC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED,mEAAmE;AACnE,wBAAgB,gBAAgB,CAC5B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,WAAW,EAAE,MAAM,GAAG,IAAI,EAC1B,OAAO,CAAC,EAAE,uBAAuB,GAClC,cAAc,CAAC,aAAa,EAAE,KAAK,CAAC,CAyBtC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { RequestOptions } from '@elaraai/e3-api-client';
|
|
3
|
+
import { EastTypeValue } from '@elaraai/east';
|
|
4
|
+
import { PlatformFunction } from '@elaraai/east/internal';
|
|
5
|
+
import { QueryOverrides } from './types.js';
|
|
6
|
+
export interface UseDatasetValueOptions {
|
|
7
|
+
requestOptions?: RequestOptions;
|
|
8
|
+
queryOverrides?: QueryOverrides;
|
|
9
|
+
/** Set false to skip the fetch (e.g. when oversized). Defaults to true. */
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Hash of the current dataset version. Used as part of the query key so
|
|
13
|
+
* the cached value invalidates when the underlying data changes. Pass
|
|
14
|
+
* `null` if not yet known — the fetch is gated on it being non-null.
|
|
15
|
+
*/
|
|
16
|
+
hash?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Platform implementations passed to `decodeBeast2For`. Closures inside
|
|
19
|
+
* the decoded value (callbacks, etc) close over these. Defaults to the
|
|
20
|
+
* global Data/State/Overlay impls. Pass a manifest-scoped variant for
|
|
21
|
+
* per-subtree read/write validation.
|
|
22
|
+
*/
|
|
23
|
+
platforms?: PlatformFunction[];
|
|
24
|
+
/** East type to decode against. Required. */
|
|
25
|
+
type: EastTypeValue;
|
|
26
|
+
}
|
|
27
|
+
export interface DatasetValueResult {
|
|
28
|
+
decoded: unknown;
|
|
29
|
+
sizeBytes: number;
|
|
30
|
+
}
|
|
31
|
+
/** Fetch + decode a dataset value. Caller is responsible for size gating. */
|
|
32
|
+
export declare function useDatasetValue(apiUrl: string, repo: string, workspace: string | null, datasetPath: string | null, options: UseDatasetValueOptions): UseQueryResult<DatasetValueResult, Error>;
|
|
33
|
+
/** Trigger a binary download of a dataset value. */
|
|
34
|
+
export declare function useDatasetDownload(apiUrl: string, repo: string, workspace: string | null, datasetPath: string | null, requestOptions?: RequestOptions): () => Promise<void>;
|
|
35
|
+
//# sourceMappingURL=useDatasetValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDatasetValue.d.ts","sourceRoot":"","sources":["../../src/hooks/useDatasetValue.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAA4B,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAK7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAKjD,MAAM,WAAW,sBAAsB;IACnC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,6CAA6C;IAC7C,IAAI,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,WAAW,EAAE,MAAM,GAAG,IAAI,EAC1B,OAAO,EAAE,sBAAsB,GAChC,cAAc,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAyB3C;AAED,oDAAoD;AACpD,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,WAAW,EAAE,MAAM,GAAG,IAAI,EAC1B,cAAc,CAAC,EAAE,cAAc,uBAyBlC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { QueryOverrides } from './types.js';
|
|
2
2
|
import { DatasetStatusInfo, RequestOptions } from '@elaraai/e3-api-client';
|
|
3
|
-
export declare function useInputData(apiUrl: string, repo: string, workspace: string | null, inputInfo: DatasetStatusInfo | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): import('@tanstack/react-query').UseQueryResult<
|
|
3
|
+
export declare function useInputData(apiUrl: string, repo: string, workspace: string | null, inputInfo: DatasetStatusInfo | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): import('@tanstack/react-query').UseQueryResult<{
|
|
4
|
+
data: Uint8Array;
|
|
5
|
+
hash: string;
|
|
6
|
+
size: number;
|
|
7
|
+
}, Error>;
|
|
4
8
|
//# sourceMappingURL=useInputData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInputData.d.ts","sourceRoot":"","sources":["../../src/hooks/useInputData.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGhF,wBAAgB,YAAY,CACxB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,SAAS,EAAE,iBAAiB,GAAG,IAAI,EACnC,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,cAAc
|
|
1
|
+
{"version":3,"file":"useInputData.d.ts","sourceRoot":"","sources":["../../src/hooks/useInputData.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGhF,wBAAgB,YAAY,CACxB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,SAAS,EAAE,iBAAiB,GAAG,IAAI,EACnC,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,cAAc;;;;UAmBhC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { RequestOptions, TaskDetails } from '@elaraai/e3-api-client';
|
|
3
|
+
import { QueryOverrides } from './types.js';
|
|
4
|
+
export interface UseTaskDetailsOptions {
|
|
5
|
+
requestOptions?: RequestOptions;
|
|
6
|
+
queryOverrides?: QueryOverrides;
|
|
7
|
+
}
|
|
8
|
+
/** Fetch a task's details (name, kind, metadata, output, ...). */
|
|
9
|
+
export declare function useTaskDetails(apiUrl: string, repo: string, workspace: string | null, taskName: string | null, options?: UseTaskDetailsOptions): UseQueryResult<TaskDetails, Error>;
|
|
10
|
+
/** Read `kind` from TaskDetails as a plain string ('ui' | 'data' | etc) or null. */
|
|
11
|
+
export declare function getTaskKind(details: TaskDetails): string | null;
|
|
12
|
+
/** Read `metadata` blob from TaskDetails or null. */
|
|
13
|
+
export declare function getTaskMetadata(details: TaskDetails): Uint8Array | null;
|
|
14
|
+
//# sourceMappingURL=useTaskDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTaskDetails.d.ts","sourceRoot":"","sources":["../../src/hooks/useTaskDetails.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IAClC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED,kEAAkE;AAClE,wBAAgB,cAAc,CAC1B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,OAAO,CAAC,EAAE,qBAAqB,GAChC,cAAc,CAAC,WAAW,EAAE,KAAK,CAAC,CAQpC;AAED,oFAAoF;AACpF,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAE/D;AAED,qDAAqD;AACrD,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,GAAG,IAAI,CAEvE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryOverrides } from './types.js';
|
|
2
|
-
import {
|
|
3
|
-
export declare function useTaskLogs(apiUrl: string, repo: string, workspace: string | null,
|
|
2
|
+
import { RequestOptions } from '@elaraai/e3-api-client';
|
|
3
|
+
export declare function useTaskLogs(apiUrl: string, repo: string, workspace: string | null, taskName: string | null, stream?: 'stdout' | 'stderr', requestOptions?: RequestOptions, queryOptions?: QueryOverrides): import('@tanstack/react-query').UseQueryResult<{
|
|
4
4
|
data: string;
|
|
5
5
|
offset: bigint;
|
|
6
6
|
size: bigint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTaskLogsHook.d.ts","sourceRoot":"","sources":["../../src/hooks/useTaskLogsHook.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"useTaskLogsHook.d.ts","sourceRoot":"","sources":["../../src/hooks/useTaskLogsHook.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAwD7D,wBAAgB,WAAW,CACvB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,MAAM,GAAE,QAAQ,GAAG,QAAmB,EACtC,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,cAAc;UAlDd,MAAM;YAAU,MAAM;UAAQ,MAAM;eAAa,MAAM;cAAY,OAAO;UA2D5F"}
|