@catalyst-cloud/cli 0.9.2 → 0.9.4
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/CHANGELOG.md +14 -0
- package/dist/cli.js +20 -4
- package/dist/config.js +16 -0
- package/dist/execution.js +14 -2
- package/dist/skills.js +13 -1
- package/package.json +1 -1
- package/skills/catalyst-github/SKILL.md +1 -1
- package/skills/catalyst-linear/SKILL.md +1 -1
- package/skills/catalyst-onboard/SKILL.md +50 -34
- package/skills/catalyst-onboard/references/choosing-a-coding-account.md +52 -0
- package/skills/catalyst-onboard/references/declaring-a-repository.md +4 -2
- package/skills/catalyst-onboard/references/replacing-a-credential.md +5 -1
- package/skills/catalyst-onboard/references/the-one-path.md +52 -86
- package/skills/catalyst-onboard/references/what-a-phase-needs.md +1 -1
- package/skills/catalyst-onboard/references/what-the-browser-owns.md +2 -1
- package/skills/catalyst-onboard/references/who-fixes-what.md +4 -3
- package/skills/catalyst-onboard/scripts/lib/cli.mjs +15 -1
- package/skills/catalyst-onboard/scripts/where-am-i.mjs +195 -34
- package/skills/catalyst-setup/SKILL.md +1 -1
- package/skills/connect-me/SKILL.md +1 -1
- package/skills/how-catalyst-works/SKILL.md +1 -1
- package/skills/run-this-project/SKILL.md +1 -1
- package/skills/unstick/SKILL.md +1 -1
- package/skills/what-needs-me/SKILL.md +1 -1
- package/skills/whats-happening/SKILL.md +1 -1
|
@@ -1,147 +1,113 @@
|
|
|
1
1
|
# The one path
|
|
2
2
|
|
|
3
|
-
The steps run in
|
|
3
|
+
The steps run in the order a person can act on them, and the order says why: the coding account first, because nothing runs without one and it needs nothing else; the Linear integration, because the project list cannot be read without it; one project; the GitHub App and the repository it will work in; the person's own connected accounts, GitHub last because a registered repository is the proof the App is usable; the repository's settings file; then the first ticket. Each step is the cheapest place to catch the failure the next one would otherwise hide.
|
|
4
4
|
|
|
5
|
-
Walk them **one at a time**. Before each step say what
|
|
5
|
+
Walk them **one at a time**. Before each step say what it is for, in a sentence, and ask one question or do one thing. After it, show what actually came back. `node scripts/where-am-i.mjs --next` decides which step you are on, never your memory of the last turn. Two or three short sentences per turn is the right size.
|
|
6
6
|
|
|
7
|
-
Each step
|
|
7
|
+
Each step states: what it is for, what you ask or run or hand over, **what you read back to prove it landed**, and **who owns it**.
|
|
8
8
|
|
|
9
|
-
## 0
|
|
9
|
+
## 0. Where are we
|
|
10
10
|
|
|
11
|
-
**For:** starting from the truth instead of
|
|
11
|
+
**For:** starting from the truth instead of an assumption. A person arrives having done anything from nothing to most of it, and the installer has usually connected the machine already.
|
|
12
12
|
|
|
13
|
-
**You run:** `node scripts/where-am-i.mjs
|
|
14
|
-
|
|
15
|
-
**Read back:** the whole thing, as it printed. Then say in one sentence which part is unfinished and whose it is.
|
|
13
|
+
**You run:** `node scripts/where-am-i.mjs --next`. Read the one line, then say in a sentence which step is next and whose it is. Do not paste the full report.
|
|
16
14
|
|
|
17
15
|
**Owner:** you.
|
|
18
16
|
|
|
19
|
-
## 1
|
|
20
|
-
|
|
21
|
-
**For:** giving this machine a credential, so every later read is the person's own.
|
|
22
|
-
|
|
23
|
-
**You run:** `catalyst-skills login`. It prints a short code and a URL. The person approves it in a browser — from a phone, if this machine has none.
|
|
24
|
-
|
|
25
|
-
**Read back:** the `Connected to …` and `Connected as …` lines the command printed, then `node scripts/where-am-i.mjs` again so the machine part flips.
|
|
17
|
+
## 1. Connect this machine
|
|
26
18
|
|
|
27
|
-
**
|
|
19
|
+
**For:** giving this machine a credential, so every later read is the person's own. The installer normally did this; you are here only when the script says the machine is not connected.
|
|
28
20
|
|
|
29
|
-
|
|
21
|
+
**You ask:** "Shall I start the login now?" On a yes, run `catalyst-skills login`. It prints a short code and a URL. The person approves it in a browser, from a phone if this machine has none. Do not offer the key form; it exists for a person who already holds a personal key and says so.
|
|
30
22
|
|
|
31
|
-
|
|
23
|
+
**Read back:** the `Connected to …` and `Connected as …` lines, then the script again so the machine part flips.
|
|
32
24
|
|
|
33
|
-
**
|
|
25
|
+
**Owner:** you run it; the approval is the person's, in a browser, and always will be. Do not re-run the command while a code is outstanding. If it refuses, stop and use the `connect-me` skill.
|
|
34
26
|
|
|
35
|
-
|
|
27
|
+
## 2. A coding account
|
|
36
28
|
|
|
37
|
-
**
|
|
29
|
+
**For:** what the work runs on. Catalyst runs each stage of a ticket on an account the person owns, at their own rate, under their own name. With none enrolled, every later step can be finished and nothing will ever start.
|
|
38
30
|
|
|
39
|
-
**
|
|
31
|
+
**You ask:** "Do you already have a coding account you want Catalyst to run on?" Then `references/choosing-a-coding-account.md`: the four kinds, what each asks for, how to enrol one, and what to do with an account that is out of rotation, needs a new credential, or has ended.
|
|
40
32
|
|
|
41
|
-
|
|
33
|
+
**Read back:** the `coding accounts` part: an enrolled, active account, named by its label. A cancelled or ended one is kept for reporting, not used, never re-tokened, and does not hold this step up.
|
|
42
34
|
|
|
43
|
-
**
|
|
35
|
+
**Owner:** a workspace owner or admin, in a browser, on the AI accounts page. Nothing you run ever sees the credential.
|
|
44
36
|
|
|
45
|
-
|
|
37
|
+
## 3. Connect the Linear integration
|
|
46
38
|
|
|
47
|
-
**
|
|
39
|
+
**For:** the workspace. Until the workspace's Linear connection exists, no project can be read or mapped. Say that this is the one connection the whole workspace shares, made once by an admin.
|
|
48
40
|
|
|
49
|
-
**
|
|
41
|
+
**You hand over:** `<their cloud>/settings/connections` (the Integrations page; Settings labels it Connections today), and say: connect Linear. It sends them to Linear to authorise and brings them back.
|
|
50
42
|
|
|
51
|
-
|
|
43
|
+
**Read back:** after they say it is done, re-run the script and read them the `account` line. A resolved workspace is proof. If it still reads unresolved, run `catalyst-skills contract --refresh` and read it again.
|
|
52
44
|
|
|
53
|
-
**
|
|
45
|
+
**Owner:** a workspace owner or admin, in a browser. **Browser by construction**: it is an authorization grant, and no key can perform one.
|
|
54
46
|
|
|
55
|
-
|
|
47
|
+
## 4. Pick one project, and map its stages
|
|
56
48
|
|
|
57
|
-
**
|
|
49
|
+
**For:** the project. A project is one Linear team plus the repositories registered to it. Until a project's stages are mapped, a card moved into it does nothing at all; this is the single most common reason a new workspace sees no activity.
|
|
58
50
|
|
|
59
|
-
**
|
|
60
|
-
|
|
61
|
-
## 4 — Pick one project, and map its stages
|
|
62
|
-
|
|
63
|
-
**For:** the project grain. A project is one Linear team. Until a project's stages are mapped, a card moved into it does nothing at all — this is the single most common reason a new tenant sees no activity.
|
|
64
|
-
|
|
65
|
-
**You hand over:** `<their cloud>/settings/linear-teams`. They pick one project and press **Map my stages**, or **Adopt the Catalyst workflow** if they want Catalyst's own stages created for them.
|
|
51
|
+
**You hand over:** `<their cloud>/settings/linear-teams`. They pick one team and press **Map my stages**, or **Adopt the Catalyst workflow** if they want Catalyst's stages created for them.
|
|
66
52
|
|
|
67
53
|
**Read back:** re-run the script and read the `projects` line. A project that now appears with a readiness verdict is proof it was saved. Read them the verdict and any failing checks by name.
|
|
68
54
|
|
|
69
|
-
**Owner:** a
|
|
70
|
-
|
|
71
|
-
⭐ **One project at a time is safe, and lead with this.** Mapping one project changes no other project's stages and moves no other project's tickets. Encourage a pilot: pick the project they care least about breaking.
|
|
72
|
-
|
|
73
|
-
## 5 — Install the GitHub App
|
|
74
|
-
|
|
75
|
-
**For:** the account grain again. Without it Catalyst can read tickets but cannot touch code.
|
|
76
|
-
|
|
77
|
-
**You hand over:** `<their cloud>/settings/connections`, and say: install the GitHub App, and grant it the repository they want worked and `<org>/thoughts` (step 5a).
|
|
78
|
-
|
|
79
|
-
**Read back:** it is confirmed by step 6 succeeding — a repository cannot be registered through an app that is not installed. Say that is what you are waiting for rather than claiming you verified it here.
|
|
80
|
-
|
|
81
|
-
**Owner:** a tenant owner or admin, in a browser. **Browser by construction**, same reason as step 3.
|
|
82
|
-
|
|
83
|
-
## 5a — The thoughts repository
|
|
84
|
-
|
|
85
|
-
**For:** Catalyst's cloud phases write their notes to `<org>/thoughts`, where `<org>` is the GitHub org that owns the code repository. If the App cannot reach it, phases run without those notes and nothing says so. **You hand over:** GitHub. Confirm `<org>/thoughts` exists; if not, create a private repository named `thoughts`, initialized with a README. Then, on the GitHub App's installation page for that org, choose All repositories, or add `thoughts` to the selected repositories. **Read back:** once a repository is registered, the script's `repositories` part carries a note from `gh repo view <org>/thoughts`. It shows the repository exists, never that the App can reach it. Say that plainly; never claim App access is verified. **Owner:** an org admin on GitHub, in a browser.
|
|
86
|
-
|
|
87
|
-
## 6 — Register the repository
|
|
55
|
+
**Owner:** a workspace owner or admin. ⛔ Listing the projects and saving a mapping are settings-page work today; a key cannot do either yet. Say that plainly; it is a gap in the product, not something they did wrong.
|
|
88
56
|
|
|
89
|
-
**
|
|
57
|
+
⭐ **One project at a time is safe, and lead with this.** Mapping one project changes no other project's stages and moves no other project's tickets. Encourage a pilot: the project they care least about breaking.
|
|
90
58
|
|
|
91
|
-
|
|
59
|
+
## 5. Install the GitHub App
|
|
92
60
|
|
|
93
|
-
**
|
|
61
|
+
**For:** the workspace's GitHub integration. Without it Catalyst can read tickets but cannot touch code.
|
|
94
62
|
|
|
95
|
-
**
|
|
63
|
+
**You hand over:** the same Connections page, and say: install the GitHub App, and grant it the repository they want worked and `<org>/thoughts`. Catalyst's cloud phases write their notes to `<org>/thoughts`, where `<org>` owns the code repository. If it does not exist, they create a private repository named `thoughts`, initialized with a README, and then on the App's installation page for that org choose All repositories, or add `thoughts` to the selected repositories. The script's `repositories` part notes whether `gh` can see that repository, never that the App can reach it, so do not claim that.
|
|
96
64
|
|
|
97
|
-
|
|
65
|
+
**Read back:** it is confirmed by step 6 succeeding. A repository cannot be registered through an App that is not installed. Say that is what you are waiting for.
|
|
98
66
|
|
|
99
|
-
**
|
|
67
|
+
**Owner:** a workspace owner or admin, in a browser. Browser by construction, same reason as step 3.
|
|
100
68
|
|
|
101
|
-
##
|
|
69
|
+
## 6. Register the repository
|
|
102
70
|
|
|
103
|
-
**For:** the
|
|
71
|
+
**For:** the repository. Registering, attached to a project, is what makes a repository something that project can dispatch work into.
|
|
104
72
|
|
|
105
|
-
You
|
|
73
|
+
**You hand over:** `<their cloud>/settings/repositories`, and say: add the repository, **and attach it to the project you mapped in step 4**, in the same form.
|
|
106
74
|
|
|
107
|
-
**
|
|
75
|
+
**Read back:** re-run the script and read the `repositories` line. The repository appearing there proves it was registered, and only that; see `references/who-fixes-what.md` for what registration does not prove.
|
|
108
76
|
|
|
109
|
-
|
|
77
|
+
**Owner:** a workspace owner or admin. ⛔ Registering is settings-page work today. ⛔ A repository registered without a project attached is the trap: the call succeeds, the repository is listed, and nothing can ever dispatch into it.
|
|
110
78
|
|
|
111
|
-
|
|
112
|
-
catalyst-skills environment propose --file declaration.json
|
|
113
|
-
```
|
|
79
|
+
## 7. Connect your own accounts
|
|
114
80
|
|
|
115
|
-
|
|
81
|
+
**For:** the person. The integrations serve the whole workspace; a connected account is this person's own Linear or GitHub login, so that what Catalyst does for them is attributed to them, and asks assigned to them can be told apart from everyone else's.
|
|
116
82
|
|
|
117
|
-
**
|
|
83
|
+
**You run:** `catalyst-skills connections personal linear start`. It prints a short-lived URL and tries to open it; if the browser does not open, hand them the URL. Then `catalyst-skills connections personal linear status`. Do GitHub the same way, with `github`, only after the GitHub App is installed and the repository is registered: `catalyst-skills connections personal github start`, then `status`.
|
|
118
84
|
|
|
119
|
-
**
|
|
85
|
+
**Read back:** each `status`, and the script's `person` part: their label and role, whether their Linear identity is matched, and each grant. A URL opening is not proof a grant landed. If Linear identity stays unmatched after consent, `catalyst-skills identity linear status`, then `options`; the person picks their own listed identity and you run `catalyst-skills identity linear set <linearUserId>`. An already-resolved or claimed identity, and an inactive seat, need an owner or admin.
|
|
120
86
|
|
|
121
|
-
|
|
87
|
+
**Owner:** you start and check; the person approves in a browser.
|
|
122
88
|
|
|
123
|
-
|
|
89
|
+
## 8. The repository's settings file
|
|
124
90
|
|
|
125
|
-
|
|
91
|
+
**For:** the repository's own settings, in `.catalyst/catalyst.toml` on its default branch: the Linear team it belongs to, the names of the variables and secrets its build needs, and its setup commands. Names leave the machine; values are entered once, by them, in the app.
|
|
126
92
|
|
|
127
|
-
**
|
|
93
|
+
**You ask:** one thing at a time. First: "Shall I draft it from your repository's own build files?" On a yes, ask where the repository is checked out on this machine; if it is not, write the file here for them to add. Then `references/declaring-a-repository.md`: the inventory, the file's shape, the pull request. Say what happens after the merge as context, not as a second task for now. After the merge, an owner or admin approves the revision on the repository's Environment page (Settings → Repositories → the repository → Environment → Setup declaration → Approve this revision) and enters the values on the same page. A workspace-wide declaration, if they want one, goes through `catalyst-skills environment` (read, propose, `--approve`), the one setup write you can perform.
|
|
128
94
|
|
|
129
|
-
**
|
|
95
|
+
**Read back:** the script's `repository declarations` part, read from each project's `environment_declared` check: no file yet, invalid, awaiting approval, or in effect, per repository. Names only, never a value.
|
|
130
96
|
|
|
131
|
-
|
|
97
|
+
**Owner:** the person, with you, in the repository; a workspace owner or admin for the approval.
|
|
132
98
|
|
|
133
|
-
## 9
|
|
99
|
+
## 9. Verify, then run the first ticket
|
|
134
100
|
|
|
135
101
|
**For:** the only thing that proves setup worked.
|
|
136
102
|
|
|
137
|
-
**You run:** `catalyst-skills ready`. Its READY does not cover
|
|
103
|
+
**You run:** `catalyst-skills ready`. Its READY does not cover the coding account or the host; the script does. Read them the verdict and every failing line with its own fix and owner. If it says NOT READY, go to `references/who-fixes-what.md` before you touch anything.
|
|
138
104
|
|
|
139
|
-
**Then:**
|
|
105
|
+
**Then:** ask them to move one card into the project's start stage (usually Todo) and tell you which ticket it was. That is the whole question; do not offer to explain the pipeline or to search the backlog instead. Then watch. `catalyst-skills explain <ticket>` says why it is or is not about to run. If they opted into local sync, use the optional first-event check in `references/local-sync.md`.
|
|
140
106
|
|
|
141
|
-
**Read back:** what `explain` actually said. If
|
|
107
|
+
**Read back:** what `explain` actually said, and the first comment the agent leaves on the ticket. If `explain` says the ticket cannot start, the reason it names is the answer; use the `how-catalyst-works` skill for what it means, then `unstick` if something is holding it.
|
|
142
108
|
|
|
143
|
-
**Owner:** the card move is theirs. The verdict is the
|
|
109
|
+
**Owner:** the card move is theirs. The verdict is the workspace's.
|
|
144
110
|
|
|
145
111
|
## When you are done
|
|
146
112
|
|
|
147
|
-
Say what is set up, name anything still unfinished with its owner, and never say work can run while the `coding accounts` or `host` part is unfinished
|
|
113
|
+
Say what is set up, name anything still unfinished with its owner, and never say work can run while the `coding accounts` or `host` part is unfinished. Tell them the standing question "am I set up?" now belongs to the `catalyst-setup` skill, and "what's happening?" to `whats-happening`. You do not need to be invoked again.
|
|
@@ -17,7 +17,7 @@ A person can finish every other step and still see nothing run. A phase needs tw
|
|
|
17
17
|
| `inactive` | accounts exist, but every one is out of rotation | reactivate one on the page. Never tell them to enrol another |
|
|
18
18
|
| `unread` | the cloud could not read the accounts | say it could not be read. It is not "no accounts". Do not tell them to enrol one; read it again later |
|
|
19
19
|
|
|
20
|
-
**Owner:** the one the contract names. The person does it in the browser. Never ask for the credential, and never handle it. A key cannot enrol one.
|
|
20
|
+
**Owner:** the one the contract names. The person does it in the browser. Never ask for the credential, and never handle it. A key cannot enrol one. Which kinds of account exist, what each asks for, and what to do with an ended or cancelled one are in `references/choosing-a-coding-account.md`; it is step 2 of the path, the first thing asked.
|
|
21
21
|
|
|
22
22
|
**Older cloud:** if the contract has no `codingAccounts`, the script says the cloud is older and reads `catalyst-skills accounts` instead. That list counts the accounts enrolled and the ones able to take work. An expired, revoked or quarantined account does not count. The owner is then a tenant owner or admin, at `<their cloud>/settings/coding-accounts`.
|
|
23
23
|
|
|
@@ -9,7 +9,8 @@ These will never be a command, on any release. Each is an authorization a person
|
|
|
9
9
|
| step | where | what you say |
|
|
10
10
|
| -- | -- | -- |
|
|
11
11
|
| approving the login | the URL and short code that `catalyst-skills login` printed | "I have started the login. It printed this code and this URL — approve it in your browser, or on your phone, and tell me when it is done." |
|
|
12
|
-
|
|
|
12
|
+
| enrolling a coding account, or replacing its credential | the AI accounts page the script printed for the `coding accounts` part | "Choose the provider, give the account a label you will recognise, and paste the credential the page asks for. Nothing on this side sees it. Tell me when it is saved and I will read it back." |
|
|
13
|
+
| connecting the Linear integration | `<their cloud>/settings/connections` (the Integrations page; Settings labels it Connections today) | "Open this page and connect Linear. It will send you to Linear to authorize it and bring you back." |
|
|
13
14
|
| installing the GitHub App | `<their cloud>/settings/connections` | "Open the same page and install the GitHub App, granting it the repository you want worked and `<your GitHub org>/thoughts`." |
|
|
14
15
|
| creating or confirming `<your GitHub org>/thoughts`, and letting the GitHub App reach it | GitHub, then the GitHub App's installation page for that org | "Catalyst's cloud phases write their notes to `<your GitHub org>/thoughts`, in the org that owns the code repository. Check it exists. If not, create a private repository named `thoughts`, initialized with a README. Then, on the GitHub App's installation page for that org, choose All repositories, or add `thoughts` to the selected repositories." |
|
|
15
16
|
| connecting personal Linear | the URL printed by `catalyst-skills connections personal linear start` | "Approve your own Linear account in this browser. I will check the grant status afterward." |
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Who fixes what
|
|
2
2
|
|
|
3
|
-
Setup is
|
|
3
|
+
Setup is eight parts. Each has one instrument, and each instrument answers about its own part and nothing else. Read this before you tell a person that something is not ready, and before you tell them to do anything about it. The product's words for what they own are Workspace, Project, Repository, Integration, Connected account and Member; the parts below are the instruments' names for the same things.
|
|
4
4
|
|
|
5
|
-
## The
|
|
5
|
+
## The eight parts, and the instrument that owns each
|
|
6
6
|
|
|
7
7
|
| part | instrument | what a pass proves | what it does **not** prove | who fixes a failure, and where |
|
|
8
8
|
| -- | -- | -- | -- | -- |
|
|
@@ -12,9 +12,10 @@ Setup is seven parts. Each has one instrument, and each instrument answers about
|
|
|
12
12
|
| **project** | `catalyst-skills contract --path teams`, and the `team:` checks of `ready` | for each project **that has been mapped**: its readiness verdict and each failing check by name | that this is every project they have — see below | a tenant owner or admin, `<their cloud>/settings/linear-teams` |
|
|
13
13
|
| **repository** | `catalyst-skills contract --path merge.repositories` | the repository is registered to the account | that it is active, that a project can dispatch into it, or that its environment is declared | a tenant owner or admin, `<their cloud>/settings/repositories` |
|
|
14
14
|
| **coding accounts** | `codingAccounts` in `catalyst-skills contract` (`catalyst-skills accounts` on an older cloud) | an account is enrolled and active | that it has headroom left for the next phase | the enroller and page the contract names; see `references/what-a-phase-needs.md` |
|
|
15
|
+
| **repository declarations** | the `environment_declared` check in `catalyst-skills contract --path teams`, and its per-repository notes | the project's default repository has a committed `.catalyst/catalyst.toml` in effect: ingested, valid, and its latest revision approved | that the values the names refer to exist; that any other repository is declared, unless its note says so | the person, with you, in the repository for the file; a tenant owner or admin for the approval, at the repository's Environment page under `<their cloud>/settings/repositories` |
|
|
15
16
|
| **host** | the `hosts_current` check in `catalyst-skills contract --path teams` | no host is missing or behind, or the tenant runs none | anything before a project has been checked | the owner the contract names for `hosts_current`; see `references/what-a-phase-needs.md` |
|
|
16
17
|
|
|
17
|
-
`node scripts/where-am-i.mjs` runs all
|
|
18
|
+
`node scripts/where-am-i.mjs` runs all eight, in the order a person can act on them, and labels each finding with its part. Use it rather than composing this by hand.
|
|
18
19
|
|
|
19
20
|
## The two silences that are not absences
|
|
20
21
|
|
|
@@ -34,9 +34,23 @@ export function tryLoadConfig() {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
/** The recorded CLI path, credential or no credential: a machine that was connected once and is now
|
|
38
|
+
* logged out still has its CLI, and `status` on it is the honest first reading. Null when the config
|
|
39
|
+
* is absent or unreadable. */
|
|
40
|
+
function recordedCliPath() {
|
|
41
|
+
try {
|
|
42
|
+
const raw = JSON.parse(readFileSync(configPath(), "utf8"));
|
|
43
|
+
return typeof raw.cliPath === "string" && existsSync(raw.cliPath) ? raw.cliPath : null;
|
|
44
|
+
} catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
37
49
|
/** Where the CLI is on this machine: the path login recorded when it still exists, else npx. */
|
|
38
50
|
export function cliTarget(cfg = tryLoadConfig()) {
|
|
39
|
-
const
|
|
51
|
+
const recordedPath = cfg !== null && typeof cfg.cliPath === "string" && existsSync(cfg.cliPath) ? cfg.cliPath : recordedCliPath();
|
|
52
|
+
if (recordedPath !== null) cfg = { ...(cfg ?? {}), cliPath: recordedPath };
|
|
53
|
+
const recorded = recordedPath !== null;
|
|
40
54
|
return recorded
|
|
41
55
|
? { command: process.execPath, prefix: [cfg.cliPath], via: `node ${cfg.cliPath}`, recorded: true }
|
|
42
56
|
: { command: "npx", prefix: [PACKAGE], via: `npx ${PACKAGE}`, recorded: false };
|