@liquidmetal-ai/raindrop 0.9.1 → 0.9.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/README.md +111 -85
- package/bundle/{chunk-ZHYJWVIA.js → chunk-33VVNTZ7.js} +2 -2
- package/bundle/{chunk-SP4Q3T7T.js → chunk-3EXF5SKZ.js} +1 -1
- package/bundle/{chunk-JXNZYHAI.js → chunk-3TJC2HRW.js} +89 -105
- package/bundle/{chunk-HBDFBL3W.js → chunk-44MKXST7.js} +1 -1
- package/bundle/{chunk-GDYEPR67.js → chunk-4RZFURCF.js} +1 -1
- package/bundle/{chunk-67CBWZ7Y.js → chunk-4UNXUMLE.js} +3 -3
- package/bundle/chunk-4VJ2X7ZI.js +48 -0
- package/bundle/{chunk-IMQTVYRB.js → chunk-4WGY3ATR.js} +1 -1
- package/bundle/{chunk-ORPX7FPP.js → chunk-5TPOE7P2.js} +1 -5
- package/bundle/chunk-7JFKALLH.js +133 -0
- package/bundle/chunk-7O6U3ZAR.js +75 -0
- package/bundle/chunk-AWUA3C2V.js +114 -0
- package/bundle/{chunk-QKHN66ZN.js → chunk-BEN3KZQU.js} +1 -1
- package/bundle/{chunk-JDMAG4KE.js → chunk-BPZWIRQS.js} +2 -2
- package/bundle/chunk-C7G6I3MQ.js +292 -0
- package/bundle/chunk-D23L4WLL.js +502 -0
- package/bundle/chunk-E2TCXKAT.js +48 -0
- package/bundle/{chunk-FTG32FZ4.js → chunk-E7K6Y6GO.js} +1 -1
- package/bundle/chunk-EBK2SJTZ.js +805 -0
- package/bundle/chunk-FTH4A227.js +46 -0
- package/bundle/chunk-HBWEGYBW.js +4486 -0
- package/bundle/chunk-HFEVZZHW.js +46 -0
- package/bundle/chunk-I5M6WZPS.js +384 -0
- package/bundle/chunk-J44ZDCXF.js +44 -0
- package/bundle/{chunk-D5TOYPUE.js → chunk-J6XV5EH5.js} +1 -1
- package/bundle/chunk-KE7CMLHP.js +292 -0
- package/bundle/{chunk-ZLRYUJ5P.js → chunk-KHYRZQSK.js} +4 -4
- package/bundle/chunk-KOYRAC7N.js +74 -0
- package/bundle/chunk-KQ3F5KG7.js +231 -0
- package/bundle/chunk-KSXGB4ZG.js +4539 -0
- package/bundle/{chunk-7ERI6IFL.js → chunk-LP3LXBGR.js} +1 -1
- package/bundle/chunk-MH3BACIP.js +238722 -0
- package/bundle/chunk-MM7BYDBJ.js +238725 -0
- package/bundle/chunk-MQUFNQI5.js +231 -0
- package/bundle/{chunk-4RVUC2XX.js → chunk-N3LTFUBJ.js} +1 -1
- package/bundle/chunk-NWYJJVCF.js +22452 -0
- package/bundle/chunk-OAMLVMOY.js +133 -0
- package/bundle/chunk-PBVMMANP.js +4480 -0
- package/bundle/chunk-PT6CYFBD.js +74 -0
- package/bundle/chunk-QAG6TIB7.js +12148 -0
- package/bundle/chunk-RSLQIAJB.js +12148 -0
- package/bundle/chunk-SAU2NEDC.js +147 -0
- package/bundle/chunk-SZ6TMVT4.js +22452 -0
- package/bundle/chunk-T3MAVQWW.js +292 -0
- package/bundle/chunk-TCGZNSBY.js +4539 -0
- package/bundle/chunk-TRIIBQDR.js +4480 -0
- package/bundle/chunk-UUTXTOE3.js +231 -0
- package/bundle/chunk-VMKGSIXK.js +75 -0
- package/bundle/chunk-XDCRA7Y2.js +805 -0
- package/bundle/chunk-XEMONOX2.js +384 -0
- package/bundle/chunk-YAPQ2CKV.js +115 -0
- package/bundle/chunk-YDDBYUDC.js +502 -0
- package/bundle/chunk-ZGLCW5YO.js +380 -0
- package/bundle/chunk-ZQ6BFQSX.js +44 -0
- package/bundle/chunk-ZZTNAQSE.js +147 -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 +6 -5
- package/bundle/commands/build/clone.js +5 -5
- package/bundle/commands/build/delete.js +6 -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 +7 -3
- package/bundle/commands/build/generate.js +3 -3
- package/bundle/commands/build/init-workspace.js +102 -0
- package/bundle/commands/build/init.js +3 -3
- package/bundle/commands/build/list.js +5 -4
- package/bundle/commands/build/sandbox.js +7 -7
- package/bundle/commands/build/start.js +2 -2
- package/bundle/commands/build/status.js +8 -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/commands/build/find.d.ts.map +1 -1
- package/dist/commands/build/find.js +3 -0
- package/dist/commands/build/init-workspace.d.ts +16 -0
- package/dist/commands/build/init-workspace.d.ts.map +1 -0
- package/dist/commands/build/init-workspace.js +95 -0
- package/dist/commands/build/list.d.ts.map +1 -1
- package/dist/commands/build/list.js +3 -0
- package/dist/commands/build/status.d.ts.map +1 -1
- package/dist/commands/build/status.js +3 -0
- package/dist/killswitch-utils.d.ts +30 -0
- package/dist/killswitch-utils.d.ts.map +1 -0
- package/dist/killswitch-utils.js +83 -0
- package/oclif.manifest.json +2114 -2007
- package/package.json +3 -3
- package/templates/claude-code/debug-raindrop-app.md +12 -39
- package/templates/claude-code/update-raindrop-app.md +5 -6
- 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/templates/gemini-code/debug-raindrop-app.toml +12 -39
- package/templates/gemini-code/update-raindrop-app.toml +5 -6
- package/templates/goose/debug-raindrop-app.yaml +12 -39
- package/templates/goose/update-raindrop-app.yaml +5 -6
- package/templates/workspace/.gitignore.hbs +40 -0
- package/templates/workspace/package.json.hbs +22 -0
- package/dist/commands/killswitch.d.ts +0 -20
- package/dist/commands/killswitch.d.ts.map +0 -1
- package/dist/commands/killswitch.js +0 -58
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/utils/mixpanel.d.ts +0 -10
- package/dist/utils/mixpanel.d.ts.map +0 -1
- package/dist/utils/mixpanel.js +0 -43
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import {
|
|
2
|
+
source_default
|
|
3
|
+
} from "./chunk-D23L4WLL.js";
|
|
4
|
+
import {
|
|
5
|
+
UnitState,
|
|
6
|
+
init_cjs_shims,
|
|
7
|
+
valueOf
|
|
8
|
+
} from "./chunk-MM7BYDBJ.js";
|
|
9
|
+
|
|
10
|
+
// src/status.ts
|
|
11
|
+
init_cjs_shims();
|
|
12
|
+
import * as readline from "readline";
|
|
13
|
+
var statusString = {
|
|
14
|
+
[UnitState.UNSPECIFIED]: "<unknown>",
|
|
15
|
+
[UnitState.PENDING]: "pending...",
|
|
16
|
+
[UnitState.STARTING]: "starting...",
|
|
17
|
+
[UnitState.RUNNING]: "running",
|
|
18
|
+
[UnitState.STOPPING]: "stopping...",
|
|
19
|
+
[UnitState.STOPPED]: "stopped",
|
|
20
|
+
[UnitState.DELETING]: "deleting...",
|
|
21
|
+
[UnitState.DELETED]: "deleted"
|
|
22
|
+
};
|
|
23
|
+
async function getStatus(options) {
|
|
24
|
+
const { command, impersonate } = options;
|
|
25
|
+
let applicationName = options.applicationName;
|
|
26
|
+
let versionId = options.versionId;
|
|
27
|
+
if (!versionId) {
|
|
28
|
+
const config = await command.loadConfig();
|
|
29
|
+
versionId = config.versionId;
|
|
30
|
+
}
|
|
31
|
+
if (!applicationName) {
|
|
32
|
+
const apps = await command.loadManifest();
|
|
33
|
+
const app = apps[0];
|
|
34
|
+
if (app === void 0) {
|
|
35
|
+
command.error("No application provided or found in manifest");
|
|
36
|
+
}
|
|
37
|
+
applicationName = valueOf(app.name);
|
|
38
|
+
}
|
|
39
|
+
const { client: catalogService, userId, organizationId: defaultOrganizationId } = await command.catalogService();
|
|
40
|
+
const organizationId = impersonate ?? defaultOrganizationId;
|
|
41
|
+
const status = await catalogService.status({
|
|
42
|
+
userId,
|
|
43
|
+
organizationId,
|
|
44
|
+
applicationName,
|
|
45
|
+
currentVersionId: versionId || ""
|
|
46
|
+
});
|
|
47
|
+
if (status === void 0) {
|
|
48
|
+
command.error(`Application ${applicationName} not found`);
|
|
49
|
+
}
|
|
50
|
+
return status;
|
|
51
|
+
}
|
|
52
|
+
async function watchStatus(options) {
|
|
53
|
+
const { command } = options;
|
|
54
|
+
const renderer = new StatusRenderer();
|
|
55
|
+
let applicationName = options.applicationName;
|
|
56
|
+
let versionId = options.versionId;
|
|
57
|
+
if (!applicationName) {
|
|
58
|
+
const apps = await command.loadManifest();
|
|
59
|
+
const app = apps[0];
|
|
60
|
+
if (app) {
|
|
61
|
+
applicationName = valueOf(app.name);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (!versionId) {
|
|
65
|
+
const config = await command.loadConfig();
|
|
66
|
+
versionId = config.versionId;
|
|
67
|
+
}
|
|
68
|
+
let status = await getStatus(options);
|
|
69
|
+
while (true) {
|
|
70
|
+
renderer.renderLive(status, applicationName, versionId);
|
|
71
|
+
if (status.state === UnitState.RUNNING || status.state === UnitState.STOPPED) {
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
75
|
+
status = await getStatus(options);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
var StatusRenderer = class {
|
|
79
|
+
linesLastRendered = 0;
|
|
80
|
+
getStatusColor(state) {
|
|
81
|
+
switch (state) {
|
|
82
|
+
case UnitState.RUNNING:
|
|
83
|
+
return source_default.green;
|
|
84
|
+
case UnitState.PENDING:
|
|
85
|
+
case UnitState.STARTING:
|
|
86
|
+
return source_default.yellow;
|
|
87
|
+
case UnitState.STOPPING:
|
|
88
|
+
case UnitState.DELETING:
|
|
89
|
+
return source_default.yellow;
|
|
90
|
+
case UnitState.STOPPED:
|
|
91
|
+
case UnitState.DELETED:
|
|
92
|
+
return source_default.red;
|
|
93
|
+
default:
|
|
94
|
+
return source_default.gray;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
renderLive(status, applicationName, versionId) {
|
|
98
|
+
if (this.linesLastRendered > 0) {
|
|
99
|
+
readline.moveCursor(process.stdout, 0, -this.linesLastRendered);
|
|
100
|
+
readline.clearScreenDown(process.stdout);
|
|
101
|
+
}
|
|
102
|
+
const lines = [];
|
|
103
|
+
lines.push("");
|
|
104
|
+
lines.push(`${source_default.bold(applicationName)} ${source_default.dim(versionId ? `@${versionId.substring(0, 8)}...` : "")}`);
|
|
105
|
+
lines.push(source_default.dim(`Status: ${this.getStatusColor(status.state)(statusString[status.state])}`));
|
|
106
|
+
lines.push("");
|
|
107
|
+
lines.push(`${source_default.bold("Modules")} ${source_default.dim(`(${status.modules.length})`)}`);
|
|
108
|
+
for (const module of status.modules) {
|
|
109
|
+
const statusColor = this.getStatusColor(module.state);
|
|
110
|
+
const notification = module.notification ? ` - ${source_default.cyan(module.notification)}` : "";
|
|
111
|
+
lines.push(` \u2514\u2500 ${source_default.yellow(module.name)} - ${statusColor(statusString[module.state])}${notification}`);
|
|
112
|
+
}
|
|
113
|
+
const runningModules = status.modules.filter((m) => m.state === UnitState.RUNNING).length;
|
|
114
|
+
const totalModules = status.modules.length;
|
|
115
|
+
lines.push("");
|
|
116
|
+
lines.push(source_default.dim("\u2500".repeat(50)));
|
|
117
|
+
lines.push(source_default.dim(`Total: ${totalModules} modules (${runningModules} running)`));
|
|
118
|
+
for (const line of lines) {
|
|
119
|
+
console.log(line);
|
|
120
|
+
}
|
|
121
|
+
this.linesLastRendered = lines.length;
|
|
122
|
+
}
|
|
123
|
+
renderCompact(status, applicationName, versionId) {
|
|
124
|
+
console.log(`
|
|
125
|
+
${source_default.bold(applicationName)} ${source_default.dim(versionId ? `@${versionId.substring(0, 8)}...` : "")}`);
|
|
126
|
+
console.log(source_default.dim(`Status: ${this.getStatusColor(status.state)(statusString[status.state])}`));
|
|
127
|
+
console.log(`
|
|
128
|
+
${source_default.bold("Modules")} ${source_default.dim(`(${status.modules.length})`)}`);
|
|
129
|
+
for (const module of status.modules) {
|
|
130
|
+
const statusColor = this.getStatusColor(module.state);
|
|
131
|
+
const notification = module.notification ? ` - ${source_default.cyan(module.notification)}` : "";
|
|
132
|
+
console.log(` \u2514\u2500 ${source_default.yellow(module.name)} - ${statusColor(statusString[module.state])}${notification}`);
|
|
133
|
+
}
|
|
134
|
+
const runningModules = status.modules.filter((m) => m.state === UnitState.RUNNING).length;
|
|
135
|
+
const totalModules = status.modules.length;
|
|
136
|
+
console.log("");
|
|
137
|
+
console.log(source_default.dim("\u2500".repeat(50)));
|
|
138
|
+
console.log(source_default.dim(`Total: ${totalModules} modules (${runningModules} running)`));
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export {
|
|
143
|
+
statusString,
|
|
144
|
+
getStatus,
|
|
145
|
+
watchStatus,
|
|
146
|
+
StatusRenderer
|
|
147
|
+
};
|