@runa-ai/runa-cli 0.5.45 → 0.5.46
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/ci/utils/app-runtime.d.ts +2 -0
- package/dist/commands/ci/utils/app-runtime.d.ts.map +1 -1
- package/dist/commands/db/utils/schema-sync.d.ts.map +1 -1
- package/dist/commands/dev/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev/contract.d.ts +1 -0
- package/dist/commands/dev/contract.d.ts.map +1 -1
- package/dist/commands/dev/machine.d.ts +1 -0
- package/dist/commands/dev/machine.d.ts.map +1 -1
- package/dist/commands/template-check/config.d.ts.map +1 -1
- package/dist/index.js +45 -18
- package/package.json +3 -3
|
@@ -23,6 +23,8 @@ export declare function startAppBackground(params: {
|
|
|
23
23
|
tmpDir: string;
|
|
24
24
|
/** App mode: 'dev' for development (hot reload), 'start' for production. Default: 'start' */
|
|
25
25
|
mode?: AppMode;
|
|
26
|
+
/** Stream output to terminal in addition to log file. Default: false */
|
|
27
|
+
stream?: boolean;
|
|
26
28
|
}): Promise<{
|
|
27
29
|
pid: number;
|
|
28
30
|
cleanupStreams: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-runtime.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/app-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"app-runtime.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/app-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA+GH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB;AAiHD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,OAAO,CAAC;AA4Dt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,OAAO,EAAE,MAAM,WAAW,CAAC;AAuMpC,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuMpC,eAAO,MAAM,UAAU,SAmBnB,CAAC"}
|
|
@@ -18,6 +18,7 @@ export declare const DevInputSchema: z.ZodObject<{
|
|
|
18
18
|
skipDb: z.ZodDefault<z.ZodBoolean>;
|
|
19
19
|
skipApp: z.ZodDefault<z.ZodBoolean>;
|
|
20
20
|
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
stream: z.ZodDefault<z.ZodBoolean>;
|
|
21
22
|
targetDir: z.ZodOptional<z.ZodString>;
|
|
22
23
|
}, z.core.$strict>;
|
|
23
24
|
export type DevInput = z.infer<typeof DevInputSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;kBAehB,CAAC;AAEZ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAMtD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;EAAgE,CAAC;AAElG,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAMlE;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;kBAajB,CAAC;AAEZ,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAS1D,OAAO,KAAK,EAAE,UAAU,EAAY,QAAQ,EAAa,MAAM,YAAY,CAAC;AAsF5E,UAAU,aAAa;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAS1D,OAAO,KAAK,EAAE,UAAU,EAAY,QAAQ,EAAa,MAAM,YAAY,CAAC;AAsF5E,UAAU,aAAa;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAoCD,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;AAoBD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIH,QAAQ;cAAY,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;EA8K5C,CAAC;AAMH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAM1D;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,CAa1D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAEzD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAE7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/commands/template-check/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,2CAA4C,CAAC;AAMzE;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/commands/template-check/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,2CAA4C,CAAC;AAMzE;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAuEnC,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAwDvC,CAAC;AAMX;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8EvB,CAAC;AAMX;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,EAAE,SAAS,MAAM,EA6DjD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -929,7 +929,7 @@ var CLI_VERSION, HAS_ADMIN_COMMAND;
|
|
|
929
929
|
var init_version = __esm({
|
|
930
930
|
"src/version.ts"() {
|
|
931
931
|
init_esm_shims();
|
|
932
|
-
CLI_VERSION = "0.5.
|
|
932
|
+
CLI_VERSION = "0.5.46";
|
|
933
933
|
HAS_ADMIN_COMMAND = false;
|
|
934
934
|
}
|
|
935
935
|
});
|
|
@@ -7432,6 +7432,8 @@ z.object({
|
|
|
7432
7432
|
skipApp: z.boolean().default(false),
|
|
7433
7433
|
/** Show detailed output */
|
|
7434
7434
|
verbose: z.boolean().default(false),
|
|
7435
|
+
/** Stream app output to terminal (in addition to log file). Default: true */
|
|
7436
|
+
stream: z.boolean().default(true),
|
|
7435
7437
|
/** Target directory (defaults to cwd) */
|
|
7436
7438
|
targetDir: z.string().optional()
|
|
7437
7439
|
}).strict();
|
|
@@ -7653,9 +7655,9 @@ async function executePrSetupBase(input3, ensureTmpDir) {
|
|
|
7653
7655
|
// src/commands/ci/utils/app-runtime.ts
|
|
7654
7656
|
init_esm_shims();
|
|
7655
7657
|
function pipeChildOutputToLog(params) {
|
|
7656
|
-
const sources = [
|
|
7657
|
-
|
|
7658
|
-
);
|
|
7658
|
+
const sources = [];
|
|
7659
|
+
if (params.stdout) sources.push({ stream: params.stdout, isStderr: false });
|
|
7660
|
+
if (params.stderr) sources.push({ stream: params.stderr, isStderr: true });
|
|
7659
7661
|
if (sources.length === 0) {
|
|
7660
7662
|
params.logStream.end();
|
|
7661
7663
|
return { cleanup: () => {
|
|
@@ -7669,10 +7671,14 @@ function pipeChildOutputToLog(params) {
|
|
|
7669
7671
|
params.logStream.end();
|
|
7670
7672
|
}
|
|
7671
7673
|
};
|
|
7672
|
-
for (const source of sources) {
|
|
7674
|
+
for (const { stream: source, isStderr } of sources) {
|
|
7673
7675
|
const onData = (chunk) => {
|
|
7674
7676
|
if (cleanedUp) return;
|
|
7675
7677
|
const canContinue = params.logStream.write(chunk);
|
|
7678
|
+
if (params.streamToTerminal) {
|
|
7679
|
+
const terminalStream = isStderr ? process.stderr : process.stdout;
|
|
7680
|
+
terminalStream.write(chunk);
|
|
7681
|
+
}
|
|
7676
7682
|
if (!canContinue) {
|
|
7677
7683
|
source.pause();
|
|
7678
7684
|
params.logStream.once("drain", () => {
|
|
@@ -7690,7 +7696,7 @@ function pipeChildOutputToLog(params) {
|
|
|
7690
7696
|
const cleanup = () => {
|
|
7691
7697
|
if (cleanedUp) return;
|
|
7692
7698
|
cleanedUp = true;
|
|
7693
|
-
for (const source of sources) {
|
|
7699
|
+
for (const { stream: source } of sources) {
|
|
7694
7700
|
source.removeAllListeners("data");
|
|
7695
7701
|
source.removeAllListeners("end");
|
|
7696
7702
|
source.removeAllListeners("close");
|
|
@@ -7789,18 +7795,17 @@ async function readPackageScripts(pkgPath) {
|
|
|
7789
7795
|
}
|
|
7790
7796
|
function determineAppCommand(mode, isMonorepo2, rootScripts, appScripts, repoRoot, appDir, port) {
|
|
7791
7797
|
const ciScriptName = mode === "dev" ? "dev:ci" : "start:ci";
|
|
7792
|
-
const defaultScriptName = mode;
|
|
7793
7798
|
const nextCommand = mode === "dev" ? "dev" : "start";
|
|
7794
7799
|
const rootHasCiScript = Boolean(rootScripts?.[ciScriptName]);
|
|
7795
|
-
const rootHasDefaultScript = Boolean(rootScripts?.[defaultScriptName]);
|
|
7796
7800
|
const appHasCiScript = Boolean(appScripts?.[ciScriptName]);
|
|
7797
|
-
const
|
|
7801
|
+
const rootHasDefaultScript = mode === "start" && Boolean(rootScripts?.["start"]);
|
|
7802
|
+
const appHasDefaultScript = mode === "start" && Boolean(appScripts?.["start"]);
|
|
7798
7803
|
if (isMonorepo2 && (rootHasCiScript || rootHasDefaultScript)) {
|
|
7799
|
-
const scriptName = rootHasCiScript ? ciScriptName :
|
|
7804
|
+
const scriptName = rootHasCiScript ? ciScriptName : "start";
|
|
7800
7805
|
return { command: ["pnpm", scriptName], useRootScript: true };
|
|
7801
7806
|
}
|
|
7802
7807
|
if (appHasCiScript || appHasDefaultScript) {
|
|
7803
|
-
const scriptName = appHasCiScript ? ciScriptName :
|
|
7808
|
+
const scriptName = appHasCiScript ? ciScriptName : "start";
|
|
7804
7809
|
const dirArgs2 = isMonorepo2 ? ["-C", path10__default.relative(repoRoot, appDir)] : [];
|
|
7805
7810
|
return { command: ["pnpm", ...dirArgs2, scriptName], useRootScript: false };
|
|
7806
7811
|
}
|
|
@@ -7852,7 +7857,8 @@ async function startAppBackground(params) {
|
|
|
7852
7857
|
const { cleanup: cleanupStreams } = pipeChildOutputToLog({
|
|
7853
7858
|
stdout: child.stdout,
|
|
7854
7859
|
stderr: child.stderr,
|
|
7855
|
-
logStream: out
|
|
7860
|
+
logStream: out,
|
|
7861
|
+
streamToTerminal: params.stream
|
|
7856
7862
|
});
|
|
7857
7863
|
const pid = child.pid ?? -1;
|
|
7858
7864
|
await writeFile(path10__default.join(params.tmpDir, "app.pid"), `${pid}
|
|
@@ -7999,7 +8005,7 @@ var e2eMeta2 = {
|
|
|
7999
8005
|
};
|
|
8000
8006
|
var appStartActor = fromPromise(
|
|
8001
8007
|
async ({ input: input3 }) => {
|
|
8002
|
-
const { repoRoot, appDir, port, tmpDir } = input3;
|
|
8008
|
+
const { repoRoot, appDir, port, tmpDir, stream } = input3;
|
|
8003
8009
|
const fullTmpDir = path10__default.join(repoRoot, tmpDir);
|
|
8004
8010
|
await mkdir(fullTmpDir, { recursive: true });
|
|
8005
8011
|
const result = await startAppBackground({
|
|
@@ -8008,7 +8014,8 @@ var appStartActor = fromPromise(
|
|
|
8008
8014
|
port,
|
|
8009
8015
|
env: process.env,
|
|
8010
8016
|
tmpDir: fullTmpDir,
|
|
8011
|
-
mode: "dev"
|
|
8017
|
+
mode: "dev",
|
|
8018
|
+
stream
|
|
8012
8019
|
});
|
|
8013
8020
|
await waitForAppReady({
|
|
8014
8021
|
port,
|
|
@@ -8047,7 +8054,7 @@ var devMachine = setup({
|
|
|
8047
8054
|
id: "dev",
|
|
8048
8055
|
initial: "idle",
|
|
8049
8056
|
context: ({ input: input3 }) => {
|
|
8050
|
-
const repoRoot = input3.repoRoot;
|
|
8057
|
+
const repoRoot = input3.repoRoot ?? process.cwd();
|
|
8051
8058
|
return {
|
|
8052
8059
|
input: input3.input,
|
|
8053
8060
|
repoRoot,
|
|
@@ -8141,7 +8148,8 @@ var devMachine = setup({
|
|
|
8141
8148
|
repoRoot: context.repoRoot,
|
|
8142
8149
|
appDir: detected?.appDir ?? context.repoRoot,
|
|
8143
8150
|
port: context.input.port,
|
|
8144
|
-
tmpDir: context.tmpDir
|
|
8151
|
+
tmpDir: context.tmpDir,
|
|
8152
|
+
stream: context.input.stream
|
|
8145
8153
|
};
|
|
8146
8154
|
},
|
|
8147
8155
|
onDone: {
|
|
@@ -8344,12 +8352,13 @@ async function runDevAction(options, cmd) {
|
|
|
8344
8352
|
);
|
|
8345
8353
|
}
|
|
8346
8354
|
}
|
|
8347
|
-
var devCommand = new Command("dev").description("Start development server (Supabase + Next.js)").option("--port <number>", "Port for Next.js dev server", (val) => Number.parseInt(val, 10), 3e3).option("--skip-db", "Skip Supabase start").option("--skip-app", "Start Supabase only (no app server)").option("--verbose", "Show detailed output").option("--target-dir <path>", "Target directory (defaults to repo root)").action(async (options, cmd) => {
|
|
8355
|
+
var devCommand = new Command("dev").description("Start development server (Supabase + Next.js)").option("--port <number>", "Port for Next.js dev server", (val) => Number.parseInt(val, 10), 3e3).option("--skip-db", "Skip Supabase start").option("--skip-app", "Start Supabase only (no app server)").option("--verbose", "Show detailed output").option("--no-stream", "Disable streaming app output to terminal (log to file only)").option("--target-dir <path>", "Target directory (defaults to repo root)").action(async (options, cmd) => {
|
|
8348
8356
|
const input3 = {
|
|
8349
8357
|
port: options.port,
|
|
8350
8358
|
skipDb: options.skipDb ?? false,
|
|
8351
8359
|
skipApp: options.skipApp ?? false,
|
|
8352
8360
|
verbose: options.verbose ?? false,
|
|
8361
|
+
stream: options.stream ?? true,
|
|
8353
8362
|
targetDir: options.targetDir
|
|
8354
8363
|
};
|
|
8355
8364
|
await runDevAction(input3, cmd);
|
|
@@ -19823,7 +19832,14 @@ function uniqueSorted(values) {
|
|
|
19823
19832
|
async function extractSchemaTablesAndEnums(dbPackagePath, projectRoot = process.cwd()) {
|
|
19824
19833
|
const validatedSchemaPath = validateSchemaPath(dbPackagePath, projectRoot);
|
|
19825
19834
|
const jiti = createJiti(projectRoot, { interopDefault: true });
|
|
19826
|
-
|
|
19835
|
+
let schemaModule;
|
|
19836
|
+
try {
|
|
19837
|
+
schemaModule = await jiti.import(validatedSchemaPath);
|
|
19838
|
+
} catch (error) {
|
|
19839
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
19840
|
+
const hint = errorMessage.includes("unknown is not defined") ? "\n\nHint: Add 'unknown' to drizzle-orm/pg-core imports:\n import { unknown, ... } from 'drizzle-orm/pg-core'" : "";
|
|
19841
|
+
throw new Error(`Failed to load schema from ${validatedSchemaPath}: ${errorMessage}${hint}`);
|
|
19842
|
+
}
|
|
19827
19843
|
const expectedTables = /* @__PURE__ */ new Set();
|
|
19828
19844
|
const expectedEnums = /* @__PURE__ */ new Map();
|
|
19829
19845
|
for (const value of Object.values(schemaModule)) {
|
|
@@ -32785,7 +32801,18 @@ var RUNA_ONLY_FILES = [
|
|
|
32785
32801
|
"packages/database/scripts/check-plpgsql.ts",
|
|
32786
32802
|
"packages/database/scripts/run-splinter.ts",
|
|
32787
32803
|
"packages/database/scripts/seed-generators/index.ts",
|
|
32804
|
+
"packages/database/scripts/seed-generators/loader.ts",
|
|
32805
|
+
"packages/database/scripts/seed-generators/types.ts",
|
|
32788
32806
|
"packages/database/scripts/seed-plugins/supabase-auth.ts",
|
|
32807
|
+
"packages/database/scripts/seed-data-sources/api-source.ts",
|
|
32808
|
+
"packages/database/scripts/seed-data-sources/csv-source.ts",
|
|
32809
|
+
"packages/database/scripts/seed-data-sources/index.ts",
|
|
32810
|
+
"packages/database/scripts/seed-data-sources/json-source.ts",
|
|
32811
|
+
"packages/database/scripts/seed-data-sources/types.ts",
|
|
32812
|
+
"packages/database/scripts/seed-hooks/index.ts",
|
|
32813
|
+
"packages/database/scripts/seed-hooks/types.ts",
|
|
32814
|
+
"packages/database/scripts/seed-utils/index.ts",
|
|
32815
|
+
"packages/database/scripts/seed-utils/security.ts",
|
|
32789
32816
|
// === runa-repo Specific Tests ===
|
|
32790
32817
|
"packages/database/tests/00_system-schemas.sql",
|
|
32791
32818
|
"packages/database/tests/01_table-helpers.sql",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runa-ai/runa-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.46",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "AI-powered DevOps CLI",
|
|
6
6
|
"type": "module",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"typescript": "5.9.3",
|
|
54
54
|
"xstate": "5.25.0",
|
|
55
55
|
"zod": "4.3.5",
|
|
56
|
-
"@runa-ai/runa
|
|
57
|
-
"@runa-ai/runa": "0.5.
|
|
56
|
+
"@runa-ai/runa": "0.5.44",
|
|
57
|
+
"@runa-ai/runa-xstate-test-plugin": "0.5.35"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=20.0.0"
|