@liquidmetal-ai/raindrop 0.9.0 → 0.9.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 +85 -134
- package/bundle/chunk-2NAMGQLL.js +805 -0
- package/bundle/chunk-4C3ZVVH7.js +502 -0
- package/bundle/chunk-4RVUC2XX.js +4539 -0
- package/bundle/chunk-5QVCT2XX.js +380 -0
- package/bundle/chunk-67CBWZ7Y.js +380 -0
- package/bundle/chunk-7ERI6IFL.js +22452 -0
- package/bundle/chunk-CZCDV5DC.js +147 -0
- package/bundle/chunk-D5TOYPUE.js +12148 -0
- package/bundle/chunk-DIDBQB37.js +12148 -0
- package/bundle/chunk-DV2VD4JX.js +44 -0
- package/bundle/chunk-FQ3UM2WC.js +4480 -0
- package/bundle/chunk-FTG32FZ4.js +44 -0
- package/bundle/chunk-GCLJVMUS.js +4539 -0
- package/bundle/chunk-GDYEPR67.js +75 -0
- package/bundle/chunk-HBDFBL3W.js +133 -0
- package/bundle/chunk-IMQTVYRB.js +502 -0
- package/bundle/chunk-IXNEFD7W.js +133 -0
- package/bundle/chunk-JDMAG4KE.js +147 -0
- package/bundle/chunk-JXNZYHAI.js +238750 -0
- package/bundle/chunk-OMXHWEID.js +75 -0
- package/bundle/chunk-ORPX7FPP.js +4484 -0
- package/bundle/chunk-QKHN66ZN.js +805 -0
- package/bundle/chunk-SP4Q3T7T.js +48 -0
- package/bundle/chunk-UA3E47QH.js +231 -0
- package/bundle/chunk-UL64FJVV.js +22452 -0
- package/bundle/chunk-VEVVJAL6.js +238722 -0
- package/bundle/chunk-Z2AQLL53.js +292 -0
- package/bundle/chunk-ZHLA64FP.js +48 -0
- package/bundle/chunk-ZHYJWVIA.js +292 -0
- package/bundle/chunk-ZLRYUJ5P.js +231 -0
- 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/list.js +2 -2
- package/bundle/commands/auth/login.js +3 -3
- 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/branch.js +9 -9
- package/bundle/commands/build/checkout.js +5 -5
- package/bundle/commands/build/clone.js +5 -5
- package/bundle/commands/build/delete.js +5 -5
- package/bundle/commands/build/deploy.js +9 -9
- package/bundle/commands/build/env/get.js +2 -2
- package/bundle/commands/build/env/set.js +2 -2
- package/bundle/commands/build/find.js +3 -3
- package/bundle/commands/build/generate.js +3 -3
- package/bundle/commands/build/init.js +3 -3
- package/bundle/commands/build/list.js +4 -4
- package/bundle/commands/build/sandbox.js +7 -7
- package/bundle/commands/build/start.js +2 -2
- package/bundle/commands/build/status.js +4 -4
- package/bundle/commands/build/stop.js +2 -2
- package/bundle/commands/build/tools/check.js +2 -2
- package/bundle/commands/build/tools/fmt.js +2 -2
- package/bundle/commands/build/unsandbox.js +7 -7
- package/bundle/commands/build/upload.js +5 -5
- package/bundle/commands/build/validate.js +4 -4
- package/bundle/commands/build/workos/delete.js +4 -4
- package/bundle/commands/build/workos/env/attach.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/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/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 +4 -4
- package/bundle/commands/dns/get.js +4 -4
- 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/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 +2 -2
- package/bundle/commands/object/get.js +2 -2
- package/bundle/commands/object/list.js +2 -2
- package/bundle/commands/object/put.js +2 -2
- package/bundle/commands/query/chunk-search.js +3 -3
- package/bundle/commands/query/document.js +3 -3
- package/bundle/commands/query/events.js +2 -2
- package/bundle/commands/query/reindex.js +2 -2
- package/bundle/commands/query/search.js +3 -3
- package/bundle/commands/tail.js +2 -2
- package/bundle/index.js +1 -1
- package/dist/base-command.d.ts +4 -4
- package/dist/base-command.d.ts.map +1 -1
- package/dist/base-command.js +2 -2
- package/dist/commands/{build/package-template.d.ts → killswitch.d.ts} +7 -15
- package/dist/commands/killswitch.d.ts.map +1 -0
- package/dist/commands/killswitch.js +58 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/utils/mixpanel.d.ts +10 -0
- package/dist/utils/mixpanel.d.ts.map +1 -0
- package/dist/utils/mixpanel.js +43 -0
- package/oclif.manifest.json +1920 -2187
- package/package.json +3 -3
- package/templates/db/node_modules/.bin/prisma +2 -2
- package/templates/db/node_modules/.bin/prisma-kysely +2 -2
- package/templates/db/node_modules/.bin/tsc +2 -2
- package/templates/db/node_modules/.bin/tsserver +2 -2
- package/templates/db/node_modules/.bin/zx +2 -2
- package/bundle/chunk-6CDCK5IP.js +0 -58
- package/bundle/commands/build/list-templates.js +0 -63
- package/bundle/commands/build/package-template.js +0 -238
- package/dist/commands/build/list-templates.d.ts +0 -11
- package/dist/commands/build/list-templates.d.ts.map +0 -1
- package/dist/commands/build/list-templates.js +0 -47
- package/dist/commands/build/package-template.d.ts.map +0 -1
- package/dist/commands/build/package-template.js +0 -256
- package/dist/templates/registry.d.ts +0 -38
- package/dist/templates/registry.d.ts.map +0 -1
- package/dist/templates/registry.js +0 -72
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_cjs_shims
|
|
3
|
+
} from "./chunk-VEVVJAL6.js";
|
|
4
|
+
|
|
5
|
+
// ../drizzle/dist/ulid.js
|
|
6
|
+
init_cjs_shims();
|
|
7
|
+
var BASE32_ENCODING = "0123456789abcdefghjkmnpqrstvwxyz";
|
|
8
|
+
var ENCODING_LEN = BASE32_ENCODING.length;
|
|
9
|
+
var TIME_MAX = Math.pow(2, 48) - 1;
|
|
10
|
+
var TIME_LEN = 10;
|
|
11
|
+
var RANDOM_LEN = 16;
|
|
12
|
+
function monotonic() {
|
|
13
|
+
let lastTime = 0;
|
|
14
|
+
let lastRandom;
|
|
15
|
+
return function ulid2() {
|
|
16
|
+
const seed = (/* @__PURE__ */ new Date()).getTime();
|
|
17
|
+
if (seed <= lastTime) {
|
|
18
|
+
lastRandom = incrementBase32(lastRandom);
|
|
19
|
+
return encodeTime(lastTime) + lastRandom;
|
|
20
|
+
}
|
|
21
|
+
lastTime = seed;
|
|
22
|
+
lastRandom = encodeRandom();
|
|
23
|
+
return encodeTime(seed) + lastRandom;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
var ulid = monotonic();
|
|
27
|
+
function encodeRandom() {
|
|
28
|
+
const bytes = crypto.getRandomValues(new Uint8Array(RANDOM_LEN));
|
|
29
|
+
let str = "";
|
|
30
|
+
for (let i = 0; i < RANDOM_LEN; i++) {
|
|
31
|
+
str = str + BASE32_ENCODING[bytes[i] % ENCODING_LEN];
|
|
32
|
+
}
|
|
33
|
+
return str;
|
|
34
|
+
}
|
|
35
|
+
function encodeTime(ms) {
|
|
36
|
+
if (ms > TIME_MAX)
|
|
37
|
+
throw new Error("cannot encode time greater than " + TIME_MAX);
|
|
38
|
+
if (ms < 0)
|
|
39
|
+
throw new Error("time must be positive");
|
|
40
|
+
let mod;
|
|
41
|
+
let str = "";
|
|
42
|
+
for (let len = TIME_LEN; len > 0; len--) {
|
|
43
|
+
mod = ms % ENCODING_LEN;
|
|
44
|
+
str = BASE32_ENCODING[mod] + str;
|
|
45
|
+
ms = (ms - mod) / ENCODING_LEN;
|
|
46
|
+
}
|
|
47
|
+
return str;
|
|
48
|
+
}
|
|
49
|
+
function incrementBase32(str) {
|
|
50
|
+
function replaceCharAt(str2, index2, char2) {
|
|
51
|
+
if (index2 > str2.length - 1)
|
|
52
|
+
return str2;
|
|
53
|
+
return str2.substring(0, index2) + char2 + str2.substring(index2 + 1);
|
|
54
|
+
}
|
|
55
|
+
const maxCharIndex = ENCODING_LEN - 1;
|
|
56
|
+
let index = str ? str.length : 0;
|
|
57
|
+
let char;
|
|
58
|
+
let charIndex;
|
|
59
|
+
while (index-- >= 0) {
|
|
60
|
+
char = str[index];
|
|
61
|
+
charIndex = BASE32_ENCODING.indexOf(char);
|
|
62
|
+
if (charIndex === -1)
|
|
63
|
+
throw new Error("incorrectly encoded string");
|
|
64
|
+
if (charIndex === maxCharIndex) {
|
|
65
|
+
str = replaceCharAt(str, index, BASE32_ENCODING[0]);
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
return replaceCharAt(str, index, BASE32_ENCODING[charIndex + 1]);
|
|
69
|
+
}
|
|
70
|
+
return str;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export {
|
|
74
|
+
ulid
|
|
75
|
+
};
|