@postonus/cli 0.1.9 → 0.1.10
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/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11983,7 +11983,7 @@ function formatTable(headers, rows) {
|
|
|
11983
11983
|
}
|
|
11984
11984
|
|
|
11985
11985
|
// src/version.ts
|
|
11986
|
-
var CLI_VERSION = "0.1.
|
|
11986
|
+
var CLI_VERSION = "0.1.10";
|
|
11987
11987
|
|
|
11988
11988
|
// src/client.ts
|
|
11989
11989
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
@@ -12567,6 +12567,8 @@ function parseIncoming(message) {
|
|
|
12567
12567
|
return {};
|
|
12568
12568
|
}
|
|
12569
12569
|
}
|
|
12570
|
+
var write = (message) => process.stdout.write(`${message}
|
|
12571
|
+
`);
|
|
12570
12572
|
async function mcpServe() {
|
|
12571
12573
|
const { apiUrl, auth } = await getApi();
|
|
12572
12574
|
const endpoint = `${apiUrl}/api/mcp`;
|
|
@@ -12577,8 +12579,6 @@ async function mcpServe() {
|
|
|
12577
12579
|
const send = oauth ? createOAuthFetch(apiUrl, oauth, persistRefreshedTokens(apiUrl, oauth)) : (request, init) => fetch(request, init);
|
|
12578
12580
|
let protocolVersion;
|
|
12579
12581
|
let sessionId;
|
|
12580
|
-
const write = (message) => process.stdout.write(`${message}
|
|
12581
|
-
`);
|
|
12582
12582
|
const headersFor = (currentAuth) => new Headers({
|
|
12583
12583
|
"content-type": "application/json",
|
|
12584
12584
|
// Both, because the endpoint may answer either way and refuses a request
|