flowcollab 0.1.0 → 0.1.1
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/bin/_client.mjs +2 -2
- package/package.json +1 -1
package/bin/_client.mjs
CHANGED
|
@@ -15,7 +15,7 @@ function loadGlobalConfig() {
|
|
|
15
15
|
}
|
|
16
16
|
const _gc = loadGlobalConfig();
|
|
17
17
|
|
|
18
|
-
const DEFAULT_BASE = process.env.FLOW_API_BASE || _gc.apiBase || '
|
|
18
|
+
const DEFAULT_BASE = process.env.FLOW_API_BASE || _gc.apiBase || 'https://flow-production-84b7.up.railway.app';
|
|
19
19
|
|
|
20
20
|
function envToken() {
|
|
21
21
|
return process.env.FLOW_API_TOKEN_OWNER || process.env.FLOW_API_TOKEN_CONTRIBUTOR || _gc.token || '';
|
|
@@ -29,7 +29,7 @@ function actingViaClaude() {
|
|
|
29
29
|
export async function flowFetch(path, { method = 'GET', body } = {}) {
|
|
30
30
|
const token = envToken();
|
|
31
31
|
if (!token) {
|
|
32
|
-
throw new Error('
|
|
32
|
+
throw new Error('Not authenticated. Run `flow-login` to connect your account.');
|
|
33
33
|
}
|
|
34
34
|
const url = DEFAULT_BASE.replace(/\/+$/, '') + path;
|
|
35
35
|
const headers = {
|