@ekkos/cli 0.2.11 → 0.2.12
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.
|
@@ -123,8 +123,11 @@ async function requestPairingCode(deviceInfo, authToken) {
|
|
|
123
123
|
}),
|
|
124
124
|
});
|
|
125
125
|
if (!response.ok) {
|
|
126
|
-
const
|
|
127
|
-
|
|
126
|
+
const errorData = await response.json().catch(() => ({ error: 'Unknown error' }));
|
|
127
|
+
const errorMessage = typeof errorData === 'string'
|
|
128
|
+
? errorData
|
|
129
|
+
: errorData.error || errorData.message || JSON.stringify(errorData);
|
|
130
|
+
throw new Error(errorMessage || `Failed to request pairing code: ${response.status}`);
|
|
128
131
|
}
|
|
129
132
|
return response.json();
|
|
130
133
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ekkos/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "Setup ekkOS memory for AI coding assistants (Claude Code, Cursor, Windsurf)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"ekkos": "dist/index.js",
|
|
8
|
+
"cli": "dist/index.js",
|
|
8
9
|
"ekkos-capture": "dist/cache/capture.js"
|
|
9
10
|
},
|
|
10
11
|
"scripts": {
|