blokctl 0.2.11 → 0.3.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/dist/commands/create/project.js +54 -0
- package/dist/commands/create/utils/Examples.d.ts +3 -3
- package/dist/commands/create/utils/Examples.js +109 -13
- package/dist/commands/dev/index.js +50 -13
- package/dist/commands/generate/validators/WorkflowValidator.js +1 -1
- package/dist/commands/migrate/index.js +11 -0
- package/dist/commands/migrate/workflows.d.ts +3 -0
- package/dist/commands/migrate/workflows.js +333 -0
- package/dist/commands/trace/index.js +6 -2
- package/dist/commands/trace/startStudio.d.ts +2 -0
- package/dist/commands/trace/startStudio.js +76 -11
- package/dist/index.js +1 -0
- package/dist/services/health-probe.d.ts +5 -0
- package/dist/services/health-probe.js +35 -0
- package/dist/services/runtime-detector.d.ts +3 -0
- package/dist/services/runtime-detector.js +21 -2
- package/dist/services/runtime-setup.d.ts +3 -0
- package/dist/services/runtime-setup.js +11 -2
- package/dist/studio-dist/assets/charts-Dh48HebV.js +68 -0
- package/dist/studio-dist/assets/graph-DWteCadQ.js +7 -0
- package/dist/studio-dist/assets/{icons-zP8LLgPh.js → icons-N5J4OhGx.js} +66 -51
- package/dist/studio-dist/assets/index-D6JA5F-X.js +42 -0
- package/dist/studio-dist/assets/index-mdQkg9ul.css +1 -0
- package/dist/studio-dist/assets/react-vendor-l0sNRNKZ.js +1 -0
- package/dist/studio-dist/assets/tanstack-query-Day3Mt-4.js +17 -0
- package/dist/studio-dist/assets/tanstack-router-BB95iErN.js +25 -0
- package/dist/studio-dist/assets/{tanstack-table-DhwRvuH2.js → tanstack-table-Biem1hxK.js} +1 -1
- package/dist/studio-dist/favicon.svg +7 -4
- package/dist/studio-dist/index.html +19 -10
- package/package.json +14 -11
- package/dist/studio-dist/assets/charts-Dso0hPUR.js +0 -68
- package/dist/studio-dist/assets/graph-CsV2nWGn.js +0 -23
- package/dist/studio-dist/assets/index-CLyEkXMx.css +0 -1
- package/dist/studio-dist/assets/index-CNXFX_ar.js +0 -27
- package/dist/studio-dist/assets/react-vendor--Eh9ivFN.js +0 -17
- package/dist/studio-dist/assets/tanstack-query-CiM1U6F5.js +0 -1
- package/dist/studio-dist/assets/tanstack-router-Btjy0MKq.js +0 -25
|
@@ -43,10 +43,13 @@ export async function setupRuntime(runtime, githubRepoLocal, projectDir, spinner
|
|
|
43
43
|
spinner.message(`${runtime.label} runtime setup complete.`);
|
|
44
44
|
return {
|
|
45
45
|
port: runtime.defaultPort,
|
|
46
|
+
grpcPort: runtime.defaultGrpcPort,
|
|
46
47
|
startCmd: startCmdOverride || runtime.startCmd,
|
|
48
|
+
grpcStartCmd: runtime.grpcStartCmd,
|
|
47
49
|
cwd: path.relative(projectDir, blokctlRuntimeDir),
|
|
48
50
|
kind: runtime.kind,
|
|
49
51
|
label: runtime.label,
|
|
52
|
+
transport: "grpc",
|
|
50
53
|
};
|
|
51
54
|
}
|
|
52
55
|
async function setupPython3(sdkDir, projectRuntimeDir, spinner) {
|
|
@@ -166,17 +169,23 @@ export function generateRuntimeEnvVars(runtimeConfigs) {
|
|
|
166
169
|
const envKey = rc.kind === "csharp" ? "CSHARP" : rc.kind.toUpperCase();
|
|
167
170
|
lines.push(`RUNTIME_${envKey}_HOST=localhost`);
|
|
168
171
|
lines.push(`RUNTIME_${envKey}_PORT=${rc.port}`);
|
|
172
|
+
if (rc.grpcPort !== undefined) {
|
|
173
|
+
lines.push(`RUNTIME_${envKey}_GRPC_PORT=${rc.grpcPort}`);
|
|
174
|
+
}
|
|
169
175
|
}
|
|
176
|
+
lines.push("BLOK_TRANSPORT=grpc");
|
|
170
177
|
return lines.join("\n");
|
|
171
178
|
}
|
|
172
179
|
export function generateSupervisordConfig(runtimeConfigs) {
|
|
173
180
|
let config = "";
|
|
174
181
|
for (const rc of runtimeConfigs) {
|
|
182
|
+
const cmd = rc.grpcStartCmd ?? rc.startCmd;
|
|
183
|
+
const grpcPortLine = rc.grpcPort !== undefined ? `,GRPC_PORT="${rc.grpcPort}"` : "";
|
|
175
184
|
config += `
|
|
176
185
|
[program:${rc.kind}_runtime]
|
|
177
|
-
command=${
|
|
186
|
+
command=${cmd}
|
|
178
187
|
directory=/app/${rc.cwd}
|
|
179
|
-
environment=PORT="${rc.port}",HOST="0.0.0.0"
|
|
188
|
+
environment=PORT="${rc.port}"${grpcPortLine},HOST="0.0.0.0",BLOK_TRANSPORT="grpc"
|
|
180
189
|
autostart=true
|
|
181
190
|
autorestart=true
|
|
182
191
|
stderr_logfile=/var/log/${rc.kind}.err.log
|