@noormdev/sdk 1.4.2 → 1.5.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.
- package/dist/{chunk-OMY6CKR4.js → chunk-24L5UNQR.js} +3 -3
- package/dist/{chunk-A2OYZAVT.js → chunk-6LG4ENOJ.js} +2 -2
- package/dist/{chunk-CDTFXLXU.js → chunk-M7Q44VFJ.js} +4 -4
- package/dist/{engine-6ALQ5YTN.js → engine-P74UTJQO.js} +4 -4
- package/dist/index.d.ts +48 -1
- package/dist/index.js +675 -484
- package/dist/{storage-V6BHWNS3.js → storage-NQA4H7PK.js} +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
-
import { observer, shouldSkipConfirmations } from './chunk-
|
|
2
|
+
import { observer, shouldSkipConfirmations } from './chunk-6LG4ENOJ.js';
|
|
3
3
|
import { attempt, attemptSync } from './chunk-TXDGFA44.js';
|
|
4
4
|
import { __commonJS, __toESM } from './chunk-D2XW2UOP.js';
|
|
5
5
|
import { generateKeyPairSync, randomBytes, createCipheriv, createPrivateKey, createPublicKey, diffieHellman, hkdfSync, createDecipheriv } from 'crypto';
|
|
@@ -97661,5 +97661,5 @@ async function listVaultSecretKeysChecked(gate, db, dialect) {
|
|
|
97661
97661
|
}
|
|
97662
97662
|
|
|
97663
97663
|
export { assertPolicy, assertVaultPolicy, checkConfigPolicy, deleteVaultSecret, deleteVaultSecretChecked, detectAgentHarness, encryptVaultKey, getAllVaultSecrets, getNoormTables, getVaultKey, getVaultKeyChecked, getVaultSecret, getVaultStatus, guarded, initializeVault, initializeVaultChecked, listVaultSecretKeys, listVaultSecretKeysChecked, noormDb, resolveLegacyAccess, setVaultSecret, setVaultSecretChecked, vaultSecretExists };
|
|
97664
|
-
//# sourceMappingURL=chunk-
|
|
97665
|
-
//# sourceMappingURL=chunk-
|
|
97664
|
+
//# sourceMappingURL=chunk-24L5UNQR.js.map
|
|
97665
|
+
//# sourceMappingURL=chunk-24L5UNQR.js.map
|
|
@@ -1519,5 +1519,5 @@ var observer = new ObserverEngine({
|
|
|
1519
1519
|
});
|
|
1520
1520
|
|
|
1521
1521
|
export { ObserverRelay, getEnvConfigName, isDebug, observer, shouldSkipConfirmations };
|
|
1522
|
-
//# sourceMappingURL=chunk-
|
|
1523
|
-
//# sourceMappingURL=chunk-
|
|
1522
|
+
//# sourceMappingURL=chunk-6LG4ENOJ.js.map
|
|
1523
|
+
//# sourceMappingURL=chunk-6LG4ENOJ.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
-
import { observer } from './chunk-
|
|
2
|
+
import { observer } from './chunk-6LG4ENOJ.js';
|
|
3
3
|
import { attemptSync, attempt } from './chunk-TXDGFA44.js';
|
|
4
4
|
import { dist_default } from './chunk-TBRUDUBQ.js';
|
|
5
5
|
import { readFile as readFile$1, readdir, stat } from 'fs/promises';
|
|
@@ -2506,7 +2506,7 @@ function createIncludeHelper(templateDir, projectRoot, options) {
|
|
|
2506
2506
|
throw new Error(`Include path escapes project root: ${includePath}`);
|
|
2507
2507
|
}
|
|
2508
2508
|
if (resolved.endsWith(".tmpl")) {
|
|
2509
|
-
const { processFile: processFile2 } = await import('./engine-
|
|
2509
|
+
const { processFile: processFile2 } = await import('./engine-P74UTJQO.js');
|
|
2510
2510
|
const result = await processFile2(resolved, options);
|
|
2511
2511
|
return result.sql;
|
|
2512
2512
|
}
|
|
@@ -2588,5 +2588,5 @@ voca/es/index.js:
|
|
|
2588
2588
|
*/
|
|
2589
2589
|
|
|
2590
2590
|
export { DT_EXTENSIONS, DtReader, ENCODED_TYPES, FORMAT_VERSION, encryptWithPassphrase, es_default, eta, isTemplate, processFile, processFiles, renderTemplate };
|
|
2591
|
-
//# sourceMappingURL=chunk-
|
|
2592
|
-
//# sourceMappingURL=chunk-
|
|
2591
|
+
//# sourceMappingURL=chunk-M7Q44VFJ.js.map
|
|
2592
|
+
//# sourceMappingURL=chunk-M7Q44VFJ.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
-
export { eta, isTemplate, processFile, processFiles, renderTemplate } from './chunk-
|
|
2
|
+
export { eta, isTemplate, processFile, processFiles, renderTemplate } from './chunk-M7Q44VFJ.js';
|
|
3
3
|
import './chunk-UOFJT5PY.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-6LG4ENOJ.js';
|
|
5
5
|
import './chunk-TXDGFA44.js';
|
|
6
6
|
import './chunk-TBRUDUBQ.js';
|
|
7
7
|
import './chunk-YJBKNUTP.js';
|
|
8
8
|
import './chunk-D2XW2UOP.js';
|
|
9
9
|
|
|
10
10
|
createRequire(import.meta.url);
|
|
11
|
-
//# sourceMappingURL=engine-
|
|
12
|
-
//# sourceMappingURL=engine-
|
|
11
|
+
//# sourceMappingURL=engine-P74UTJQO.js.map
|
|
12
|
+
//# sourceMappingURL=engine-P74UTJQO.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1274,7 +1274,7 @@ export interface NoormExecutionsTable {
|
|
|
1274
1274
|
status: ExecutionStatus;
|
|
1275
1275
|
/** Error details (empty = no error) */
|
|
1276
1276
|
error_message: Generated<string>;
|
|
1277
|
-
/** '
|
|
1277
|
+
/** Why a failure left this file unreached, e.g. 'change failed'; older rows may hold 'unchanged' or 'already applied' */
|
|
1278
1278
|
skip_reason: Generated<string>;
|
|
1279
1279
|
/** Execution time (0 = never ran) */
|
|
1280
1280
|
duration_ms: Generated<number>;
|
|
@@ -2541,6 +2541,42 @@ export declare class ChangesNamespace {
|
|
|
2541
2541
|
*/
|
|
2542
2542
|
getFileHistory(operationId: number): Promise<FileHistoryRecord[]>;
|
|
2543
2543
|
}
|
|
2544
|
+
/**
|
|
2545
|
+
* A session holding a lock the watched statement is waiting on.
|
|
2546
|
+
*/
|
|
2547
|
+
export interface BlockingSession {
|
|
2548
|
+
pid: number;
|
|
2549
|
+
/** Start of the blocker's statement text, or its command/status when no text is visible. */
|
|
2550
|
+
query: string | null;
|
|
2551
|
+
/** How long the blocker has been in its current transaction or request. */
|
|
2552
|
+
ageMs: number | null;
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* Progress an operation reports about itself, from the dialect's progress views.
|
|
2556
|
+
*/
|
|
2557
|
+
export interface OperationProgress {
|
|
2558
|
+
/** What is running, e.g. `CREATE INDEX`, `VACUUM`, `COPY FROM`. */
|
|
2559
|
+
operation: string;
|
|
2560
|
+
/** Phase within the operation, e.g. `building index: loading tuples`. */
|
|
2561
|
+
phase: string | null;
|
|
2562
|
+
relation: string | null;
|
|
2563
|
+
done: number | null;
|
|
2564
|
+
total: number | null;
|
|
2565
|
+
/** 0-100, when the dialect reports enough to compute it. */
|
|
2566
|
+
percent: number | null;
|
|
2567
|
+
}
|
|
2568
|
+
/**
|
|
2569
|
+
* What the server says about a running statement at one point in time.
|
|
2570
|
+
*/
|
|
2571
|
+
export interface StatementStatus {
|
|
2572
|
+
/** Session state, e.g. `active`, `suspended`, a mysql thread state. */
|
|
2573
|
+
state: string | null;
|
|
2574
|
+
/** What the session is waiting on, e.g. `Lock: transactionid`. Null when it is working. */
|
|
2575
|
+
waitEvent: string | null;
|
|
2576
|
+
blockedBy: BlockingSession[];
|
|
2577
|
+
workers: number;
|
|
2578
|
+
progress: OperationProgress | null;
|
|
2579
|
+
}
|
|
2544
2580
|
export declare class RunNamespace {
|
|
2545
2581
|
#private;
|
|
2546
2582
|
constructor(state: ContextState);
|
|
@@ -4484,6 +4520,17 @@ export interface NoormEvents extends SettingsEvents, UpdateEvents, VaultEvents,
|
|
|
4484
4520
|
filepath: string;
|
|
4485
4521
|
reason: "unchanged" | "already-run";
|
|
4486
4522
|
};
|
|
4523
|
+
/**
|
|
4524
|
+
* A file has run past the watch delay. Repeats every watch interval until
|
|
4525
|
+
* it finishes. `status` is null when the dialect has no probe (sqlite) or
|
|
4526
|
+
* the server could not be asked.
|
|
4527
|
+
*/
|
|
4528
|
+
"file:progress": {
|
|
4529
|
+
filepath: string;
|
|
4530
|
+
elapsedMs: number;
|
|
4531
|
+
sessionId: number | null;
|
|
4532
|
+
status: StatementStatus | null;
|
|
4533
|
+
};
|
|
4487
4534
|
"file:dry-run": {
|
|
4488
4535
|
filepath: string;
|
|
4489
4536
|
status: "success" | "failed";
|