@uic-coe-connect/cli 0.13.1 → 0.13.2
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/dist/commands/integration.js +15 -5
- package/package.json +1 -1
|
@@ -21,8 +21,17 @@ const REQUIRED_ENV = [
|
|
|
21
21
|
optional: true,
|
|
22
22
|
},
|
|
23
23
|
];
|
|
24
|
-
/**
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Retired credentials. COEConnect no longer accepts any of them, and nothing
|
|
26
|
+
* reads them, so one found in an app's environment is a stale secret to delete
|
|
27
|
+
* rather than a working fallback.
|
|
28
|
+
*/
|
|
29
|
+
const LEGACY_ENV = [
|
|
30
|
+
"COE_ACCESS_TOKEN",
|
|
31
|
+
"COE_EVENTS_TOKEN",
|
|
32
|
+
"COE_NOTIFY_TOKEN",
|
|
33
|
+
"COE_ROLES_TOKEN",
|
|
34
|
+
];
|
|
26
35
|
export function registerIntegrationCommands() {
|
|
27
36
|
register({
|
|
28
37
|
name: "integration show",
|
|
@@ -87,7 +96,7 @@ export function registerIntegrationCommands() {
|
|
|
87
96
|
],
|
|
88
97
|
["Env present", REQUIRED_ENV.filter((e) => envKeys.has(e.key)).map((e) => e.key).join(", ") || "(none)"],
|
|
89
98
|
["Env missing", missing.map((e) => e.key).join(", ") || "(none)"],
|
|
90
|
-
["
|
|
99
|
+
["Retired env", legacy.join(", ") || "(none)"],
|
|
91
100
|
["Pipelines", `${pipelines.length}${pipelines.length > 0 ? (writesEnv ? ", writes .env" : ", NO env step") : ""}`],
|
|
92
101
|
["Login reporting", usage ? (usage.reporting ? `yes — ${usage.distinctUsers} people in 30d` : "no logins reported yet") : "unknown"],
|
|
93
102
|
]);
|
|
@@ -172,8 +181,9 @@ function nextSteps(f) {
|
|
|
172
181
|
steps.push(`Set the missing environment variables: ${f.missing.join(", ")}`);
|
|
173
182
|
}
|
|
174
183
|
if (f.legacy.length > 0) {
|
|
175
|
-
steps.push(`
|
|
176
|
-
"
|
|
184
|
+
steps.push(`Delete the retired credentials (${f.legacy.join(", ")}) — nothing reads them any more. ` +
|
|
185
|
+
"coe env unset clears COEConnect's copy; the one on the VM has to go from the .env " +
|
|
186
|
+
"itself, because the env step never removes a key it doesn't know.");
|
|
177
187
|
}
|
|
178
188
|
if (!f.hasPipeline) {
|
|
179
189
|
steps.push("Create a deploy pipeline: coe pipelines create <app> ...");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uic-coe-connect/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "The coe CLI \u2014 manage COEConnect apps (pipelines, deploys, access, env) from a terminal, with browser-approved auth. Designed to be driven by an AI agent.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|