@lmctl-ai/lmctl 0.2.35 → 0.2.37
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/data/price-data.json +1 -1
- package/dist/cli/index.js +399 -399
- package/dist/cli/script.js +182 -182
- package/dist/db/sqlite.d.ts +9 -3
- package/package.json +1 -1
package/dist/db/sqlite.d.ts
CHANGED
|
@@ -10,15 +10,21 @@ interface StatementSyncHandle {
|
|
|
10
10
|
export interface DatabaseOptions {
|
|
11
11
|
readonly?: boolean;
|
|
12
12
|
fileMustExist?: boolean;
|
|
13
|
+
/** Defaults to OFF. Pass true to enable foreign-key enforcement. */
|
|
14
|
+
foreignKeys?: boolean;
|
|
13
15
|
}
|
|
14
16
|
export interface RunResult {
|
|
15
17
|
changes: number;
|
|
16
18
|
lastInsertRowid: number;
|
|
17
19
|
}
|
|
20
|
+
/** A transaction function returned by `Database.transaction()`. Call it directly for
|
|
21
|
+
* `BEGIN DEFERRED`, or call `.immediate()` for `BEGIN IMMEDIATE`. */
|
|
22
|
+
type TransactionFunction<Args extends unknown[], Return> = ((...args: Args) => Return) & {
|
|
23
|
+
immediate: (...args: Args) => Return;
|
|
24
|
+
};
|
|
18
25
|
declare class Database {
|
|
19
26
|
readonly name: string;
|
|
20
27
|
private readonly handle;
|
|
21
|
-
private transactionDepth;
|
|
22
28
|
private savepointId;
|
|
23
29
|
constructor(path: string, opts?: DatabaseOptions);
|
|
24
30
|
prepare(sql: string): Statement;
|
|
@@ -26,10 +32,10 @@ declare class Database {
|
|
|
26
32
|
pragma(str: string, opts?: {
|
|
27
33
|
simple?: boolean;
|
|
28
34
|
}): unknown;
|
|
29
|
-
transaction<Args extends unknown[], Return>(fn: (...args: Args) => Return):
|
|
35
|
+
transaction<Args extends unknown[], Return>(fn: (...args: Args) => Return): TransactionFunction<Args, Return>;
|
|
30
36
|
get inTransaction(): boolean;
|
|
31
37
|
close(): void;
|
|
32
|
-
private
|
|
38
|
+
private runTransaction;
|
|
33
39
|
}
|
|
34
40
|
export declare namespace Database {
|
|
35
41
|
type Database = InstanceType<typeof Database>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmctl-ai/lmctl",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.37",
|
|
4
4
|
"description": "A provider-agnostic control plane for teams of AI coding agents — across providers, with independent review and durable memory.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://lmctl.com",
|