@uic-coe-connect/cli 0.6.0 → 0.7.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/dist/config.d.ts +1 -1
- package/dist/config.js +2 -2
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface Credentials {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Which server to talk to, most specific wins: --server flag, then COE_SERVER,
|
|
9
|
-
* then a saved config, then
|
|
9
|
+
* then a saved config, then production.
|
|
10
10
|
*/
|
|
11
11
|
export declare function resolveServer(flag?: string): string;
|
|
12
12
|
export declare function saveServer(server: string): void;
|
package/dist/config.js
CHANGED
|
@@ -9,7 +9,7 @@ import path from "node:path";
|
|
|
9
9
|
const DIR = process.env.COE_CONFIG_DIR ?? path.join(homedir(), ".coeconnect");
|
|
10
10
|
const CONFIG_FILE = path.join(DIR, "config.json");
|
|
11
11
|
const CREDENTIALS_FILE = path.join(DIR, "credentials.json");
|
|
12
|
-
const DEFAULT_SERVER = "https://
|
|
12
|
+
const DEFAULT_SERVER = "https://coeconnect.engineering.uic.edu";
|
|
13
13
|
function readJson(file) {
|
|
14
14
|
try {
|
|
15
15
|
return JSON.parse(readFileSync(file, "utf8"));
|
|
@@ -25,7 +25,7 @@ function writeJson(file, value, mode) {
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Which server to talk to, most specific wins: --server flag, then COE_SERVER,
|
|
28
|
-
* then a saved config, then
|
|
28
|
+
* then a saved config, then production.
|
|
29
29
|
*/
|
|
30
30
|
export function resolveServer(flag) {
|
|
31
31
|
const chosen = flag ?? process.env.COE_SERVER ?? readJson(CONFIG_FILE)?.server ?? DEFAULT_SERVER;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uic-coe-connect/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "The coe CLI — 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": {
|