ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as fs from 'fs';
import open from 'open';
const REQUEST1_URL = 'https://github.com/login/device/code';
const REQUEST2_URL = 'https://github.com/login/oauth/access_token';
// this is the VS Code OAuth app that the GitHub Authentication extension also uses
const CLIENT_ID = '01ab8ac9400c4e429b23';
const keypress = async () => {
if (process.stdin.isTTY) {
process.stdin.setRawMode(true);
resolve
processstdin data
byteArray data
byteArraylength byteArray
process
processstdinisTTY
processstdin
requestOptions RequestInit
method
body
client_id
scope
headers
Accept
request1 requestOptions
response1 request1
timeout resolve resolve
response1verification_uri timeout
expiresIn response1expires_in
accessToken
expiresIn
requestOptions RequestInit
method
body
client_id
device_code response1device_code
grant_type
headers
Accept
response2 requestOptions
expiresIn response1interval
resolve resolve response1interval
response2access_token
accessToken response2access_token
accessToken
process
raw fs fs
result raw
line line
line line
fs result
process
processstdinisTTY
process