@ghl-ai/aw 0.1.40-beta.0 → 0.1.40
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/cli.mjs +1 -0
- package/git.mjs +2 -2
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -26,6 +26,7 @@ const COMMANDS = {
|
|
|
26
26
|
nuke: () => import('./commands/nuke.mjs').then(m => m.nukeCommand),
|
|
27
27
|
daemon: () => import('./commands/daemon.mjs').then(m => m.daemonCommand),
|
|
28
28
|
telemetry: () => import('./commands/telemetry.mjs').then(m => m.telemetryCommand),
|
|
29
|
+
'slack-sim': () => import('./commands/slack-sim.mjs').then(m => m.slackSimCommand),
|
|
29
30
|
};
|
|
30
31
|
|
|
31
32
|
function parseArgs(argv) {
|
package/git.mjs
CHANGED
|
@@ -21,7 +21,7 @@ const GIT_NET_ENV = { ...process.env, GIT_TERMINAL_PROMPT: '0' };
|
|
|
21
21
|
* Convert an HTTPS GitHub URL to its SSH equivalent.
|
|
22
22
|
* e.g. https://github.com/Org/Repo.git → git@github.com:Org/Repo.git
|
|
23
23
|
*/
|
|
24
|
-
function toSshUrl(httpsUrl) {
|
|
24
|
+
export function toSshUrl(httpsUrl) {
|
|
25
25
|
const m = httpsUrl.match(/^https:\/\/github\.com\/(.+)$/);
|
|
26
26
|
return m ? `git@github.com:${m[1]}` : httpsUrl;
|
|
27
27
|
}
|
|
@@ -31,7 +31,7 @@ function toSshUrl(httpsUrl) {
|
|
|
31
31
|
* Checks: 1) git insteadOf config 2) gh CLI auth status
|
|
32
32
|
* Returns true if SSH is preferred.
|
|
33
33
|
*/
|
|
34
|
-
function prefersSsh() {
|
|
34
|
+
export function prefersSsh() {
|
|
35
35
|
// Check git url."git@github.com:".insteadOf
|
|
36
36
|
try {
|
|
37
37
|
const out = execSync(
|