@enterpriseai/cli 3.6.7 → 3.6.8
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 +28 -8
- package/package.json +7 -4
- package/resources/gofer/agents-skills/0_gofer_start/SKILL.md +4 -3
- package/resources/gofer/agents-skills/gofer_eai_first_run/SKILL.md +5 -4
- package/resources/gofer/claude-commands/0_gofer_start.md +4 -3
- package/resources/gofer/claude-commands/gofer_eai_first_run.md +5 -4
- package/resources/gofer/commands/0_gofer_start.md +4 -3
- package/resources/gofer/commands/gofer_eai_first_run.md +5 -4
- package/resources/gofer/copilot-prompts/0_gofer_start.prompt.md +4 -3
- package/resources/gofer/copilot-prompts/gofer_eai_first_run.prompt.md +5 -4
- package/resources/gofer/gemini/commands/gofer/0_gofer_start.md +4 -3
- package/resources/gofer/gemini/commands/gofer/gofer_eai_first_run.md +5 -4
- package/resources/gofer/references/platform/eai-error-catalog.yaml +2 -2
- package/resources/gofer/specify-commands/0_gofer_start.md +4 -3
- package/resources/gofer/specify-commands/gofer_eai_first_run.md +5 -4
- package/resources/gofer/system-skills/0_gofer_start/SKILL.md +4 -3
- package/resources/gofer/system-skills/gofer_eai_first_run/SKILL.md +5 -4
package/README.md
CHANGED
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
# eai —
|
|
1
|
+
# eai — EnterpriseAI CLI
|
|
2
2
|
|
|
3
3
|
[](https://github.com/eai-tools/eai/actions/workflows/ci.yml)
|
|
4
4
|
[](https://securityscorecards.dev/viewer/?uri=github.com/eai-tools/eai)
|
|
5
5
|
[](https://github.com/eai-tools/eai/actions/workflows/docs.yml)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
|
|
8
|
-
Scaffold,
|
|
8
|
+
Scaffold, configure, validate, and operate EAI applications from a developer
|
|
9
|
+
terminal.
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
The CLI gives teams a supported path for application setup, authentication,
|
|
12
|
+
tenant selection, runtime validation, resource management, and deployment
|
|
13
|
+
readiness. It keeps platform access behind authenticated commands and
|
|
14
|
+
public-safe diagnostics, so developers and AI coding agents get useful next
|
|
15
|
+
steps without exposing private infrastructure details.
|
|
16
|
+
|
|
17
|
+
## Package Trust
|
|
18
|
+
|
|
19
|
+
This package is intended for public npm installation in enterprise developer
|
|
20
|
+
workstations, CI agents, Codespaces, and other controlled engineering
|
|
21
|
+
environments.
|
|
22
|
+
|
|
23
|
+
| Trust Signal | Status |
|
|
24
|
+
|--------------|--------|
|
|
25
|
+
| License | Apache-2.0 |
|
|
26
|
+
| Source | Public GitHub repository with issues, releases, and CI |
|
|
27
|
+
| Publishing | GitHub Actions trusted publishing with npm provenance |
|
|
28
|
+
| Runtime | Node.js 20 or newer |
|
|
29
|
+
| Secrets | No secrets, tenant credentials, or local environment files are committed or published |
|
|
30
|
+
| Support | Security issues are handled through [SECURITY.md](SECURITY.md); product issues through GitHub Issues |
|
|
11
31
|
|
|
12
32
|
## Public Repository
|
|
13
33
|
|
|
@@ -19,17 +39,17 @@ and find the maintained documentation.
|
|
|
19
39
|
|---------|-----|---------|
|
|
20
40
|
| Source | https://github.com/eai-tools/eai | CLI source, issues, pull requests, and release tags |
|
|
21
41
|
| Documentation | https://eai-tools.github.io/eai/ | Docusaurus documentation, scenarios, and command reference |
|
|
22
|
-
| npmjs packages | https://www.npmjs.com/package/eai-cli | Primary install/update channel for the `eai` command |
|
|
42
|
+
| npmjs packages | https://www.npmjs.com/package/eai-cli and https://www.npmjs.com/package/@enterpriseai/cli | Primary install/update channel for the `eai` command |
|
|
23
43
|
| Static npm registry fallback | https://eai-tools.github.io/eai/registry/ | GitHub Pages fallback for `@enterpriseai/cli` when npmjs is unavailable |
|
|
24
44
|
| Releases | https://github.com/eai-tools/eai/releases | Versioned GitHub releases and packaged tarballs |
|
|
25
45
|
| Security | [SECURITY.md](SECURITY.md) | Private vulnerability reporting and supported versions |
|
|
26
46
|
| Contributing | [CONTRIBUTING.md](CONTRIBUTING.md) | Public-safe contribution and release workflow |
|
|
27
47
|
| License | [Apache-2.0](LICENSE) | Open source license and patent grant |
|
|
28
48
|
|
|
29
|
-
Public-readiness rule for maintainers: everything committed here
|
|
49
|
+
Public-readiness rule for maintainers: everything committed here must be safe
|
|
30
50
|
for a public audience. Do not commit secrets, customer data, private tenant
|
|
31
|
-
details, local `.env` files, unpublished internal architecture notes,
|
|
32
|
-
temporary build output.
|
|
51
|
+
details, local `.env` files, unpublished internal architecture notes, private
|
|
52
|
+
environment URLs, or temporary build output.
|
|
33
53
|
|
|
34
54
|
Generated Gofer specs, memory files, logs, checkpoints, and local runtime state
|
|
35
55
|
are intentionally ignored. The committed `.specify` directory contains only the
|
|
@@ -91,7 +111,7 @@ eai tenant select
|
|
|
91
111
|
# The child home region defaults to the parent region; pass
|
|
92
112
|
# `--home-region au|ca|eu` when the child must use another region.
|
|
93
113
|
|
|
94
|
-
# 5. Sync project environment if your app needs local
|
|
114
|
+
# 5. Sync project environment if your app needs local configuration
|
|
95
115
|
eai env pull --include-secrets
|
|
96
116
|
|
|
97
117
|
# 6. Define your data model
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enterpriseai/cli",
|
|
3
|
-
"version": "3.6.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.6.8",
|
|
4
|
+
"description": "EnterpriseAI CLI for app setup, validation, deployment readiness, and platform operations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"eai": "dist/index.js"
|
|
@@ -43,14 +43,17 @@
|
|
|
43
43
|
"NOTICE"
|
|
44
44
|
],
|
|
45
45
|
"keywords": [
|
|
46
|
+
"enterpriseai",
|
|
47
|
+
"eai",
|
|
46
48
|
"cli",
|
|
47
49
|
"enterprise",
|
|
48
50
|
"ai",
|
|
49
51
|
"application",
|
|
50
52
|
"platform",
|
|
51
|
-
"
|
|
53
|
+
"developer-tools",
|
|
54
|
+
"deployment",
|
|
52
55
|
"typescript",
|
|
53
|
-
"
|
|
56
|
+
"automation"
|
|
54
57
|
],
|
|
55
58
|
"author": "EAI Tools",
|
|
56
59
|
"license": "Apache-2.0",
|
|
@@ -147,11 +147,12 @@ with an unrelated non-EAI stack.
|
|
|
147
147
|
updating the Gofer plugin.
|
|
148
148
|
3. **Install or update the EAI CLI when needed**
|
|
149
149
|
- Check `git --version`, `node --version`, `npm --version`, `npm config get
|
|
150
|
-
@
|
|
150
|
+
@enterpriseai:registry`, and `eai --version`.
|
|
151
151
|
- If `eai` is missing and the user approves, install it:
|
|
152
152
|
```bash
|
|
153
|
-
npm
|
|
154
|
-
|
|
153
|
+
npm install -g eai-cli
|
|
154
|
+
# If npmjs is unavailable:
|
|
155
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
155
156
|
eai --version
|
|
156
157
|
```
|
|
157
158
|
- On Windows, use the same npm commands in PowerShell and avoid shell
|
|
@@ -69,7 +69,7 @@ Run only safe read/check commands first:
|
|
|
69
69
|
| Node.js | `node --version` | `node --version` |
|
|
70
70
|
| npm | `npm --version` | `npm --version` |
|
|
71
71
|
| EAI CLI | `eai --version` | `eai --version` |
|
|
72
|
-
| Registry | `npm config get @
|
|
72
|
+
| Registry | `npm config get @enterpriseai:registry` | `npm config get @enterpriseai:registry` |
|
|
73
73
|
|
|
74
74
|
If Git, Node.js, or npm is missing, ask before installing. Use the least
|
|
75
75
|
surprising platform path:
|
|
@@ -89,14 +89,15 @@ or assume Git Bash exists unless it was detected.
|
|
|
89
89
|
If `eai` is missing, or if the user asks to update it, ask for approval and run:
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
npm
|
|
93
|
-
|
|
92
|
+
npm install -g eai-cli
|
|
93
|
+
# If npmjs is unavailable:
|
|
94
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
94
95
|
eai --version
|
|
95
96
|
```
|
|
96
97
|
|
|
97
98
|
Use the same commands in PowerShell. Do not edit `.npmrc` by shell redirection.
|
|
98
99
|
|
|
99
|
-
|
|
100
|
+
Use the static fallback command only when npmjs is unavailable. If `npm config get @enterpriseai:registry` already equals
|
|
100
101
|
`https://eai-tools.github.io/eai/registry/`, do not rewrite it. If it points
|
|
101
102
|
somewhere else, show the current value and ask before changing it.
|
|
102
103
|
|
|
@@ -142,11 +142,12 @@ with an unrelated non-EAI stack.
|
|
|
142
142
|
updating the Gofer plugin.
|
|
143
143
|
3. **Install or update the EAI CLI when needed**
|
|
144
144
|
- Check `git --version`, `node --version`, `npm --version`, `npm config get
|
|
145
|
-
@
|
|
145
|
+
@enterpriseai:registry`, and `eai --version`.
|
|
146
146
|
- If `eai` is missing and the user approves, install it:
|
|
147
147
|
```bash
|
|
148
|
-
npm
|
|
149
|
-
|
|
148
|
+
npm install -g eai-cli
|
|
149
|
+
# If npmjs is unavailable:
|
|
150
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
150
151
|
eai --version
|
|
151
152
|
```
|
|
152
153
|
- On Windows, use the same npm commands in PowerShell and avoid shell
|
|
@@ -64,7 +64,7 @@ Run only safe read/check commands first:
|
|
|
64
64
|
| Node.js | `node --version` | `node --version` |
|
|
65
65
|
| npm | `npm --version` | `npm --version` |
|
|
66
66
|
| EAI CLI | `eai --version` | `eai --version` |
|
|
67
|
-
| Registry | `npm config get @
|
|
67
|
+
| Registry | `npm config get @enterpriseai:registry` | `npm config get @enterpriseai:registry` |
|
|
68
68
|
|
|
69
69
|
If Git, Node.js, or npm is missing, ask before installing. Use the least
|
|
70
70
|
surprising platform path:
|
|
@@ -84,14 +84,15 @@ or assume Git Bash exists unless it was detected.
|
|
|
84
84
|
If `eai` is missing, or if the user asks to update it, ask for approval and run:
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
npm
|
|
88
|
-
|
|
87
|
+
npm install -g eai-cli
|
|
88
|
+
# If npmjs is unavailable:
|
|
89
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
89
90
|
eai --version
|
|
90
91
|
```
|
|
91
92
|
|
|
92
93
|
Use the same commands in PowerShell. Do not edit `.npmrc` by shell redirection.
|
|
93
94
|
|
|
94
|
-
|
|
95
|
+
Use the static fallback command only when npmjs is unavailable. If `npm config get @enterpriseai:registry` already equals
|
|
95
96
|
`https://eai-tools.github.io/eai/registry/`, do not rewrite it. If it points
|
|
96
97
|
somewhere else, show the current value and ask before changing it.
|
|
97
98
|
|
|
@@ -159,11 +159,12 @@ with an unrelated non-EAI stack.
|
|
|
159
159
|
updating the Gofer plugin.
|
|
160
160
|
3. **Install or update the EAI CLI when needed**
|
|
161
161
|
- Check `git --version`, `node --version`, `npm --version`, `npm config get
|
|
162
|
-
@
|
|
162
|
+
@enterpriseai:registry`, and `eai --version`.
|
|
163
163
|
- If `eai` is missing and the user approves, install it:
|
|
164
164
|
```bash
|
|
165
|
-
npm
|
|
166
|
-
|
|
165
|
+
npm install -g eai-cli
|
|
166
|
+
# If npmjs is unavailable:
|
|
167
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
167
168
|
eai --version
|
|
168
169
|
```
|
|
169
170
|
- On Windows, use the same npm commands in PowerShell and avoid shell
|
|
@@ -64,7 +64,7 @@ Run only safe read/check commands first:
|
|
|
64
64
|
| Node.js | `node --version` | `node --version` |
|
|
65
65
|
| npm | `npm --version` | `npm --version` |
|
|
66
66
|
| EAI CLI | `eai --version` | `eai --version` |
|
|
67
|
-
| Registry | `npm config get @
|
|
67
|
+
| Registry | `npm config get @enterpriseai:registry` | `npm config get @enterpriseai:registry` |
|
|
68
68
|
|
|
69
69
|
If Git, Node.js, or npm is missing, ask before installing. Use the least
|
|
70
70
|
surprising platform path:
|
|
@@ -84,14 +84,15 @@ or assume Git Bash exists unless it was detected.
|
|
|
84
84
|
If `eai` is missing, or if the user asks to update it, ask for approval and run:
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
npm
|
|
88
|
-
|
|
87
|
+
npm install -g eai-cli
|
|
88
|
+
# If npmjs is unavailable:
|
|
89
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
89
90
|
eai --version
|
|
90
91
|
```
|
|
91
92
|
|
|
92
93
|
Use the same commands in PowerShell. Do not edit `.npmrc` by shell redirection.
|
|
93
94
|
|
|
94
|
-
|
|
95
|
+
Use the static fallback command only when npmjs is unavailable. If `npm config get @enterpriseai:registry` already equals
|
|
95
96
|
`https://eai-tools.github.io/eai/registry/`, do not rewrite it. If it points
|
|
96
97
|
somewhere else, show the current value and ask before changing it.
|
|
97
98
|
|
|
@@ -157,11 +157,12 @@ with an unrelated non-EAI stack.
|
|
|
157
157
|
updating the Gofer plugin.
|
|
158
158
|
3. **Install or update the EAI CLI when needed**
|
|
159
159
|
- Check `git --version`, `node --version`, `npm --version`, `npm config get
|
|
160
|
-
@
|
|
160
|
+
@enterpriseai:registry`, and `eai --version`.
|
|
161
161
|
- If `eai` is missing and the user approves, install it:
|
|
162
162
|
```bash
|
|
163
|
-
npm
|
|
164
|
-
|
|
163
|
+
npm install -g eai-cli
|
|
164
|
+
# If npmjs is unavailable:
|
|
165
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
165
166
|
eai --version
|
|
166
167
|
```
|
|
167
168
|
- On Windows, use the same npm commands in PowerShell and avoid shell
|
|
@@ -82,7 +82,7 @@ Run only safe read/check commands first:
|
|
|
82
82
|
| Node.js | `node --version` | `node --version` |
|
|
83
83
|
| npm | `npm --version` | `npm --version` |
|
|
84
84
|
| EAI CLI | `eai --version` | `eai --version` |
|
|
85
|
-
| Registry | `npm config get @
|
|
85
|
+
| Registry | `npm config get @enterpriseai:registry` | `npm config get @enterpriseai:registry` |
|
|
86
86
|
|
|
87
87
|
If Git, Node.js, or npm is missing, ask before installing. Use the least
|
|
88
88
|
surprising platform path:
|
|
@@ -102,14 +102,15 @@ or assume Git Bash exists unless it was detected.
|
|
|
102
102
|
If `eai` is missing, or if the user asks to update it, ask for approval and run:
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
|
-
npm
|
|
106
|
-
|
|
105
|
+
npm install -g eai-cli
|
|
106
|
+
# If npmjs is unavailable:
|
|
107
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
107
108
|
eai --version
|
|
108
109
|
```
|
|
109
110
|
|
|
110
111
|
Use the same commands in PowerShell. Do not edit `.npmrc` by shell redirection.
|
|
111
112
|
|
|
112
|
-
|
|
113
|
+
Use the static fallback command only when npmjs is unavailable. If `npm config get @enterpriseai:registry` already equals
|
|
113
114
|
`https://eai-tools.github.io/eai/registry/`, do not rewrite it. If it points
|
|
114
115
|
somewhere else, show the current value and ask before changing it.
|
|
115
116
|
|
|
@@ -142,11 +142,12 @@ with an unrelated non-EAI stack.
|
|
|
142
142
|
updating the Gofer plugin.
|
|
143
143
|
3. **Install or update the EAI CLI when needed**
|
|
144
144
|
- Check `git --version`, `node --version`, `npm --version`, `npm config get
|
|
145
|
-
@
|
|
145
|
+
@enterpriseai:registry`, and `eai --version`.
|
|
146
146
|
- If `eai` is missing and the user approves, install it:
|
|
147
147
|
```bash
|
|
148
|
-
npm
|
|
149
|
-
|
|
148
|
+
npm install -g eai-cli
|
|
149
|
+
# If npmjs is unavailable:
|
|
150
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
150
151
|
eai --version
|
|
151
152
|
```
|
|
152
153
|
- On Windows, use the same npm commands in PowerShell and avoid shell
|
|
@@ -64,7 +64,7 @@ Run only safe read/check commands first:
|
|
|
64
64
|
| Node.js | `node --version` | `node --version` |
|
|
65
65
|
| npm | `npm --version` | `npm --version` |
|
|
66
66
|
| EAI CLI | `eai --version` | `eai --version` |
|
|
67
|
-
| Registry | `npm config get @
|
|
67
|
+
| Registry | `npm config get @enterpriseai:registry` | `npm config get @enterpriseai:registry` |
|
|
68
68
|
|
|
69
69
|
If Git, Node.js, or npm is missing, ask before installing. Use the least
|
|
70
70
|
surprising platform path:
|
|
@@ -84,14 +84,15 @@ or assume Git Bash exists unless it was detected.
|
|
|
84
84
|
If `eai` is missing, or if the user asks to update it, ask for approval and run:
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
npm
|
|
88
|
-
|
|
87
|
+
npm install -g eai-cli
|
|
88
|
+
# If npmjs is unavailable:
|
|
89
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
89
90
|
eai --version
|
|
90
91
|
```
|
|
91
92
|
|
|
92
93
|
Use the same commands in PowerShell. Do not edit `.npmrc` by shell redirection.
|
|
93
94
|
|
|
94
|
-
|
|
95
|
+
Use the static fallback command only when npmjs is unavailable. If `npm config get @enterpriseai:registry` already equals
|
|
95
96
|
`https://eai-tools.github.io/eai/registry/`, do not rewrite it. If it points
|
|
96
97
|
somewhere else, show the current value and ask before changing it.
|
|
97
98
|
|
|
@@ -8,8 +8,8 @@ catalog:
|
|
|
8
8
|
meaning: EAI CLI is not installed or not on PATH.
|
|
9
9
|
likelyCause: Local workstation or container is missing the CLI.
|
|
10
10
|
recovery:
|
|
11
|
-
- 'npm
|
|
12
|
-
- 'npm install -g @eai-tools/
|
|
11
|
+
- 'npm install -g eai-cli'
|
|
12
|
+
- 'If npmjs is unavailable: npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/'
|
|
13
13
|
- 'eai --version'
|
|
14
14
|
nextGate: cli_installed
|
|
15
15
|
- errorId: EAI_CLI_OUTDATED
|
|
@@ -159,11 +159,12 @@ with an unrelated non-EAI stack.
|
|
|
159
159
|
updating the Gofer plugin.
|
|
160
160
|
3. **Install or update the EAI CLI when needed**
|
|
161
161
|
- Check `git --version`, `node --version`, `npm --version`, `npm config get
|
|
162
|
-
@
|
|
162
|
+
@enterpriseai:registry`, and `eai --version`.
|
|
163
163
|
- If `eai` is missing and the user approves, install it:
|
|
164
164
|
```bash
|
|
165
|
-
npm
|
|
166
|
-
|
|
165
|
+
npm install -g eai-cli
|
|
166
|
+
# If npmjs is unavailable:
|
|
167
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
167
168
|
eai --version
|
|
168
169
|
```
|
|
169
170
|
- On Windows, use the same npm commands in PowerShell and avoid shell
|
|
@@ -64,7 +64,7 @@ Run only safe read/check commands first:
|
|
|
64
64
|
| Node.js | `node --version` | `node --version` |
|
|
65
65
|
| npm | `npm --version` | `npm --version` |
|
|
66
66
|
| EAI CLI | `eai --version` | `eai --version` |
|
|
67
|
-
| Registry | `npm config get @
|
|
67
|
+
| Registry | `npm config get @enterpriseai:registry` | `npm config get @enterpriseai:registry` |
|
|
68
68
|
|
|
69
69
|
If Git, Node.js, or npm is missing, ask before installing. Use the least
|
|
70
70
|
surprising platform path:
|
|
@@ -84,14 +84,15 @@ or assume Git Bash exists unless it was detected.
|
|
|
84
84
|
If `eai` is missing, or if the user asks to update it, ask for approval and run:
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
npm
|
|
88
|
-
|
|
87
|
+
npm install -g eai-cli
|
|
88
|
+
# If npmjs is unavailable:
|
|
89
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
89
90
|
eai --version
|
|
90
91
|
```
|
|
91
92
|
|
|
92
93
|
Use the same commands in PowerShell. Do not edit `.npmrc` by shell redirection.
|
|
93
94
|
|
|
94
|
-
|
|
95
|
+
Use the static fallback command only when npmjs is unavailable. If `npm config get @enterpriseai:registry` already equals
|
|
95
96
|
`https://eai-tools.github.io/eai/registry/`, do not rewrite it. If it points
|
|
96
97
|
somewhere else, show the current value and ask before changing it.
|
|
97
98
|
|
|
@@ -147,11 +147,12 @@ with an unrelated non-EAI stack.
|
|
|
147
147
|
updating the Gofer plugin.
|
|
148
148
|
3. **Install or update the EAI CLI when needed**
|
|
149
149
|
- Check `git --version`, `node --version`, `npm --version`, `npm config get
|
|
150
|
-
@
|
|
150
|
+
@enterpriseai:registry`, and `eai --version`.
|
|
151
151
|
- If `eai` is missing and the user approves, install it:
|
|
152
152
|
```bash
|
|
153
|
-
npm
|
|
154
|
-
|
|
153
|
+
npm install -g eai-cli
|
|
154
|
+
# If npmjs is unavailable:
|
|
155
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
155
156
|
eai --version
|
|
156
157
|
```
|
|
157
158
|
- On Windows, use the same npm commands in PowerShell and avoid shell
|
|
@@ -69,7 +69,7 @@ Run only safe read/check commands first:
|
|
|
69
69
|
| Node.js | `node --version` | `node --version` |
|
|
70
70
|
| npm | `npm --version` | `npm --version` |
|
|
71
71
|
| EAI CLI | `eai --version` | `eai --version` |
|
|
72
|
-
| Registry | `npm config get @
|
|
72
|
+
| Registry | `npm config get @enterpriseai:registry` | `npm config get @enterpriseai:registry` |
|
|
73
73
|
|
|
74
74
|
If Git, Node.js, or npm is missing, ask before installing. Use the least
|
|
75
75
|
surprising platform path:
|
|
@@ -89,14 +89,15 @@ or assume Git Bash exists unless it was detected.
|
|
|
89
89
|
If `eai` is missing, or if the user asks to update it, ask for approval and run:
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
npm
|
|
93
|
-
|
|
92
|
+
npm install -g eai-cli
|
|
93
|
+
# If npmjs is unavailable:
|
|
94
|
+
npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-tools.github.io/eai/registry/
|
|
94
95
|
eai --version
|
|
95
96
|
```
|
|
96
97
|
|
|
97
98
|
Use the same commands in PowerShell. Do not edit `.npmrc` by shell redirection.
|
|
98
99
|
|
|
99
|
-
|
|
100
|
+
Use the static fallback command only when npmjs is unavailable. If `npm config get @enterpriseai:registry` already equals
|
|
100
101
|
`https://eai-tools.github.io/eai/registry/`, do not rewrite it. If it points
|
|
101
102
|
somewhere else, show the current value and ask before changing it.
|
|
102
103
|
|