@akohn/dashql 0.0.2-dev.17 → 0.0.19-dev.247
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/platform/session/agent_session_client.d.ts +25 -5
- package/dist/platform/session/agent_session_client.js +57 -22
- package/dist/platform/session/agent_session_state.d.ts +12 -27
- package/dist/platform/session/agent_session_state.js +51 -24
- package/dist/platform/session/workbook_journal.d.ts +0 -29
- package/dist/platform/session/workbook_journal.js +5 -95
- package/dist/platform/workbook/run_events.d.ts +66 -0
- package/dist/platform/workbook/run_events.js +38 -0
- package/dist/runtime/runtime.d.ts +0 -1
- package/dist/runtime/runtime.js +0 -9
- package/dist/runtime/workbook_run_report.d.ts +22 -0
- package/dist/runtime/workbook_run_report.js +248 -0
- package/dist/wasm/dashql_core.d.ts +1600 -1637
- package/dist/wasm/dashql_core.js +23 -55
- package/dist/wasm/dashql_core.wasm +0 -0
- package/package.json +1 -1
package/dist/wasm/dashql_core.js
CHANGED
|
@@ -233,6 +233,21 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
233
233
|
function _assertClass(instance, klass) {
|
|
234
234
|
if (!(instance instanceof klass)) throw new Error(`expected instance of ${klass.name}`);
|
|
235
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Replay a recording of the progress of a query (JSON, see `ProfileRecording`) up to a point in time in milliseconds
|
|
238
|
+
* since its first payload, with a layout of the plan or the default one. None if nothing happened until then.
|
|
239
|
+
* @param {string} recording
|
|
240
|
+
* @param {number} until_ms
|
|
241
|
+
* @param {ProfileLayoutView | null} [layout]
|
|
242
|
+
* @returns {QueryProfileProgressView | undefined}
|
|
243
|
+
*/
|
|
244
|
+
function replayQueryProgress(recording, until_ms, layout) {
|
|
245
|
+
const ptr0 = passStringToWasm0(recording, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
246
|
+
const len0 = WASM_VECTOR_LEN;
|
|
247
|
+
const ret = wasm.replayQueryProgress(ptr0, len0, until_ms, isLikeNone(layout) ? 0 : addToExternrefTable0(layout));
|
|
248
|
+
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
249
|
+
return takeFromExternrefTable0(ret[0]);
|
|
250
|
+
}
|
|
236
251
|
function getArrayU32FromWasm0(ptr, len) {
|
|
237
252
|
ptr = ptr >>> 0;
|
|
238
253
|
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
@@ -417,27 +432,12 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
417
432
|
wasm.__externref_drop_slice(ptr, len);
|
|
418
433
|
return result;
|
|
419
434
|
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
* since its first payload, with a layout of the plan or the default one. None if nothing happened until then.
|
|
423
|
-
* @param {string} recording
|
|
424
|
-
* @param {number} until_ms
|
|
425
|
-
* @param {ProfileLayoutView | null} [layout]
|
|
426
|
-
* @returns {QueryProfileProgressView | undefined}
|
|
427
|
-
*/
|
|
428
|
-
function replayQueryProgress(recording, until_ms, layout) {
|
|
429
|
-
const ptr0 = passStringToWasm0(recording, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
430
|
-
const len0 = WASM_VECTOR_LEN;
|
|
431
|
-
const ret = wasm.replayQueryProgress(ptr0, len0, until_ms, isLikeNone(layout) ? 0 : addToExternrefTable0(layout));
|
|
432
|
-
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
433
|
-
return takeFromExternrefTable0(ret[0]);
|
|
435
|
+
function wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09(arg0, arg1, arg2) {
|
|
436
|
+
return wasm.wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09(arg0, arg1, arg2);
|
|
434
437
|
}
|
|
435
438
|
function wasm_bindgen__convert__closures_____invoke__hc9cbe033348e018d(arg0, arg1, arg2) {
|
|
436
439
|
wasm.wasm_bindgen__convert__closures_____invoke__hc9cbe033348e018d(arg0, arg1, arg2);
|
|
437
440
|
}
|
|
438
|
-
function wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09(arg0, arg1, arg2) {
|
|
439
|
-
return wasm.wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09(arg0, arg1, arg2);
|
|
440
|
-
}
|
|
441
441
|
function wasm_bindgen__convert__closures_____invoke__h3cb6850919769fd7(arg0, arg1, arg2, arg3) {
|
|
442
442
|
wasm.wasm_bindgen__convert__closures_____invoke__h3cb6850919769fd7(arg0, arg1, arg2, arg3);
|
|
443
443
|
}
|
|
@@ -1590,22 +1590,6 @@ var Runtime = class Runtime {
|
|
|
1590
1590
|
return v2;
|
|
1591
1591
|
}
|
|
1592
1592
|
/**
|
|
1593
|
-
* Add a result of a key to the query result cache, e.g. one that a run of the command line tool wrote, from a file of
|
|
1594
|
-
* the handle table that the caller keeps and releases. A key that is cached already keeps its files. An added file
|
|
1595
|
-
* is followed by the eviction of a written one, and the workbooks look up the cached results of their scripts
|
|
1596
|
-
* again. Resolves whether the file was added.
|
|
1597
|
-
* @param {string} key
|
|
1598
|
-
* @param {number} file
|
|
1599
|
-
* @returns {Promise<boolean>}
|
|
1600
|
-
*/
|
|
1601
|
-
importCachedResult(key, file) {
|
|
1602
|
-
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1603
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1604
|
-
const ret = wasm.runtime_importCachedResult(this.__wbg_ptr, ptr0, len0, file);
|
|
1605
|
-
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
1606
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1607
|
-
}
|
|
1608
|
-
/**
|
|
1609
1593
|
* Is the analysis of a script outdated, also by a change that the workbook missed?
|
|
1610
1594
|
* @param {number} script_key
|
|
1611
1595
|
* @returns {boolean}
|
|
@@ -1744,22 +1728,6 @@ var Runtime = class Runtime {
|
|
|
1744
1728
|
return wasm.runtime_migrateWorkbookFolder(this.__wbg_ptr, ptr0, len0);
|
|
1745
1729
|
}
|
|
1746
1730
|
/**
|
|
1747
|
-
* The auth of a connection as it goes with its requests, for a process that sends the requests of the connection
|
|
1748
|
-
* for another one, e.g. the relay of `dashql connect`: the auth headers by the origin of the endpoints, with
|
|
1749
|
-
* tokens that are refreshed first if they are about to expire, the account and the stand-in responses of the
|
|
1750
|
-
* token requests of the login. Null for a connection without a channel of Trino or Salesforce or with a Trino
|
|
1751
|
-
* channel that has no token yet, rejects when the refresh fails.
|
|
1752
|
-
* @param {string} connection_id
|
|
1753
|
-
* @returns {Promise<ConnectionAuthorization | null>}
|
|
1754
|
-
*/
|
|
1755
|
-
connectionAuthorization(connection_id) {
|
|
1756
|
-
const ptr0 = passStringToWasm0(connection_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1757
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1758
|
-
const ret = wasm.runtime_connectionAuthorization(this.__wbg_ptr, ptr0, len0);
|
|
1759
|
-
if (ret[2]) throw takeFromExternrefTable0(ret[1]);
|
|
1760
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1761
|
-
}
|
|
1762
|
-
/**
|
|
1763
1731
|
* The recording of the progress of a query as JSON, none without structured progress
|
|
1764
1732
|
* @param {number} query_id
|
|
1765
1733
|
* @returns {string | undefined}
|
|
@@ -4451,27 +4419,27 @@ function __wbg_get_imports() {
|
|
|
4451
4419
|
imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
|
|
4452
4420
|
return arg0.value;
|
|
4453
4421
|
};
|
|
4422
|
+
imports.wbg.__wbindgen_cast_0e05e56a777982dd = function(arg0, arg1) {
|
|
4423
|
+
return makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h74bdb7d22b702b82, wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09);
|
|
4424
|
+
};
|
|
4454
4425
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
4455
4426
|
return getStringFromWasm0(arg0, arg1);
|
|
4456
4427
|
};
|
|
4457
4428
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
4458
4429
|
return BigInt.asUintN(64, arg0);
|
|
4459
4430
|
};
|
|
4431
|
+
imports.wbg.__wbindgen_cast_78cac990f1b79fcb = function(arg0, arg1) {
|
|
4432
|
+
return makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he52a6c160ad8bcc6, wasm_bindgen__convert__closures_____invoke__hc9cbe033348e018d);
|
|
4433
|
+
};
|
|
4460
4434
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
4461
4435
|
return arg0;
|
|
4462
4436
|
};
|
|
4463
|
-
imports.wbg.__wbindgen_cast_9f23747c70687cbf = function(arg0, arg1) {
|
|
4464
|
-
return makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he52a6c160ad8bcc6, wasm_bindgen__convert__closures_____invoke__hc9cbe033348e018d);
|
|
4465
|
-
};
|
|
4466
4437
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
4467
4438
|
return getArrayU8FromWasm0(arg0, arg1);
|
|
4468
4439
|
};
|
|
4469
4440
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
4470
4441
|
return arg0;
|
|
4471
4442
|
};
|
|
4472
|
-
imports.wbg.__wbindgen_cast_f90322b7fdde61bb = function(arg0, arg1) {
|
|
4473
|
-
return makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h74bdb7d22b702b82, wasm_bindgen__convert__closures_____invoke__ha7a2b373f2a9ce09);
|
|
4474
|
-
};
|
|
4475
4443
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
4476
4444
|
const table = wasm.__wbindgen_externrefs;
|
|
4477
4445
|
const offset = table.grow(4);
|
|
Binary file
|
package/package.json
CHANGED