chromadb

v1.7.3-beta2
A JavaScript interface for chroma

test

run-s db:clean db:cleanauth db:run test:runfull db:clean test:runfull-authonly db:cleanauth

build

tsup

db:run

cd ../.. && CHROMA_PORT=8001 docker-compose -f docker-compose.test.yml up --detach && sleep 5

genapi

./genapi.sh

release

run-s build test:run && npm publish

db:clean

cd ../.. && CHROMA_PORT=8001 docker-compose -f docker-compose.test.yml down --volumes

prebuild

rimraf dist

prettier

prettier --write .

test:run

jest --runInBand --testPathIgnorePatterns=test/auth.*.test.ts

testauth

run-s db:cleanauth db:run-auth test:runfull-authonly db:cleanauth

testnoauth

run-s db:clean db:run test:runfull db:clean

test:update

run-s db:clean db:run && jest --runInBand --updateSnapshot && run-s db:clean

db:cleanauth

cd ../.. && CHROMA_PORT=8001 docker-compose -f docker-compose.test-auth.yml down --volumes

test:runfull

PORT=8001 jest --runInBand --testPathIgnorePatterns=test/auth.*.test.ts

release_alpha

run-s build test:run && npm publish --tag alpha

test:set-port

cross-env URL=localhost:8001

db:run-auth-basic

cd ../.. && docker run --rm --entrypoint htpasswd httpd:2 -Bbn admin admin > server.htpasswd && echo "CHROMA_SERVER_AUTH_CREDENTIALS_FILE=/chroma/server.htpasswd\nCHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER=chromadb.auth.providers.HtpasswdFileServerAuthCredentialsProvider\nCHROMA_SERVER_AUTH_PROVIDER=chromadb.auth.basic.BasicAuthServerProvider\nCHROMA_PORT=8001" > .chroma_env && docker-compose -f docker-compose.test-auth.yml --env-file ./.chroma_env up --detach && sleep 5

db:run-auth-token

cd ../.. && echo "CHROMA_SERVER_AUTH_CREDENTIALS=test-token CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER=chromadb.auth.token.TokenConfigServerAuthCredentialsProvider CHROMA_SERVER_AUTH_PROVIDER=chromadb.auth.token.TokenAuthServerProvider\nCHROMA_PORT=8001" > .chroma_env && docker-compose -f docker-compose.test-auth.yml --env-file ./.chroma_env up --detach && sleep 5

db:run-auth-xtoken

cd ../.. && echo "CHROMA_SERVER_AUTH_TOKEN_TRANSPORT_HEADER=X_CHROMA_TOKEN CHROMA_SERVER_AUTH_CREDENTIALS=test-token CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER=chromadb.auth.token.TokenConfigServerAuthCredentialsProvider CHROMA_SERVER_AUTH_PROVIDER=chromadb.auth.token.TokenAuthServerProvider\nCHROMA_PORT=8001" > .chroma_env && docker-compose -f docker-compose.test-auth.yml --env-file ./.chroma_env up --detach && sleep 5

test:run-auth-basic

jest --runInBand --testPathPattern=test/auth.basic.test.ts

test:run-auth-token

jest --runInBand --testPathPattern=test/auth.token.test.ts

test:run-auth-xtoken

XTOKEN_TEST=true jest --runInBand --testPathPattern=test/auth.token.test.ts

test:runfull-authonly

run-s db:run-auth-basic test:runfull-authonly-basic db:clean db:run-auth-token test:runfull-authonly-token db:clean db:run-auth-xtoken test:runfull-authonly-xtoken db:clean

test:runfull-authonly-basic

PORT=8001 jest --runInBand --testPathPattern=test/auth.basic.test.ts

test:runfull-authonly-token

PORT=8001 jest --runInBand --testPathPattern=test/auth.token.test.ts

test:runfull-authonly-xtoken

PORT=8001 XTOKEN_TEST=true jest --runInBand --testPathPattern=test/auth.token.test.ts

Metadata

Downloads