@intellia/hutly-cli 1.4.0 → 1.5.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/README.md +13 -31
- package/bin/hutly.js +7 -72
- package/package.json +5 -9
package/README.md
CHANGED
|
@@ -1,37 +1,19 @@
|
|
|
1
|
-
# @intellia/hutly-cli
|
|
1
|
+
# @intellia/hutly-cli (deprecated)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install -g @intellia/hutly-cli
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Configure
|
|
3
|
+
This package was renamed to [`@intellia/cli`](https://www.npmjs.com/package/@intellia/cli),
|
|
4
|
+
and the command from `hutly` to `intellia`.
|
|
12
5
|
|
|
13
6
|
```bash
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export HUTLY_API_ENDPOINT="https://api.intellia.com.au"
|
|
7
|
+
npm uninstall -g @intellia/hutly-cli
|
|
8
|
+
npm install -g @intellia/cli
|
|
9
|
+
intellia --help
|
|
18
10
|
```
|
|
19
11
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
hutly --help
|
|
24
|
-
hutly workflow list
|
|
25
|
-
hutly org create --kind office --name "Sydney Office"
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Full reference: <https://docs.hutly.com/cli>.
|
|
29
|
-
|
|
30
|
-
## Supported platforms
|
|
31
|
-
|
|
32
|
-
- macOS (Apple Silicon and Intel)
|
|
33
|
-
- Linux (x86_64 and arm64)
|
|
34
|
-
- Windows (x86_64)
|
|
12
|
+
This package now only forwards `hutly` to `intellia`. Each use prints a
|
|
13
|
+
deprecation warning and is reported to Intellia, so the remaining callers can
|
|
14
|
+
be found and moved.
|
|
35
15
|
|
|
36
|
-
|
|
37
|
-
|
|
16
|
+
Environment variables and config files were renamed the same way:
|
|
17
|
+
`HUTLY_*` → `INTELLIA_*`, `.hutlyrc.yaml` → `.intelliarc.yaml`, and
|
|
18
|
+
`~/.hutly/credentials` → `~/.intellia/credentials`. The old names still work
|
|
19
|
+
and are reported the same way.
|
package/bin/hutly.js
CHANGED
|
@@ -1,79 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Each per-platform sub-package (e.g. `@intellia/hutly-cli-darwin-arm64`) is
|
|
7
|
-
* listed as an `optionalDependency` of `@intellia/hutly-cli`, so npm only
|
|
8
|
-
* installs the one matching the host's os/cpu. This launcher resolves
|
|
9
|
-
* the installed one and forks it.
|
|
3
|
+
* Deprecated `hutly` command from `@intellia/hutly-cli`. Runs `@intellia/cli`
|
|
4
|
+
* with INTELLIA_CLI_INVOKED_AS=hutly, so the CLI warns about the old name and
|
|
5
|
+
* reports it before running the command.
|
|
10
6
|
*/
|
|
11
7
|
|
|
12
8
|
"use strict";
|
|
13
9
|
|
|
14
|
-
const
|
|
15
|
-
"darwin-arm64": { pkg: "@intellia/hutly-cli-darwin-arm64", binRelative: "bin/hutly" },
|
|
16
|
-
"darwin-x64": { pkg: "@intellia/hutly-cli-darwin-x64", binRelative: "bin/hutly" },
|
|
17
|
-
"linux-arm64": { pkg: "@intellia/hutly-cli-linux-arm64", binRelative: "bin/hutly" },
|
|
18
|
-
"linux-x64": { pkg: "@intellia/hutly-cli-linux-x64", binRelative: "bin/hutly" },
|
|
19
|
-
"win32-x64": { pkg: "@intellia/hutly-cli-win32-x64", binRelative: "bin/hutly.exe" },
|
|
20
|
-
};
|
|
10
|
+
const { launch } = require("@intellia/cli/bin/intellia.js");
|
|
21
11
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (!entry) {
|
|
26
|
-
const supported = Object.keys(PLATFORM_MAP).join(", ");
|
|
27
|
-
throw new Error(
|
|
28
|
-
`no @intellia/hutly-cli build for ${key}; supported platforms: ${supported}`,
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
return entry;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
module.exports = { resolveBinaryFor, PLATFORM_MAP };
|
|
35
|
-
|
|
36
|
-
// CLI entry — skip when imported by tests.
|
|
37
|
-
if (require.main === module) {
|
|
38
|
-
const { spawnSync } = require("node:child_process");
|
|
39
|
-
const path = require("node:path");
|
|
40
|
-
try {
|
|
41
|
-
const entry = resolveBinaryFor({
|
|
42
|
-
platform: process.platform,
|
|
43
|
-
arch: process.arch,
|
|
44
|
-
});
|
|
45
|
-
// Use require.resolve so we surface a clear error if the optionalDep
|
|
46
|
-
// wasn't installed (e.g. user is on an unsupported platform and npm
|
|
47
|
-
// skipped it silently).
|
|
48
|
-
let binPath;
|
|
49
|
-
try {
|
|
50
|
-
binPath = require.resolve(`${entry.pkg}/${entry.binRelative}`);
|
|
51
|
-
} catch (e) {
|
|
52
|
-
console.error(
|
|
53
|
-
`error: ${entry.pkg} is not installed. If you installed @intellia/hutly-cli ` +
|
|
54
|
-
`with --no-optional or are on an unsupported platform, please ` +
|
|
55
|
-
`re-install without that flag.`,
|
|
56
|
-
);
|
|
57
|
-
process.exit(127);
|
|
58
|
-
}
|
|
59
|
-
const result = spawnSync(binPath, process.argv.slice(2), {
|
|
60
|
-
stdio: "inherit",
|
|
61
|
-
env: process.env,
|
|
62
|
-
});
|
|
63
|
-
if (result.error) {
|
|
64
|
-
console.error(`error: failed to spawn ${binPath}: ${result.error.message}`);
|
|
65
|
-
process.exit(1);
|
|
66
|
-
}
|
|
67
|
-
// A signal-killed child has status === null and signal set. Map it to the
|
|
68
|
-
// Unix 128 + signum convention so a wrapping script's $? sees the abnormal
|
|
69
|
-
// termination instead of a masked exit 0.
|
|
70
|
-
if (result.signal) {
|
|
71
|
-
const signum = require("node:os").constants.signals[result.signal];
|
|
72
|
-
process.exit(128 + (signum ?? 1));
|
|
73
|
-
}
|
|
74
|
-
process.exit(result.status ?? 0);
|
|
75
|
-
} catch (err) {
|
|
76
|
-
console.error(`error: ${err.message}`);
|
|
77
|
-
process.exit(1);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
12
|
+
process.exit(
|
|
13
|
+
launch(process.argv.slice(2), { ...process.env, INTELLIA_CLI_INVOKED_AS: "hutly" }),
|
|
14
|
+
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intellia/hutly-cli",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "Deprecated: renamed to @intellia/cli. Forwards the `hutly` command to `intellia`.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hutly": "bin/hutly.js"
|
|
7
7
|
},
|
|
@@ -14,16 +14,12 @@
|
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "https://github.com/NexEvol/intellia-monorepo.git",
|
|
17
|
-
"directory": "packages/hutly-cli-npm/
|
|
17
|
+
"directory": "packages/hutly-cli-npm/hutly-forwarder"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=20"
|
|
21
21
|
},
|
|
22
|
-
"
|
|
23
|
-
"@intellia/
|
|
24
|
-
"@intellia/hutly-cli-darwin-x64": "1.4.0",
|
|
25
|
-
"@intellia/hutly-cli-linux-arm64": "1.4.0",
|
|
26
|
-
"@intellia/hutly-cli-linux-x64": "1.4.0",
|
|
27
|
-
"@intellia/hutly-cli-win32-x64": "1.4.0"
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@intellia/cli": "^1.5.0"
|
|
28
24
|
}
|
|
29
25
|
}
|