ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Aura Team v2: профиль, переименование/выход из команды, приоритет и метки задач,
* ограничения общих ключей (модели, дневной лимит), личная квота, прокси-токен '*'
* и передача файлов внутри команды.
*--------------------------------------------------------------------------------------------*/
import assert from 'node:assert/strict';
import { existsSync, mkdtempSync, readdirSync } from 'node:fs';
import { createServer as createHttpServer, type IncomingMessage, type ServerResponse } from 'node:http';
import type { AddressInfo } from 'node:net';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import test from 'node:test'
processenv
processenv
processenv
createServer database accessToken hash
app
password
id displayName
database
id displayName password
authorization name app method url headers authorization payload name id
userId teamId role databaseuserId teamId role
app database makeUser makeTeam addMember
app makeUser makeTeam addMember
me
mate
teamId me
teamId
payload app method url headers authorization me payload payload object
badName displayName
longName displayName
badColor avatarColor
badStatus status
longBio bio
ok displayName bio avatarColor status
cleared avatarColor status
got app method url headers authorization me
board app method url headers authorization mate
boardMe boardmembersmember id memberid
assert
badName badNamestatusCode longName longNamestatusCode badColor badColorstatusCode badStatus badStatusstatusCode longBio longBiostatusCode
ok okstatusCode
okUser ok
cleared avatarColor clearedavatarColor status clearedstatus bio clearedbio
getUser gotuser
teams gotteams
boardMe displayName boardMedisplayName bio boardMebio avatarColor boardMeavatarColor status boardMestatus dailyQuota boardMedailyQuota
badName longName badColor badStatus longBio
ok
okUser id email displayName bio avatarColor status createdAt
cleared avatarColor status bio
getUser id email displayName bio avatarColor status createdAt
teams id teamId name role memberCount
boardMe displayName bio avatarColor status dailyQuota
app
app database makeUser makeTeam addMember
owner
maint
dev
teamId owner
teamId
teamId
devRename app method url headers authorization dev payload name
emptyRename app method url headers authorization maint payload name
longRename app method url headers authorization maint payload name
rename app method url headers authorization maint payload name
ownerLeave app method url headers authorization owner
devLeave app method url headers authorization dev
devLeaveAgain app method url headers authorization dev
devTeams app method url headers authorization dev teams
assert
devRename devRenamestatusCode emptyRename emptyRenamestatusCode longRename longRenamestatusCode
rename renamestatusCode renamed rename
audited databaseteamId
ownerLeave ownerLeavestatusCode ownerLeaveMessage ownerLeavemessage
devLeave devLeavestatusCode devLeaveAgain devLeaveAgainstatusCode devTeams
devRename emptyRename longRename
rename renamed id teamId name
audited
ownerLeave ownerLeaveMessage
devLeave devLeaveAgain devTeams
app
app makeUser makeTeam
owner
teamId owner
url
badPriority app method url headers authorization owner payload title priority
tooManyLabels app method url headers authorization owner payload title labels
longLabel app method url headers authorization owner payload title labels
emptyLabel app method url headers authorization owner payload title labels
plain app method url headers authorization owner payload title
created app method url headers authorization owner payload title description priority labels dueAt
taskId createdid
badPatch app method url headers authorization owner payload labels
kept app method url headers authorization owner payload title
patched app method url headers authorization owner payload priority labels dueAt description
board app method url headers authorization owner
onBoard boardtaskstask id taskid taskId
c created
p patched
assert
badPriority badPrioritystatusCode tooManyLabels tooManyLabelsstatusCode longLabel longLabelstatusCode emptyLabel emptyLabelstatusCode
plainDefaults priority plainpriority labels plainlabels
created status createdstatusCode priority cpriority labels clabels snakeDue cdue_at snakeTeam cteam_id createdBy ccreatedBy hasCamel ccreatedAt cupdatedAt
badPatch badPatchstatusCode
kept due keptdue_at priority keptpriority labels keptlabels
patched status patchedstatusCode priority ppriority labels plabels due pdue_at description pdescription title ptitle
board priority onBoardpriority labels onBoardlabels dueAt onBoarddueAt description onBoarddescription createdBy onBoardcreatedBy hasDates onBoardcreatedAt onBoardupdatedAt assigneeName onBoardassigneeName
badPriority tooManyLabels longLabel emptyLabel
plainDefaults priority labels
created status priority labels snakeDue snakeTeam teamId createdBy hasCamel
badPatch
kept due priority labels
patched status priority labels due description title
board priority labels dueAt description createdBy hasDates assigneeName
app
seen auth url model
upstream req IncomingMessage res ServerResponse
raw
req chunk raw chunk
req
model
model raw rawmodel model
seen auth reqheadersauthorization url requrl model
res ok auth reqheadersauthorization
resolve upstream resolve
baseUrl
app makeUser makeTeam addMember
owner
dev
teamId owner
teamId
keys
chat
badModels app method url keys headers authorization owner payload provider value models
badLimit app method url keys headers authorization owner payload provider value dailyLimit
keyA app method url keys headers authorization owner payload provider value label priority baseUrl models dailyLimit
keyB app method url keys headers authorization owner payload provider value label priority baseUrl models
keyAId keyAid
keyBId keyBid
firstA app method url chat headers authorization owner payload model messages
secondA app method url chat headers authorization owner payload model messages
toB app method url chat headers authorization owner payload model messages
unknownModel app method url chat headers authorization owner payload model messages
models app method url headers authorization owner
anyToken app method url headers authorization owner payload provider model
emptyToken app method url headers authorization dev payload provider
viaAnyToken app method url chat headers authorization payload model messages
listedOwner app method url keys headers authorization owner id models dailyLimit usedToday usedTodayTotal
patchKey app method url headers authorization owner payload models dailyLimit
badPatchKey app method url headers authorization owner payload dailyLimit
devQuotaDenied app method url headers authorization dev payload dailyRequests
badQuota app method url headers authorization owner payload dailyRequests
quota app method url headers authorization owner payload dailyRequests
boardQuota app method url headers authorization owner membersmember id memberid dailyQuota
devFirst app method url chat headers authorization dev payload model messages
devSecond app method url chat headers authorization dev payload model messages
quotaCleared app method url headers authorization owner payload dailyRequests
devAfterClear app method url chat headers authorization dev payload model messages
listedDev app method url keys headers authorization dev id usedToday usedTodayTotal
tokensOwner app method url headers authorization owner
tokensDev app method url headers authorization dev userId model
usageDev app method url headers authorization dev
usageOwner app method url headers authorization owner
upstream
app
rows id keyId rowsrow rowid keyId Record
a listedOwner keyAId
b listedOwner keyBId
assert
badModels badModelsstatusCode badLimit badLimitstatusCode
keyA status keyAstatusCode models keyAmodels dailyLimit keyAdailyLimit
keyBModelsDeduped keyBmodels
firstA firstAstatusCode firstAauth
secondA secondAstatusCode secondAmessage
toB toBstatusCode toBauth
unknownModel unknownModelstatusCode unknownModelmessage
models modelsstatusCode modelsauth
anyToken anyTokenstatusCode emptyToken emptyTokenstatusCode
viaAnyToken viaAnyTokenstatusCode viaAnyTokenauth
listA models amodels dailyLimit adailyLimit usedToday ausedToday usedTodayTotal ausedTodayTotal
listB models bmodels dailyLimit bdailyLimit usedToday busedToday usedTodayTotal busedTodayTotal
patchKey patchKeystatusCode badPatchKey badPatchKeystatusCode
devQuotaDenied devQuotaDeniedstatusCode badQuota badQuotastatusCode
quota quota boardQuota
devFirst devFirststatusCode devSecond devSecondstatusCode
quotaCleared quotaCleared devAfterClear devAfterClearstatusCode
devListA usedToday listedDev keyAIdusedToday usedTodayTotal listedDev keyAIdusedTodayTotal
devListB usedToday listedDev keyBIdusedToday usedTodayTotal listedDev keyBIdusedTodayTotal
tokensOwnerCount tokensOwnerlength
tokensLeakSecret tokensOwnerbodyanyTokentoken
tokensDev tokensDevrow rowuserId rowmodel
usageDev status usageDevstatusCode perUser usageDevperUserrow userId rowuserId
usageOwnerUsers usageOwnerperUserrow userId rowuserId
upstreamUrls seenentry entryurl
badModels badLimit
keyA status models dailyLimit
keyBModelsDeduped
firstA
secondA
toB
unknownModel
models
anyToken emptyToken
viaAnyToken
listA models dailyLimit usedToday usedTodayTotal
listB models dailyLimit usedToday usedTodayTotal
patchKey badPatchKey
devQuotaDenied badQuota
quota ok dailyRequests boardQuota
devFirst devSecond
quotaCleared ok dailyRequests devAfterClear
devListA usedToday usedTodayTotal
devListB usedToday usedTodayTotal
tokensOwnerCount
tokensLeakSecret
tokensDev
usageDev status perUser
usageOwnerUsers
upstreamUrls
filename content Buffer contentType
boundary
payload Buffer
Buffer
content
Buffer
payload headers
app makeUser makeTeam addMember
owner
alice
bob
viewer
teamId owner
teamId
teamId
teamId
url
authorization query name body type
form name Bufferbody type
app method url headers authorization formheaders payload formpayload
publicFile owner
resolve resolve
privateFile alice
outsiderTarget alice
viewerUpload viewer
publicId publicFileid
privateId privateFileid
authorization app method url headers authorization id name bytes mime note createdBy id name recipient id name
ownerList owner
aliceList alice
bobList bob
viewerList viewer
bobDownload app method url headers authorization bob
ownerDownloadPrivate app method url headers authorization owner
viewerDownloadPublic app method url headers authorization viewer
bobDeletesPublic app method url headers authorization bob
aliceDeletesOwn app method url headers authorization alice
ownerDeletesPublic app method url headers authorization owner
filesLeft processenv
afterDelete owner
app
assert
publicFile status publicFilestatusCode name publicFilename bytes publicFilebytes hasExpiry publicFileexpiresAt
privateFile privateFilestatusCode
outsiderTarget outsiderTargetstatusCode
viewerUpload viewerUploadstatusCode
ownerSees ownerListfile fileid
aliceSees aliceListfile fileid
bobSees bobListfile fileid
viewerSees viewerListfile fileid
privateEntry createdAt _c expiresAt _e rest restbobListfile fileid privateId Record
publicEntry mime ownerListfile fileid publicIdmime note ownerListfile fileid publicIdnote recipient ownerListfile fileid publicIdrecipient
bobDownload status bobDownloadstatusCode body bobDownloadbody disposition bobDownloadheaders
ownerDownloadPrivate ownerDownloadPrivatestatusCode
viewerDownloadPublic status viewerDownloadPublicstatusCode body viewerDownloadPublicbody type viewerDownloadPublicheaders disposition viewerDownloadPublicheaders
bobDeletesPublic bobDeletesPublicstatusCode
aliceDeletesOwn aliceDeletesOwn
ownerDeletesPublic ownerDeletesPublic
filesLeft
afterDelete
privateGoneFromDisk processenv
publicFile status name bytes hasExpiry
privateFile
outsiderTarget
viewerUpload
ownerSees publicId
aliceSees privateId publicId
bobSees privateId publicId
viewerSees publicId
privateEntry
id privateId name bytes mime note
createdBy id name recipient id name
publicEntry mime note recipient
bobDownload status body disposition
ownerDownloadPrivate
viewerDownloadPublic status body type disposition
bobDeletesPublic
aliceDeletesOwn ok
ownerDeletesPublic ok
filesLeft
afterDelete
privateGoneFromDisk
app database makeUser makeTeam
cleanupFiles
owner
teamId owner
form Buffer
uploaded app method url headers authorization owner formheaders payload formpayload
fileId uploadedid
path databasefileId path path
existedBefore path
database fileId
removed
app
assert uploaded uploadedstatusCode existedBefore removed onDisk path inDb databasefileId
uploaded existedBefore removed onDisk inDb