clivly 0.1.0 → 0.2.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/README.md +63 -3
- package/adapter-nLfZpgIG.d.cts +40 -0
- package/adapter-xs04z0KX.d.mts +40 -0
- package/auth-adapter-CBOKDhlc.cjs +11 -0
- package/auth-adapter-FEOR1nx-.d.mts +30 -0
- package/auth-adapter-wqnnEjo3.mjs +6 -0
- package/auth-adapter-wvfGKsOJ.d.cts +30 -0
- package/auth-better-auth.cjs +28 -0
- package/auth-better-auth.d.cts +33 -0
- package/auth-better-auth.d.mts +33 -0
- package/auth-better-auth.mjs +26 -0
- package/auth-clerk.cjs +34 -0
- package/auth-clerk.d.cts +32 -0
- package/auth-clerk.d.mts +32 -0
- package/auth-clerk.mjs +32 -0
- package/auth-workos.cjs +47 -0
- package/auth-workos.d.cts +30 -0
- package/auth-workos.d.mts +30 -0
- package/auth-workos.mjs +45 -0
- package/core-adapter.cjs +0 -0
- package/core-adapter.d.cts +2 -0
- package/core-adapter.d.mts +2 -0
- package/core-adapter.mjs +1 -0
- package/core-auth-adapter.cjs +3 -0
- package/core-auth-adapter.d.cts +2 -0
- package/core-auth-adapter.d.mts +2 -0
- package/core-auth-adapter.mjs +2 -0
- package/core-drizzle.cjs +32 -0
- package/core-drizzle.d.cts +21 -0
- package/core-drizzle.d.mts +21 -0
- package/core-drizzle.mjs +31 -0
- package/core-entity-config.cjs +13 -0
- package/core-entity-config.d.cts +2 -0
- package/core-entity-config.d.mts +2 -0
- package/core-entity-config.mjs +2 -0
- package/core-entity-heuristics.cjs +442 -0
- package/core-entity-heuristics.d.cts +68 -0
- package/core-entity-heuristics.d.mts +68 -0
- package/core-entity-heuristics.mjs +431 -0
- package/core-mapping-form.cjs +5 -0
- package/core-mapping-form.d.cts +2 -0
- package/core-mapping-form.d.mts +2 -0
- package/core-mapping-form.mjs +2 -0
- package/core-mapping-score.cjs +12 -0
- package/core-mapping-score.d.cts +2 -0
- package/core-mapping-score.d.mts +2 -0
- package/core-mapping-score.mjs +2 -0
- package/core-mappings-config.cjs +3 -0
- package/core-mappings-config.d.cts +2 -0
- package/core-mappings-config.d.mts +2 -0
- package/core-mappings-config.mjs +2 -0
- package/core-sync-engine.cjs +6 -0
- package/core-sync-engine.d.cts +2 -0
- package/core-sync-engine.d.mts +2 -0
- package/core-sync-engine.mjs +2 -0
- package/core-types.cjs +0 -0
- package/core-types.d.cts +2 -0
- package/core-types.d.mts +2 -0
- package/core-types.mjs +1 -0
- package/core-view-compiler.cjs +5 -0
- package/core-view-compiler.d.cts +2 -0
- package/core-view-compiler.d.mts +2 -0
- package/core-view-compiler.mjs +2 -0
- package/core.cjs +27 -0
- package/core.d.cts +9 -0
- package/core.d.mts +9 -0
- package/core.mjs +7 -0
- package/drizzle-meta-BGn0BqGb.cjs +9 -0
- package/drizzle-meta-CnC336L-.mjs +4 -0
- package/drizzle.cjs +107 -0
- package/drizzle.d.cts +28 -0
- package/drizzle.d.mts +28 -0
- package/drizzle.mjs +105 -0
- package/entity-config-Cvjo1cpv.cjs +4598 -0
- package/entity-config-D1DFyeUp.d.mts +2403 -0
- package/entity-config-DoR0khce.mjs +4533 -0
- package/entity-config-GczjD3y8.d.cts +2403 -0
- package/index.cjs +926 -0
- package/index.d.cts +56 -0
- package/index.d.mts +56 -0
- package/index.mjs +925 -0
- package/mapping-form-BHtPexzI.mjs +47 -0
- package/mapping-form-CUlFVfG8.d.cts +35 -0
- package/mapping-form-DdmDebC3.cjs +64 -0
- package/mapping-form-kjSiJaCX.d.mts +35 -0
- package/mapping-score-A2lRnlpk.d.mts +49 -0
- package/mapping-score-BJNe0lFn.mjs +87 -0
- package/mapping-score-BcjC0ZQs.d.cts +49 -0
- package/mapping-score-D9gfhtRu.cjs +146 -0
- package/mappings-config-CYPrzB3K.mjs +99 -0
- package/mappings-config-DTu_2cyx.cjs +104 -0
- package/mappings-config-DjRLCb2Q.d.cts +42 -0
- package/mappings-config-GxiYsSBQ.d.mts +42 -0
- package/namespace-probe-BtS0nXcr.d.cts +299 -0
- package/namespace-probe-CYMie-BI.d.mts +299 -0
- package/package.json +224 -21
- package/sdk-BZUn6wzs.mjs +764 -0
- package/sdk-CP_mYZa5.cjs +793 -0
- package/sdk.cjs +7 -0
- package/sdk.d.cts +33 -0
- package/sdk.d.mts +33 -0
- package/sdk.mjs +2 -0
- package/sync-engine-DUc0qWgo.cjs +230 -0
- package/sync-engine-DWnQPjV3.d.mts +183 -0
- package/sync-engine-DedXngop.mjs +207 -0
- package/sync-engine-uhfzKM-e.d.cts +183 -0
- package/types-C4POUcvk.d.mts +158 -0
- package/types-LJTBhkcN.d.cts +158 -0
- package/view-compiler-B4UYTvRM.d.cts +71 -0
- package/view-compiler-BHzbI9b7.cjs +202 -0
- package/view-compiler-CosFGar8.mjs +185 -0
- package/view-compiler-i_xFf-L0.d.mts +71 -0
- package/vite.cjs +38 -0
- package/vite.d.cts +23 -0
- package/vite.d.mts +23 -0
- package/vite.mjs +37 -0
- package/dist/index.mjs +0 -193
package/index.d.cts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/detect.d.ts
|
|
2
|
+
type PackageManager = "npm" | "pnpm" | "yarn" | "bun";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/discover-schema.d.ts
|
|
5
|
+
interface DiscoveredColumn {
|
|
6
|
+
dbName: string;
|
|
7
|
+
isPrimary: boolean;
|
|
8
|
+
key: string;
|
|
9
|
+
nullable?: boolean;
|
|
10
|
+
references?: {
|
|
11
|
+
table: string;
|
|
12
|
+
column: string;
|
|
13
|
+
};
|
|
14
|
+
type?: string;
|
|
15
|
+
}
|
|
16
|
+
interface DiscoveredTable {
|
|
17
|
+
columns: DiscoveredColumn[];
|
|
18
|
+
moduleKey: string;
|
|
19
|
+
tableName: string;
|
|
20
|
+
}
|
|
21
|
+
interface DiscoveredSchema {
|
|
22
|
+
db: {
|
|
23
|
+
moduleKey: string;
|
|
24
|
+
importPath: string;
|
|
25
|
+
} | null;
|
|
26
|
+
importPath: string;
|
|
27
|
+
tables: DiscoveredTable[];
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/index.d.ts
|
|
31
|
+
interface InstallResult {
|
|
32
|
+
command: string;
|
|
33
|
+
ok: boolean;
|
|
34
|
+
}
|
|
35
|
+
interface RunInitOptions {
|
|
36
|
+
configExists?: (path: string) => boolean;
|
|
37
|
+
cwd: string;
|
|
38
|
+
detectPackageManager?: (cwd: string) => PackageManager;
|
|
39
|
+
discoverSchema?: (schemaPath: string, cwd: string) => Promise<DiscoveredSchema>;
|
|
40
|
+
force: boolean;
|
|
41
|
+
installPackages?: (options: {
|
|
42
|
+
cwd: string;
|
|
43
|
+
packages: string[];
|
|
44
|
+
pm: PackageManager;
|
|
45
|
+
}) => Promise<InstallResult>;
|
|
46
|
+
out?: (line: string) => void;
|
|
47
|
+
readDeps?: (cwd: string) => Record<string, string>;
|
|
48
|
+
readEnv?: (cwd: string) => string;
|
|
49
|
+
resolveSchemaPath?: (cwd: string) => string | null;
|
|
50
|
+
schemaFlag?: string;
|
|
51
|
+
writeConfig?: (path: string, contents: string) => void;
|
|
52
|
+
writeEnv?: (cwd: string, contents: string) => void;
|
|
53
|
+
}
|
|
54
|
+
declare function runInit(options: RunInitOptions): Promise<number>;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { RunInitOptions, runInit };
|
package/index.d.mts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/detect.d.ts
|
|
2
|
+
type PackageManager = "npm" | "pnpm" | "yarn" | "bun";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/discover-schema.d.ts
|
|
5
|
+
interface DiscoveredColumn {
|
|
6
|
+
dbName: string;
|
|
7
|
+
isPrimary: boolean;
|
|
8
|
+
key: string;
|
|
9
|
+
nullable?: boolean;
|
|
10
|
+
references?: {
|
|
11
|
+
table: string;
|
|
12
|
+
column: string;
|
|
13
|
+
};
|
|
14
|
+
type?: string;
|
|
15
|
+
}
|
|
16
|
+
interface DiscoveredTable {
|
|
17
|
+
columns: DiscoveredColumn[];
|
|
18
|
+
moduleKey: string;
|
|
19
|
+
tableName: string;
|
|
20
|
+
}
|
|
21
|
+
interface DiscoveredSchema {
|
|
22
|
+
db: {
|
|
23
|
+
moduleKey: string;
|
|
24
|
+
importPath: string;
|
|
25
|
+
} | null;
|
|
26
|
+
importPath: string;
|
|
27
|
+
tables: DiscoveredTable[];
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/index.d.ts
|
|
31
|
+
interface InstallResult {
|
|
32
|
+
command: string;
|
|
33
|
+
ok: boolean;
|
|
34
|
+
}
|
|
35
|
+
interface RunInitOptions {
|
|
36
|
+
configExists?: (path: string) => boolean;
|
|
37
|
+
cwd: string;
|
|
38
|
+
detectPackageManager?: (cwd: string) => PackageManager;
|
|
39
|
+
discoverSchema?: (schemaPath: string, cwd: string) => Promise<DiscoveredSchema>;
|
|
40
|
+
force: boolean;
|
|
41
|
+
installPackages?: (options: {
|
|
42
|
+
cwd: string;
|
|
43
|
+
packages: string[];
|
|
44
|
+
pm: PackageManager;
|
|
45
|
+
}) => Promise<InstallResult>;
|
|
46
|
+
out?: (line: string) => void;
|
|
47
|
+
readDeps?: (cwd: string) => Record<string, string>;
|
|
48
|
+
readEnv?: (cwd: string) => string;
|
|
49
|
+
resolveSchemaPath?: (cwd: string) => string | null;
|
|
50
|
+
schemaFlag?: string;
|
|
51
|
+
writeConfig?: (path: string, contents: string) => void;
|
|
52
|
+
writeEnv?: (cwd: string, contents: string) => void;
|
|
53
|
+
}
|
|
54
|
+
declare function runInit(options: RunInitOptions): Promise<number>;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { RunInitOptions, runInit };
|