relayflows 2.0.9 → 2.0.11

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.
Files changed (2) hide show
  1. package/bin/flows.js +2 -21
  2. package/package.json +4 -4
package/bin/flows.js CHANGED
@@ -1,23 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { spawnSync } from 'node:child_process';
3
- import { existsSync } from 'node:fs';
4
- import { dirname, join } from 'node:path';
5
- import { fileURLToPath } from 'node:url';
2
+ import { runCli } from '@relayflows/sdk/cli';
6
3
 
7
- // Not `import '@relayflows/sdk/dist/cli.js'`: that subpath isn't in the
8
- // SDK's package "exports", so specifier resolution would refuse it. Locating
9
- // the installed dependency's real CLI file directly sidesteps that — this
10
- // package's only job is finding it and forwarding argv/stdio.
11
- const packageRoot = join(dirname(fileURLToPath(import.meta.url)), '..');
12
- const sdkCli = join(packageRoot, 'node_modules', '@relayflows', 'sdk', 'dist', 'cli.js');
13
-
14
- if (!existsSync(sdkCli)) {
15
- process.stderr.write(
16
- `relayflows: could not find @relayflows/sdk at ${sdkCli}\n` +
17
- 'Reinstall with `npm install -g relayflows`.\n',
18
- );
19
- process.exit(1);
20
- }
21
-
22
- const result = spawnSync(process.execPath, [sdkCli, ...process.argv.slice(2)], { stdio: 'inherit' });
23
- process.exit(result.status ?? 1);
4
+ process.exitCode = await runCli(process.argv.slice(2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "relayflows",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "description": "Relayflow v2 CLI. Installs the `flows` command — a thin wrapper around @relayflows/sdk, published under the unscoped name for `npm install -g relayflows`.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -16,11 +16,11 @@
16
16
  "flows": "./bin/flows.js"
17
17
  },
18
18
  "dependencies": {
19
- "@relayflows/sdk": "2.0.9"
19
+ "@relayflows/sdk": "2.0.11"
20
20
  },
21
21
  "optionalDependencies": {
22
- "@relayflows/runtime-linux-x64": "2.0.9",
23
- "@relayflows/runtime-darwin-arm64": "2.0.9"
22
+ "@relayflows/runtime-linux-x64": "2.0.11",
23
+ "@relayflows/runtime-darwin-arm64": "2.0.11"
24
24
  },
25
25
  "engines": {
26
26
  "node": ">=20"