@clagentic/console 1.0.4-beta.2 → 1.0.4-beta.3
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/lib/agents.js +2 -2
- package/package.json +1 -1
package/lib/agents.js
CHANGED
|
@@ -115,7 +115,7 @@ async function* _emptyIterable() {
|
|
|
115
115
|
// Returns a promise that never rejects — failures are logged and the cache
|
|
116
116
|
// retains its last-known value.
|
|
117
117
|
//
|
|
118
|
-
// settingSources:
|
|
118
|
+
// settingSources: string array, defaults to ['user','project','local']
|
|
119
119
|
// to match the prior CLI --setting-sources flag.
|
|
120
120
|
function refresh(settingSources) {
|
|
121
121
|
if (_refreshPromise) return _refreshPromise;
|
|
@@ -130,7 +130,7 @@ function refresh(settingSources) {
|
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
var sources = settingSources
|
|
133
|
+
var sources = Array.isArray(settingSources) ? settingSources : ["user", "project", "local"];
|
|
134
134
|
var abortController = new AbortController();
|
|
135
135
|
var queryInstance = null;
|
|
136
136
|
try {
|
package/package.json
CHANGED