@korajs/cli 1.0.0-beta.0 → 1.0.0-beta.2
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/bin.cjs +474 -253
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +15 -5
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-EOWLAAIV.js → chunk-4IKCHRJ6.js} +273 -57
- package/dist/chunk-4IKCHRJ6.js.map +1 -0
- package/dist/{chunk-B5YS4STN.js → chunk-G2PBYMMA.js} +2 -2
- package/dist/{chunk-B5YS4STN.js.map → chunk-G2PBYMMA.js.map} +1 -1
- package/dist/{chunk-BWTKRKNJ.js → chunk-ZTVVAYHJ.js} +2 -2
- package/dist/create.cjs +1 -1
- package/dist/create.cjs.map +1 -1
- package/dist/create.js +2 -2
- package/dist/index.cjs +389 -166
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +58 -1
- package/dist/index.d.ts +58 -1
- package/dist/index.js +12 -2
- package/package.json +9 -8
- package/dist/chunk-EOWLAAIV.js.map +0 -1
- /package/dist/{chunk-BWTKRKNJ.js.map → chunk-ZTVVAYHJ.js.map} +0 -0
package/dist/bin.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZTVVAYHJ.js";
|
|
5
5
|
import {
|
|
6
|
+
agentsCommand,
|
|
6
7
|
deployCommand,
|
|
7
8
|
generateTypes
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4IKCHRJ6.js";
|
|
9
10
|
import {
|
|
10
11
|
DevServerError,
|
|
11
12
|
InvalidProjectError,
|
|
12
13
|
SchemaNotFoundError,
|
|
13
14
|
createLogger,
|
|
14
15
|
promptConfirm
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-G2PBYMMA.js";
|
|
16
17
|
import {
|
|
17
18
|
loadSchemaDefinition
|
|
18
19
|
} from "./chunk-6C4BHSRA.js";
|
|
@@ -1793,6 +1794,14 @@ function mapFieldType(descriptor) {
|
|
|
1793
1794
|
return "INTEGER";
|
|
1794
1795
|
case "array":
|
|
1795
1796
|
return "TEXT";
|
|
1797
|
+
case "object":
|
|
1798
|
+
return "TEXT";
|
|
1799
|
+
case "json":
|
|
1800
|
+
return "TEXT";
|
|
1801
|
+
case "blob":
|
|
1802
|
+
return "TEXT";
|
|
1803
|
+
case "secret":
|
|
1804
|
+
return "TEXT";
|
|
1796
1805
|
case "richtext":
|
|
1797
1806
|
return "BLOB";
|
|
1798
1807
|
}
|
|
@@ -1808,7 +1817,7 @@ function quoteIdentifier(identifier) {
|
|
|
1808
1817
|
if (!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(identifier)) {
|
|
1809
1818
|
throw new Error(`Invalid SQL identifier: ${identifier}`);
|
|
1810
1819
|
}
|
|
1811
|
-
return identifier
|
|
1820
|
+
return `"${identifier}"`;
|
|
1812
1821
|
}
|
|
1813
1822
|
function formatChange(change) {
|
|
1814
1823
|
switch (change.type) {
|
|
@@ -2629,9 +2638,10 @@ var studioCommand = defineCommand9({
|
|
|
2629
2638
|
var main = defineCommand10({
|
|
2630
2639
|
meta: {
|
|
2631
2640
|
name: "kora",
|
|
2632
|
-
description: "Kora.js
|
|
2641
|
+
description: "Kora.js, the offline-first application framework"
|
|
2633
2642
|
},
|
|
2634
2643
|
subCommands: {
|
|
2644
|
+
"agents-md": agentsCommand,
|
|
2635
2645
|
backup: backupCommand,
|
|
2636
2646
|
compact: compactCommand,
|
|
2637
2647
|
create: createCommand,
|