@liquidmetal-ai/raindrop 0.13.0 → 0.15.0
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 +327 -89
- package/bundle/build-CBEGQPJT.js +62 -0
- package/bundle/{chunk-IEF2XC25.js → chunk-2PH3PHH3.js} +5 -3
- package/bundle/{chunk-4HZ22KOV.js → chunk-3CMR7ES5.js} +4 -4
- package/bundle/{chunk-JSBM2JYW.js → chunk-3EYKCHIK.js} +1 -1
- package/bundle/chunk-5XHDP4VK.js +1697 -0
- package/bundle/{chunk-TSQK4HH6.js → chunk-674GMSXY.js} +1 -1
- package/bundle/{chunk-PS3WZBDF.js → chunk-6L4V66WZ.js} +1105 -2728
- package/bundle/{chunk-5245CEUM.js → chunk-AGG7JZVH.js} +2 -2
- package/bundle/{chunk-3GFKUF5D.js → chunk-B3IY2XS6.js} +4 -2
- package/bundle/{chunk-WIDI65NO.js → chunk-CBAXTRCS.js} +1 -1
- package/bundle/{chunk-JLVDTXO2.js → chunk-DPV5HIG7.js} +4 -4
- package/bundle/{chunk-36GNZK4A.js → chunk-EVXLXWP7.js} +1 -1
- package/bundle/{chunk-4YVU5KEQ.js → chunk-HN3AAKRY.js} +4 -2
- package/bundle/{chunk-NVNEQXHN.js → chunk-IGLE4Y3B.js} +7 -5
- package/bundle/{chunk-FGSYWVBA.js → chunk-IQ6HFRA6.js} +1 -1
- package/bundle/{chunk-O3QZDJ75.js → chunk-JQONDSHY.js} +2 -2
- package/bundle/{chunk-W4IPOFZC.js → chunk-KADMFJLN.js} +8 -6
- package/bundle/chunk-KG5BLUGU.js +246 -0
- package/bundle/{chunk-V5LHJTYS.js → chunk-KLOYSTZY.js} +13 -2
- package/bundle/{chunk-ETC5VU7H.js → chunk-KXHVSLAI.js} +1 -1
- package/bundle/{chunk-Y4WFGNPM.js → chunk-L6FRQULN.js} +1 -1
- package/bundle/{chunk-3QCVYSRU.js → chunk-LT3BFQ4O.js} +1 -1
- package/bundle/{chunk-KQZJHBNG.js → chunk-MBLKVNI5.js} +1 -1
- package/bundle/{chunk-6AIUQUUM.js → chunk-MFMVJZW6.js} +71 -15
- package/bundle/{chunk-25T7MEKO.js → chunk-MJBLNWG3.js} +1 -1
- package/bundle/{chunk-MSJ33O5Y.js → chunk-NRCQIE3Z.js} +95 -115
- package/bundle/{chunk-XKKPPSPC.js → chunk-OCYTN4IH.js} +2 -2
- package/bundle/{chunk-2GAMWFJE.js → chunk-QEF5D4VE.js} +1 -1
- package/bundle/{chunk-4B3QYXBA.js → chunk-T7MQCLXF.js} +5 -3
- package/bundle/{chunk-LDFYPOXJ.js → chunk-TFQY5TSY.js} +1 -1
- package/bundle/{chunk-BWK4MC7Y.js → chunk-USZXZZAR.js} +8 -6
- package/bundle/{chunk-ER2RCPCY.js → chunk-V54KHS5B.js} +2 -2
- package/bundle/{chunk-YSKASURB.js → chunk-V6J23FL2.js} +1 -1
- package/bundle/{chunk-UHSTDJ7X.js → chunk-VN2QYX4C.js} +1 -1
- package/bundle/{chunk-Z4OWKG7J.js → chunk-VOT5MMEY.js} +1 -1
- package/bundle/{chunk-W6GU26WO.js → chunk-WG6BDFPZ.js} +1 -1
- package/bundle/{chunk-AK77X5GL.js → chunk-XX74I5RK.js} +4 -2
- package/bundle/{chunk-6BT265R3.js → chunk-YQCRWPNI.js} +1 -1
- package/bundle/commands/annotation/get.js +3 -3
- package/bundle/commands/annotation/list.js +3 -3
- package/bundle/commands/annotation/put.js +3 -3
- package/bundle/commands/auth/apikey.js +2 -2
- package/bundle/commands/auth/list.js +2 -2
- package/bundle/commands/auth/login.js +2 -2
- package/bundle/commands/auth/logout.js +2 -2
- package/bundle/commands/auth/select.js +3 -3
- package/bundle/commands/bucket/create-credential.js +2 -2
- package/bundle/commands/bucket/delete-credential.js +2 -2
- package/bundle/commands/bucket/get-credential.js +2 -2
- package/bundle/commands/bucket/list-credentials.js +2 -2
- package/bundle/commands/build/actor/setup.js +124 -0
- package/bundle/commands/build/branch.js +10 -10
- package/bundle/commands/build/bucket-events/setup.js +146 -0
- package/bundle/commands/build/checkout.js +8 -8
- package/bundle/commands/build/clone.js +6 -6
- package/bundle/commands/build/delete.js +8 -8
- package/bundle/commands/build/deploy.js +10 -10
- package/bundle/commands/build/env/get.js +3 -3
- package/bundle/commands/build/env/list.js +2 -2
- package/bundle/commands/build/env/set.js +3 -3
- package/bundle/commands/build/env.js +2 -2
- package/bundle/commands/build/features.js +192 -0
- package/bundle/commands/build/find.js +4 -4
- package/bundle/commands/build/generate.js +52 -3
- package/bundle/commands/build/init-workspace.js +3 -3
- package/bundle/commands/build/init.js +15 -3
- package/bundle/commands/build/list.js +5 -5
- package/bundle/commands/build/queue/setup.js +133 -0
- package/bundle/commands/build/sandbox.js +6 -6
- package/bundle/commands/build/smartbucket/setup.js +165 -0
- package/bundle/commands/build/smartmemory/setup.js +171 -0
- package/bundle/commands/build/smartsql/setup.js +167 -0
- package/bundle/commands/build/start.js +2 -2
- package/bundle/commands/build/status.js +5 -5
- package/bundle/commands/build/stop.js +2 -2
- package/bundle/commands/build/stripe/dashboard.js +3 -3
- package/bundle/commands/build/stripe/onboard.js +3 -3
- package/bundle/commands/build/stripe/setup.js +3 -3
- package/bundle/commands/build/stripe/start.js +14 -14
- package/bundle/commands/build/stripe/status.js +3 -3
- package/bundle/commands/build/stripe/subscription/create.js +4 -4
- package/bundle/commands/build/stripe/subscription/get.js +4 -4
- package/bundle/commands/build/stripe/subscription/update.js +4 -4
- package/bundle/commands/build/tools/check.js +2 -2
- package/bundle/commands/build/tools/fmt.js +2 -2
- package/bundle/commands/build/unsandbox.js +6 -6
- package/bundle/commands/build/upload.js +5 -5
- package/bundle/commands/build/validate.js +85 -14
- package/bundle/commands/build/workos/delete.js +6 -6
- package/bundle/commands/build/workos/env/attach.js +3 -3
- package/bundle/commands/build/workos/env/attached.js +3 -3
- package/bundle/commands/build/workos/env/create.js +3 -3
- package/bundle/commands/build/workos/env/delete.js +3 -3
- package/bundle/commands/build/workos/env/detach.js +3 -3
- package/bundle/commands/build/workos/env/dev-login.js +3 -3
- package/bundle/commands/build/workos/env/get.js +3 -3
- package/bundle/commands/build/workos/env/list.js +3 -3
- package/bundle/commands/build/workos/env/set.js +3 -3
- package/bundle/commands/build/workos/invite.js +3 -3
- package/bundle/commands/build/workos/jwt.js +172 -0
- package/bundle/commands/build/workos/setup.js +3 -3
- package/bundle/commands/build/workos/status.js +3 -3
- package/bundle/commands/dns/create.js +2 -2
- package/bundle/commands/dns/delete.js +6 -6
- package/bundle/commands/dns/get.js +6 -6
- package/bundle/commands/dns/list.js +3 -3
- package/bundle/commands/dns/records/create.js +2 -2
- package/bundle/commands/dns/records/delete.js +3 -3
- package/bundle/commands/dns/records/get.js +2 -2
- package/bundle/commands/dns/records/list.js +2 -2
- package/bundle/commands/dns/records/update.js +2 -2
- package/bundle/commands/doctor.js +309 -0
- package/bundle/commands/logs/query.js +3 -3
- package/bundle/commands/logs/tail.js +3 -3
- package/bundle/commands/mcp/install-claude.js +2 -2
- package/bundle/commands/mcp/install-gemini.js +2 -2
- package/bundle/commands/mcp/install-goose.js +2 -2
- package/bundle/commands/mcp/status.js +2 -2
- package/bundle/commands/object/delete.js +5 -37
- package/bundle/commands/object/get.js +5 -37
- package/bundle/commands/object/list.js +7 -39
- package/bundle/commands/object/put.js +5 -37
- package/bundle/commands/query/chunk-search.js +14 -46
- package/bundle/commands/query/document.js +17 -55
- package/bundle/commands/query/events.js +2 -2
- package/bundle/commands/query/reindex.js +2 -2
- package/bundle/commands/query/search.js +14 -46
- package/bundle/commands/tail.js +2 -2
- package/bundle/index.js +1 -1
- package/dist/commands/build/actor/setup.d.ts +22 -0
- package/dist/commands/build/actor/setup.d.ts.map +1 -0
- package/dist/commands/build/actor/setup.js +116 -0
- package/dist/commands/build/bucket-events/setup.d.ts +22 -0
- package/dist/commands/build/bucket-events/setup.d.ts.map +1 -0
- package/dist/commands/build/bucket-events/setup.js +134 -0
- package/dist/commands/build/features.d.ts +19 -0
- package/dist/commands/build/features.d.ts.map +1 -0
- package/dist/commands/build/features.js +97 -0
- package/dist/commands/build/generate.d.ts +2 -0
- package/dist/commands/build/generate.d.ts.map +1 -1
- package/dist/commands/build/generate.js +52 -0
- package/dist/commands/build/init.d.ts.map +1 -1
- package/dist/commands/build/init.js +10 -0
- package/dist/commands/build/queue/setup.d.ts +21 -0
- package/dist/commands/build/queue/setup.d.ts.map +1 -0
- package/dist/commands/build/queue/setup.js +120 -0
- package/dist/commands/build/smartbucket/setup.d.ts +23 -0
- package/dist/commands/build/smartbucket/setup.d.ts.map +1 -0
- package/dist/commands/build/smartbucket/setup.js +167 -0
- package/dist/commands/build/smartmemory/setup.d.ts +23 -0
- package/dist/commands/build/smartmemory/setup.d.ts.map +1 -0
- package/dist/commands/build/smartmemory/setup.js +172 -0
- package/dist/commands/build/smartsql/setup.d.ts +23 -0
- package/dist/commands/build/smartsql/setup.d.ts.map +1 -0
- package/dist/commands/build/smartsql/setup.js +169 -0
- package/dist/commands/build/validate.d.ts +2 -0
- package/dist/commands/build/validate.d.ts.map +1 -1
- package/dist/commands/build/validate.js +80 -8
- package/dist/commands/build/workos/jwt.d.ts +23 -0
- package/dist/commands/build/workos/jwt.d.ts.map +1 -0
- package/dist/commands/build/workos/jwt.js +172 -0
- package/dist/commands/doctor.d.ts +27 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +328 -0
- package/dist/commands/object/delete.d.ts +0 -2
- package/dist/commands/object/delete.d.ts.map +1 -1
- package/dist/commands/object/delete.js +3 -38
- package/dist/commands/object/get.d.ts +0 -2
- package/dist/commands/object/get.d.ts.map +1 -1
- package/dist/commands/object/get.js +3 -38
- package/dist/commands/object/list.d.ts +0 -2
- package/dist/commands/object/list.d.ts.map +1 -1
- package/dist/commands/object/list.js +5 -40
- package/dist/commands/object/put.d.ts +0 -2
- package/dist/commands/object/put.d.ts.map +1 -1
- package/dist/commands/object/put.js +3 -38
- package/dist/commands/query/chunk-search.d.ts +0 -2
- package/dist/commands/query/chunk-search.d.ts.map +1 -1
- package/dist/commands/query/chunk-search.js +12 -46
- package/dist/commands/query/document.d.ts +1 -3
- package/dist/commands/query/document.d.ts.map +1 -1
- package/dist/commands/query/document.js +16 -60
- package/dist/commands/query/search.d.ts +0 -2
- package/dist/commands/query/search.d.ts.map +1 -1
- package/dist/commands/query/search.js +12 -46
- package/dist/feature-catalog.d.ts +28 -0
- package/dist/feature-catalog.d.ts.map +1 -0
- package/dist/feature-catalog.js +104 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -2
- package/oclif.manifest.json +4811 -3433
- package/package.json +3 -3
- package/templates/examples/smartbucket-minimal.ts.hbs +87 -0
- package/templates/examples/smartmemory-minimal.ts.hbs +82 -0
- package/templates/examples/smartsql-minimal.ts.hbs +69 -0
- package/templates/handlers/actor/index.test.ts.hbs +48 -85
- package/templates/handlers/actor/index.ts.hbs +16 -316
- package/templates/handlers/bucket-event-notification/index.ts.hbs +32 -235
- package/templates/handlers/bucket-event-observer.ts.hbs +79 -0
- package/templates/handlers/http-service/index.test.ts.hbs +3 -0
- package/templates/handlers/http-service/index.ts.hbs +43 -15
- package/templates/handlers/queue-consumer-setup.ts.hbs +45 -0
- package/templates/handlers/task/index.test.ts.hbs +30 -112
- package/templates/handlers/task/index.ts.hbs +19 -58
- package/templates/init/RAINDROP.md.hbs +97 -1
- package/templates/init/eslint.config.js +43 -0
- package/templates/init/package.json.hbs +4 -1
- package/templates/init/tsconfig.json +3 -3
- package/bundle/chunk-23UBI7BN.js +0 -48
- package/bundle/chunk-2QWMBNE3.js +0 -384
- package/bundle/chunk-45IYWQDC.js +0 -384
- package/bundle/chunk-5YUO23QU.js +0 -4585
- package/bundle/chunk-6MIGCNUO.js +0 -75
- package/bundle/chunk-7ZJWA6HP.js +0 -805
- package/bundle/chunk-AIYVX2M7.js +0 -44
- package/bundle/chunk-BB5TNIEM.js +0 -48
- package/bundle/chunk-BUR3HFKH.js +0 -488
- package/bundle/chunk-BYSBS7KT.js +0 -488
- package/bundle/chunk-CX3RWI62.js +0 -28658
- package/bundle/chunk-DLH7MI57.js +0 -305
- package/bundle/chunk-E3WJIYJZ.js +0 -12148
- package/bundle/chunk-EX7NOPRF.js +0 -12148
- package/bundle/chunk-F76JQS2J.js +0 -231
- package/bundle/chunk-FBOXMVKD.js +0 -28679
- package/bundle/chunk-FTPZ6SQW.js +0 -238909
- package/bundle/chunk-H3CFZ7ZH.js +0 -74
- package/bundle/chunk-HXOILVWA.js +0 -384
- package/bundle/chunk-IMP7O5AC.js +0 -22452
- package/bundle/chunk-IPYOAKRE.js +0 -231
- package/bundle/chunk-J7HN6XF2.js +0 -4461
- package/bundle/chunk-JOLOAALA.js +0 -231
- package/bundle/chunk-JZ2G4Q35.js +0 -4585
- package/bundle/chunk-KVAWPWF7.js +0 -231
- package/bundle/chunk-MEUAAIXV.js +0 -28657
- package/bundle/chunk-QBWFE57Z.js +0 -384
- package/bundle/chunk-SP3LOXPC.js +0 -46
- package/bundle/chunk-T7C564PR.js +0 -28678
- package/bundle/chunk-UFH545WJ.js +0 -22452
- package/bundle/chunk-UHVMPWM5.js +0 -315
- package/bundle/chunk-VB7ZTSZV.js +0 -1089
- package/bundle/chunk-VBIJDFMJ.js +0 -384
- package/bundle/chunk-VR7RLTE3.js +0 -231
- package/bundle/chunk-WFZUJLEC.js +0 -231
- package/bundle/chunk-YDGJTLVZ.js +0 -133
- package/bundle/chunk-YPNQ7UFK.js +0 -502
- package/bundle/chunk-YXFDRMSN.js +0 -384
- package/dist/lib/dns-utils.d.ts +0 -7
- package/dist/lib/dns-utils.d.ts.map +0 -1
- package/dist/lib/dns-utils.js +0 -44
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
StripeBusinessType,
|
|
9
9
|
StripeMode,
|
|
10
10
|
__toESM,
|
|
11
11
|
init_cjs_shims,
|
|
12
12
|
require_lib
|
|
13
|
-
} from "../../../chunk-
|
|
13
|
+
} from "../../../chunk-KLOYSTZY.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/build/stripe/status.ts
|
|
16
16
|
init_cjs_shims();
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
formatCentsToDollars,
|
|
4
4
|
parseInterval,
|
|
5
5
|
parsePriceToCents
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-3EYKCHIK.js";
|
|
7
7
|
import {
|
|
8
8
|
source_default
|
|
9
|
-
} from "../../../../chunk-
|
|
9
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
10
10
|
import {
|
|
11
11
|
BaseCommand
|
|
12
|
-
} from "../../../../chunk-
|
|
12
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
13
13
|
import {
|
|
14
14
|
StripeMode,
|
|
15
15
|
__toESM,
|
|
16
16
|
init_cjs_shims,
|
|
17
17
|
require_lib,
|
|
18
18
|
valueOf
|
|
19
|
-
} from "../../../../chunk-
|
|
19
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/build/stripe/subscription/create.ts
|
|
22
22
|
init_cjs_shims();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatBillingPeriod,
|
|
3
3
|
formatCentsToDollars
|
|
4
|
-
} from "../../../../chunk-
|
|
4
|
+
} from "../../../../chunk-3EYKCHIK.js";
|
|
5
5
|
import {
|
|
6
6
|
source_default
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
8
8
|
import {
|
|
9
9
|
BaseCommand
|
|
10
|
-
} from "../../../../chunk-
|
|
10
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
11
11
|
import {
|
|
12
12
|
RecurringInterval,
|
|
13
13
|
StripeMode,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
init_cjs_shims,
|
|
16
16
|
require_lib,
|
|
17
17
|
valueOf
|
|
18
|
-
} from "../../../../chunk-
|
|
18
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/build/stripe/subscription/get.ts
|
|
21
21
|
init_cjs_shims();
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
formatCentsToDollars,
|
|
4
4
|
parseInterval,
|
|
5
5
|
parsePriceToCents
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-3EYKCHIK.js";
|
|
7
7
|
import {
|
|
8
8
|
source_default
|
|
9
|
-
} from "../../../../chunk-
|
|
9
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
10
10
|
import {
|
|
11
11
|
BaseCommand
|
|
12
|
-
} from "../../../../chunk-
|
|
12
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
13
13
|
import {
|
|
14
14
|
StripeMode,
|
|
15
15
|
__toESM,
|
|
16
16
|
init_cjs_shims,
|
|
17
17
|
require_lib,
|
|
18
18
|
valueOf
|
|
19
|
-
} from "../../../../chunk-
|
|
19
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/build/stripe/subscription/update.ts
|
|
22
22
|
init_cjs_shims();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
init_cjs_shims,
|
|
7
7
|
require_lib
|
|
8
|
-
} from "../../../chunk-
|
|
8
|
+
} from "../../../chunk-KLOYSTZY.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/build/tools/check.ts
|
|
11
11
|
init_cjs_shims();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCommand
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-TFQY5TSY.js";
|
|
4
4
|
import {
|
|
5
5
|
Parser,
|
|
6
6
|
Tokenizer,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
fmt,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib
|
|
11
|
-
} from "../../../chunk-
|
|
11
|
+
} from "../../../chunk-KLOYSTZY.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/build/tools/fmt.ts
|
|
14
14
|
init_cjs_shims();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sandbox
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-DPV5HIG7.js";
|
|
4
|
+
import "../../chunk-MJBLNWG3.js";
|
|
5
|
+
import "../../chunk-JQONDSHY.js";
|
|
6
|
+
import "../../chunk-L6FRQULN.js";
|
|
7
7
|
import {
|
|
8
8
|
BaseCommand
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_cjs_shims,
|
|
13
13
|
require_lib
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/build/unsandbox.ts
|
|
17
17
|
init_cjs_shims();
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FileSystemBundle,
|
|
3
3
|
archive
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-MJBLNWG3.js";
|
|
5
5
|
import {
|
|
6
6
|
buildHandlers
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-JQONDSHY.js";
|
|
8
|
+
import "../../chunk-L6FRQULN.js";
|
|
9
9
|
import {
|
|
10
10
|
BaseCommand
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
12
12
|
import {
|
|
13
13
|
BundleArchiveType,
|
|
14
14
|
__toESM,
|
|
15
15
|
init_cjs_shims,
|
|
16
16
|
require_lib,
|
|
17
17
|
valueOf
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/build/upload.ts
|
|
21
21
|
init_cjs_shims();
|
|
@@ -1,37 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildHandlers
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-JQONDSHY.js";
|
|
4
|
+
import "../../chunk-L6FRQULN.js";
|
|
5
|
+
import {
|
|
6
|
+
source_default
|
|
7
|
+
} from "../../chunk-V6J23FL2.js";
|
|
5
8
|
import {
|
|
6
9
|
BaseCommand
|
|
7
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-TFQY5TSY.js";
|
|
8
11
|
import {
|
|
9
12
|
__toESM,
|
|
10
13
|
init_cjs_shims,
|
|
11
14
|
require_lib
|
|
12
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-KLOYSTZY.js";
|
|
13
16
|
|
|
14
17
|
// src/commands/build/validate.ts
|
|
15
18
|
init_cjs_shims();
|
|
16
19
|
var import_core = __toESM(require_lib(), 1);
|
|
17
20
|
import { spawn } from "node:child_process";
|
|
21
|
+
import * as fs from "node:fs/promises";
|
|
18
22
|
import path from "node:path";
|
|
19
23
|
async function runTypeCheck(root) {
|
|
20
24
|
return new Promise((resolve) => {
|
|
25
|
+
let output = "";
|
|
21
26
|
const tsc = spawn("npx", ["tsc", "--noEmit"], {
|
|
22
27
|
cwd: root,
|
|
23
|
-
stdio: "
|
|
24
|
-
//
|
|
28
|
+
stdio: "pipe"
|
|
29
|
+
// Capture output to analyze errors
|
|
30
|
+
});
|
|
31
|
+
tsc.stdout?.on("data", (data) => {
|
|
32
|
+
output += data.toString();
|
|
33
|
+
});
|
|
34
|
+
tsc.stderr?.on("data", (data) => {
|
|
35
|
+
output += data.toString();
|
|
25
36
|
});
|
|
26
37
|
tsc.on("exit", (code) => {
|
|
27
|
-
|
|
38
|
+
const hasFrameworkError = output.includes("@liquidmetal-ai/raindrop-framework");
|
|
39
|
+
const hasHonoError = output.includes("hono");
|
|
40
|
+
if (code !== 0 && output) {
|
|
41
|
+
console.log(output);
|
|
42
|
+
}
|
|
43
|
+
resolve({
|
|
44
|
+
success: code === 0,
|
|
45
|
+
hasFrameworkError,
|
|
46
|
+
hasHonoError
|
|
47
|
+
});
|
|
28
48
|
});
|
|
29
49
|
});
|
|
30
50
|
}
|
|
31
51
|
var Build = class extends BaseCommand {
|
|
32
52
|
static args = {};
|
|
33
53
|
static description = "build and validate a LiquidMetal.AI project";
|
|
34
|
-
static examples = [
|
|
54
|
+
static examples = [
|
|
55
|
+
"<%= config.bin %> <%= command.id %>",
|
|
56
|
+
"<%= config.bin %> <%= command.id %> --quick # Skip dependency checks"
|
|
57
|
+
];
|
|
35
58
|
static flags = {
|
|
36
59
|
root: import_core.Flags.string({ char: "r", description: "root directory", required: false, default: process.cwd() }),
|
|
37
60
|
manifest: import_core.Flags.string({
|
|
@@ -47,7 +70,11 @@ var Build = class extends BaseCommand {
|
|
|
47
70
|
hidden: true,
|
|
48
71
|
default: ".raindrop/config.json"
|
|
49
72
|
}),
|
|
50
|
-
output: import_core.Flags.string({ char: "o", description: "output directory", required: false, default: "dist" })
|
|
73
|
+
output: import_core.Flags.string({ char: "o", description: "output directory", required: false, default: "dist" }),
|
|
74
|
+
quick: import_core.Flags.boolean({
|
|
75
|
+
description: "Skip dependency checks and run basic validation only",
|
|
76
|
+
default: false
|
|
77
|
+
})
|
|
51
78
|
};
|
|
52
79
|
async run() {
|
|
53
80
|
const apps = await this.loadManifest();
|
|
@@ -55,16 +82,60 @@ var Build = class extends BaseCommand {
|
|
|
55
82
|
if (version === null) {
|
|
56
83
|
this.error("Failed to determine @liquidmetal-ai/raindrop-framework version; is it installed?", { exit: 1 });
|
|
57
84
|
}
|
|
58
|
-
console.log(
|
|
85
|
+
console.log(source_default.blue(`\u2713 Using @liquidmetal-ai/raindrop-framework version ${version}`));
|
|
86
|
+
if (!this.flags.quick) {
|
|
87
|
+
await this.checkDependencies();
|
|
88
|
+
}
|
|
59
89
|
console.log("Running type check...");
|
|
60
|
-
const
|
|
61
|
-
if (!
|
|
62
|
-
|
|
90
|
+
const typeCheckResult = await runTypeCheck(this.flags.root);
|
|
91
|
+
if (!typeCheckResult.success) {
|
|
92
|
+
console.log("");
|
|
93
|
+
console.log(source_default.red("Type check failed. Please fix the TypeScript errors before building."));
|
|
94
|
+
if (typeCheckResult.hasFrameworkError) {
|
|
95
|
+
console.log("");
|
|
96
|
+
console.log(source_default.yellow("Framework import error detected. Try:"));
|
|
97
|
+
console.log(source_default.dim(" npm install"));
|
|
98
|
+
console.log(source_default.dim(" raindrop build generate"));
|
|
99
|
+
console.log(source_default.dim(" Or check your package.json for the correct framework version"));
|
|
100
|
+
}
|
|
101
|
+
if (typeCheckResult.hasHonoError) {
|
|
102
|
+
console.log("");
|
|
103
|
+
console.log(source_default.yellow("Hono import error detected. Try:"));
|
|
104
|
+
console.log(source_default.dim(" npm install hono"));
|
|
105
|
+
}
|
|
106
|
+
console.log("");
|
|
107
|
+
console.log(source_default.bold("For more help:"));
|
|
108
|
+
console.log(source_default.dim(" raindrop build features # Discover available features"));
|
|
109
|
+
console.log(source_default.dim(" raindrop build smartmemory setup # Get working examples"));
|
|
110
|
+
this.error("Validation failed");
|
|
63
111
|
}
|
|
64
|
-
console.log("Type check passed");
|
|
112
|
+
console.log(source_default.green("\u2713 Type check passed"));
|
|
65
113
|
const buildDir = path.isAbsolute(this.flags.output) ? this.flags.output : path.join(this.flags.root, this.flags.output);
|
|
66
114
|
await buildHandlers(this, apps, buildDir, this.flags.root);
|
|
67
115
|
}
|
|
116
|
+
async checkDependencies() {
|
|
117
|
+
try {
|
|
118
|
+
const packageJsonPath = path.join(this.flags.root, "package.json");
|
|
119
|
+
const packageJson = JSON.parse(await fs.readFile(packageJsonPath, "utf-8"));
|
|
120
|
+
const frameworkDep = packageJson.dependencies?.["@liquidmetal-ai/raindrop-framework"];
|
|
121
|
+
const honoDep = packageJson.dependencies?.["hono"];
|
|
122
|
+
if (!frameworkDep) {
|
|
123
|
+
console.log(source_default.yellow("\u26A0\uFE0F @liquidmetal-ai/raindrop-framework not found in dependencies"));
|
|
124
|
+
console.log(source_default.dim(" Try: npm install @liquidmetal-ai/raindrop-framework"));
|
|
125
|
+
console.log("");
|
|
126
|
+
}
|
|
127
|
+
if (!honoDep) {
|
|
128
|
+
console.log(source_default.yellow("\u26A0\uFE0F hono not found in dependencies"));
|
|
129
|
+
console.log(source_default.dim(" Try: npm install hono"));
|
|
130
|
+
console.log("");
|
|
131
|
+
}
|
|
132
|
+
if (frameworkDep && honoDep) {
|
|
133
|
+
console.log(source_default.green("\u2713 Core dependencies present"));
|
|
134
|
+
}
|
|
135
|
+
} catch (_error) {
|
|
136
|
+
console.log(source_default.yellow("\u26A0\uFE0F Could not check package.json dependencies"));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
68
139
|
};
|
|
69
140
|
export {
|
|
70
141
|
Build as default
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
esm_default
|
|
3
|
-
} from "../../../chunk-6BT265R3.js";
|
|
4
1
|
import {
|
|
5
2
|
source_default
|
|
6
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-V6J23FL2.js";
|
|
4
|
+
import {
|
|
5
|
+
esm_default
|
|
6
|
+
} from "../../../chunk-YQCRWPNI.js";
|
|
7
7
|
import {
|
|
8
8
|
BaseCommand
|
|
9
|
-
} from "../../../chunk-
|
|
9
|
+
} from "../../../chunk-TFQY5TSY.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_cjs_shims,
|
|
13
13
|
require_lib
|
|
14
|
-
} from "../../../chunk-
|
|
14
|
+
} from "../../../chunk-KLOYSTZY.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/build/workos/delete.ts
|
|
17
17
|
init_cjs_shims();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib,
|
|
11
11
|
valueOf
|
|
12
|
-
} from "../../../../chunk-
|
|
12
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/build/workos/env/attach.ts
|
|
15
15
|
init_cjs_shims();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib,
|
|
11
11
|
valueOf
|
|
12
|
-
} from "../../../../chunk-
|
|
12
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/build/workos/env/attached.ts
|
|
15
15
|
init_cjs_shims();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
EnvironmentType,
|
|
9
9
|
__toESM,
|
|
10
10
|
init_cjs_shims,
|
|
11
11
|
require_lib,
|
|
12
12
|
valueOf
|
|
13
|
-
} from "../../../../chunk-
|
|
13
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/build/workos/env/create.ts
|
|
16
16
|
init_cjs_shims();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib
|
|
11
|
-
} from "../../../../chunk-
|
|
11
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/build/workos/env/delete.ts
|
|
14
14
|
init_cjs_shims();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib,
|
|
11
11
|
valueOf
|
|
12
|
-
} from "../../../../chunk-
|
|
12
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/build/workos/env/detach.ts
|
|
15
15
|
init_cjs_shims();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand,
|
|
6
6
|
open_default
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
8
8
|
import {
|
|
9
9
|
__toESM,
|
|
10
10
|
init_cjs_shims,
|
|
11
11
|
require_lib,
|
|
12
12
|
valueOf
|
|
13
|
-
} from "../../../../chunk-
|
|
13
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/build/workos/env/dev-login.ts
|
|
16
16
|
init_cjs_shims();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib
|
|
11
|
-
} from "../../../../chunk-
|
|
11
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/build/workos/env/get.ts
|
|
14
14
|
init_cjs_shims();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
EnvironmentType,
|
|
9
9
|
__toESM,
|
|
10
10
|
init_cjs_shims,
|
|
11
11
|
require_lib
|
|
12
|
-
} from "../../../../chunk-
|
|
12
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/build/workos/env/list.ts
|
|
15
15
|
init_cjs_shims();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
EnvironmentType,
|
|
9
9
|
__toESM,
|
|
10
10
|
init_cjs_shims,
|
|
11
11
|
require_lib
|
|
12
|
-
} from "../../../../chunk-
|
|
12
|
+
} from "../../../../chunk-KLOYSTZY.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/build/workos/env/set.ts
|
|
15
15
|
init_cjs_shims();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
source_default
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-V6J23FL2.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseCommand
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-TFQY5TSY.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims,
|
|
10
10
|
require_lib
|
|
11
|
-
} from "../../../chunk-
|
|
11
|
+
} from "../../../chunk-KLOYSTZY.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/build/workos/invite.ts
|
|
14
14
|
init_cjs_shims();
|