@loxtep/sdk 0.9.7 → 0.9.8
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/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,15 @@ and this project adheres to
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.9.8] - 2026-08-11
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **CLI browser login** opens `/auth/cli` instead of `/auth/mcp`. The app mints a
|
|
16
|
+
dedicated CLI session (`CLISESS#`) via `/app/auth/delegate-session`, so web SPA
|
|
17
|
+
token refresh no longer revokes CLI credentials. Re-run `loxtep login` once
|
|
18
|
+
after the platform deploy that ships this change.
|
|
19
|
+
|
|
11
20
|
## [0.9.7] - 2026-08-10
|
|
12
21
|
|
|
13
22
|
### Added
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Flow:
|
|
9
9
|
* 1. Start a local HTTP server on a random port
|
|
10
|
-
* 2. Open browser to https://app.loxtep.io/auth/
|
|
10
|
+
* 2. Open browser to https://app.loxtep.io/auth/cli?callback_url=http://localhost:{port}/callback
|
|
11
11
|
* 3. User logs in (Cognito SRP + MFA if needed) in the browser
|
|
12
|
-
* 4. App redirects to our localhost callback with
|
|
12
|
+
* 4. App mints a CLI-scoped session and redirects to our localhost callback with tokens
|
|
13
13
|
* 5. Return tokens to caller, shut down server
|
|
14
14
|
*/
|
|
15
15
|
import { type Server } from 'node:http';
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Flow:
|
|
9
9
|
* 1. Start a local HTTP server on a random port
|
|
10
|
-
* 2. Open browser to https://app.loxtep.io/auth/
|
|
10
|
+
* 2. Open browser to https://app.loxtep.io/auth/cli?callback_url=http://localhost:{port}/callback
|
|
11
11
|
* 3. User logs in (Cognito SRP + MFA if needed) in the browser
|
|
12
|
-
* 4. App redirects to our localhost callback with
|
|
12
|
+
* 4. App mints a CLI-scoped session and redirects to our localhost callback with tokens
|
|
13
13
|
* 5. Return tokens to caller, shut down server
|
|
14
14
|
*/
|
|
15
15
|
import { createServer } from 'node:http';
|
|
@@ -113,7 +113,7 @@ export function browserLogin(options) {
|
|
|
113
113
|
const port = addr.port;
|
|
114
114
|
on_listening?.(port);
|
|
115
115
|
const callbackUrl = `http://localhost:${port}/callback`;
|
|
116
|
-
const loginUrl = `${app_url.replace(/\/$/, '')}/auth/
|
|
116
|
+
const loginUrl = `${app_url.replace(/\/$/, '')}/auth/cli?callback_url=${encodeURIComponent(callbackUrl)}`;
|
|
117
117
|
if (no_open) {
|
|
118
118
|
console.log(`\nOpen this URL in your browser to log in:\n\n ${loginUrl}\n`);
|
|
119
119
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loxtep/sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8",
|
|
4
4
|
"description": "Loxtep SDK for Node.js — the Enterprise Context Layer: data products, workflows, projects, queues, and machine-usable context for AI",
|
|
5
5
|
"author": "Loxtep <engineering@loxtep.io>",
|
|
6
6
|
"homepage": "https://loxtep.io",
|