Skip to content

Commit

Permalink
Merge pull request #99 from VictorS67/core-patch
Browse files Browse the repository at this point in the history
Remove secret placeholder
  • Loading branch information
VictorS67 authored Jul 26, 2024
2 parents 4179440 + b4707a3 commit e714807
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 36 deletions.
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@encrejs/core",
"version": "0.0.4",
"version": "0.0.5",
"engines": {
"node": ">=20"
},
Expand Down Expand Up @@ -933,4 +933,4 @@
"index.js",
"index.d.ts"
]
}
}
6 changes: 3 additions & 3 deletions packages/core/src/load/registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ const globalImportMap: OptionalImportMap = {
};

const globalSecretMap: SecretMap = {
GOOGLE_API_KEY: 'google-secret-placeholder',
OPENAI_API_KEY: 'openai-secret-placeholder',
OPENAI_ORGANIZATION: 'openai-org-placeholder',
// GOOGLE_API_KEY: 'google-secret-placeholder',
// OPENAI_API_KEY: 'openai-secret-placeholder',
// OPENAI_ORGANIZATION: 'openai-org-placeholder',
};

export { globalImportMap, globalSecretMap };
8 changes: 6 additions & 2 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"compilerOptions": {
"target": "ESNEXT",
"module": "ESNext",
"lib": ["ESNext"],
"lib": [
"ESNext"
],
"allowJs": true,
"skipLibCheck": true,
"declaration": true,
Expand All @@ -15,7 +17,9 @@
"strictPropertyInitialization": false,
"noImplicitThis": false,
"moduleResolution": "node",
"types": ["node"],
"types": [
"node"
],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"inlineSourceMap": false,
Expand Down
185 changes: 156 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2854,32 +2854,6 @@
resolved "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.3.1.tgz"
integrity sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww==

"@encrejs/[email protected]", "@encrejs/core@^0.0.5":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@encrejs/core/-/core-0.0.5.tgz#57a9ba7e5f1329c99623c0abc3bf9f9ee30e7e76"
integrity sha512-BFY8JAm+uc88yrlGKve4uj4hj69UEZFgKHQw8kEg6+98oZWV7tAqdVsv1Ywc+i4JJfagS7BA6KynxDBYJx1cIw==
dependencies:
"@google/generative-ai" "^0.1.3"
"@types/object-hash" "^3.0.5"
"@types/pdf-parse" "^1.1.2"
camelcase "^8.0.0"
chromadb "^1.8.1"
decamelize "^6.0.0"
emittery "^1.0.3"
js-tiktoken "^1.0.7"
ml-distance "^4.0.1"
nanoid "^5.0.2"
object-hash "^3.0.0"
openai "^4.29.2"
p-queue "^7.4.1"
pdf-parse "^1.1.1"
redis "^4.6.10"
release-it "^17.3.0"
tiktoken "^1.0.10"
ts-node "^10.9.1"
ts-pattern "^5.0.6"
typescript "^5.2.2"

"@encrejs/core@workspace:^":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@encrejs/core/-/core-0.0.3.tgz#58646216115c49082a081f4a87a341e64f83ef0e"
Expand Down Expand Up @@ -3376,6 +3350,11 @@
resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.3.tgz#1227cc980f88e6d6ab85abadbf164f5038041edd"
integrity sha512-ErXXzENMH5pJt5/ssXV0DfWUZqly8nGzf0UcBV9xTnP+KyffE2mqyxIMBrZ8ijQck2nU0TQm40EQB53YreyWHw==

"@inquirer/figures@^1.0.3":
version "1.0.5"
resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.5.tgz#57f9a996d64d3e3345d2a3ca04d36912e94f8790"
integrity sha512-79hP/VWdZ2UVc9bFGJnoQ/lQMpL74mGgzSYX1xUqCVk7/v73vJCMw1VuyWN1jGkZ9B3z7THAbySqGbCNefcjfA==

"@isaacs/cliui@^8.0.2":
version "8.0.2"
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
Expand Down Expand Up @@ -10800,6 +10779,13 @@ global-agent@^3.0.0:
semver "^7.3.2"
serialize-error "^7.0.1"

global-directory@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/global-directory/-/global-directory-4.0.1.tgz#4d7ac7cfd2cb73f304c53b8810891748df5e361e"
integrity sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q==
dependencies:
ini "4.1.1"

global-dirs@^3.0.0:
version "3.0.1"
resolved "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz"
Expand Down Expand Up @@ -10861,6 +10847,18 @@ [email protected]:
slash "^5.1.0"
unicorn-magic "^0.1.0"

[email protected]:
version "14.0.2"
resolved "https://registry.yarnpkg.com/globby/-/globby-14.0.2.tgz#06554a54ccfe9264e5a9ff8eded46aa1e306482f"
integrity sha512-s3Fq41ZVh7vbbe2PN3nrW7yC7U7MFVc5c98/iTl9c2GawNMKx/J648KQRW6WKkuU8GIbbh2IXfIRQjOZnXcTnw==
dependencies:
"@sindresorhus/merge-streams" "^2.1.0"
fast-glob "^3.3.2"
ignore "^5.2.4"
path-type "^5.0.0"
slash "^5.1.0"
unicorn-magic "^0.1.0"

globby@^11.0.1, globby@^11.0.4, globby@^11.1.0:
version "11.1.0"
resolved "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz"
Expand Down Expand Up @@ -11565,6 +11563,11 @@ [email protected]:
resolved "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz"
integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==

[email protected]:
version "4.1.1"
resolved "https://registry.yarnpkg.com/ini/-/ini-4.1.1.tgz#d95b3d843b1e906e56d6747d5447904ff50ce7a1"
integrity sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==

ini@^1.3.4, ini@^1.3.5, ini@~1.3.0:
version "1.3.8"
resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz"
Expand Down Expand Up @@ -11601,6 +11604,24 @@ [email protected]:
strip-ansi "^6.0.1"
wrap-ansi "^6.2.0"

[email protected]:
version "9.3.2"
resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-9.3.2.tgz#9bc5ced19f572e848044baa05094a498f1e448c6"
integrity sha512-+ynEbhWKhyomnaX0n2aLIMSkgSlGB5RrWbNXnEqj6mdaIydu6y40MdBjL38SAB0JcdmOaIaMua1azdjLEr3sdw==
dependencies:
"@inquirer/figures" "^1.0.3"
ansi-escapes "^4.3.2"
cli-width "^4.1.0"
external-editor "^3.1.0"
mute-stream "1.0.0"
ora "^5.4.1"
run-async "^3.0.0"
rxjs "^7.8.1"
string-width "^4.2.3"
strip-ansi "^6.0.1"
wrap-ansi "^6.2.0"
yoctocolors-cjs "^2.1.1"

internal-slot@^1.0.4, internal-slot@^1.0.5:
version "1.0.5"
resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz"
Expand Down Expand Up @@ -11897,6 +11918,14 @@ is-installed-globally@^0.4.0:
global-dirs "^3.0.0"
is-path-inside "^3.0.2"

is-installed-globally@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-1.0.0.tgz#08952c43758c33d815692392f7f8437b9e436d5a"
integrity sha512-K55T22lfpQ63N4KEN57jZUAaAYqYHEe8veb/TycJRk9DdSCLLcovXz/mL6mOnhQaZsQGwPhuFopdQIlqGSEjiQ==
dependencies:
global-directory "^4.0.1"
is-path-inside "^4.0.0"

is-interactive@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e"
Expand Down Expand Up @@ -11977,6 +12006,11 @@ is-path-inside@^3.0.2, is-path-inside@^3.0.3:
resolved "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz"
integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==

is-path-inside@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-4.0.0.tgz#805aeb62c47c1b12fc3fd13bfb3ed1e7430071db"
integrity sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==

is-plain-obj@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz"
Expand Down Expand Up @@ -12191,6 +12225,17 @@ [email protected]:
lodash.isstring "^4.0.1"
lodash.uniqby "^4.7.0"

[email protected]:
version "7.0.1"
resolved "https://registry.yarnpkg.com/issue-parser/-/issue-parser-7.0.1.tgz#8a053e5a4952c75bb216204e454b4fc7d4cc9637"
integrity sha512-3YZcUUR2Wt1WsapF+S/WiA2WmlW0cWAoPccMqne7AxEBhCdFeTPjfv/Axb8V2gyCgY3nRw+ksZ3xSUX+R47iAg==
dependencies:
lodash.capitalize "^4.2.1"
lodash.escaperegexp "^4.1.2"
lodash.isplainobject "^4.0.6"
lodash.isstring "^4.0.1"
lodash.uniqby "^4.7.0"

istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0:
version "3.2.0"
resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz"
Expand Down Expand Up @@ -13365,6 +13410,11 @@ klona@^2.0.4, klona@^2.0.5:
resolved "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz"
integrity sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==

ky@^1.2.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/ky/-/ky-1.5.0.tgz#fa2c9c11c175a6d0072e572216207a4edc895d10"
integrity sha512-bkQo+UqryW6Zmo/DsixYZE4Z9t2mzvNMhceyIhuMuInb3knm5Q+GNGMKveydJAj+Z6piN1SwI6eR/V0G+Z0BtA==

language-subtag-registry@^0.3.20:
version "0.3.23"
resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz#23529e04d9e3b74679d70142df3fd2eb6ec572e7"
Expand All @@ -13384,6 +13434,13 @@ latest-version@^7.0.0:
dependencies:
package-json "^8.1.0"

latest-version@^9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-9.0.0.tgz#e91ed216e7a4badc6f73b66c65adb46c58ec6ba1"
integrity sha512-7W0vV3rqv5tokqkBAFV1LbR7HPOWzXQDpDgEuib/aJ1jsZZx6x3c2mBI+TJhJzOhkGeaLbCKEHXEXLfirtG2JA==
dependencies:
package-json "^10.0.0"

launch-editor@^2.6.0:
version "2.6.1"
resolved "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.1.tgz"
Expand Down Expand Up @@ -15272,6 +15329,16 @@ package-json-from-dist@^1.0.0:
resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz#e501cd3094b278495eb4258d4c9f6d5ac3019f00"
integrity sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==

package-json@^10.0.0:
version "10.0.1"
resolved "https://registry.yarnpkg.com/package-json/-/package-json-10.0.1.tgz#e49ee07b8de63b638e7f1b5bb353733e428fe7d7"
integrity sha512-ua1L4OgXSBdsu1FPb7F3tYH0F48a6kxvod4pLUlGY9COeJAJQNX/sNH2IiEmsxw7lqYiAwrdHMjz1FctOsyDQg==
dependencies:
ky "^1.2.0"
registry-auth-token "^5.0.2"
registry-url "^6.0.1"
semver "^7.6.0"

package-json@^8.1.0:
version "8.1.1"
resolved "https://registry.npmjs.org/package-json/-/package-json-8.1.1.tgz"
Expand Down Expand Up @@ -17135,14 +17202,14 @@ regexpu-core@^5.3.1:
unicode-match-property-ecmascript "^2.0.0"
unicode-match-property-value-ecmascript "^2.1.0"

registry-auth-token@^5.0.1:
registry-auth-token@^5.0.1, registry-auth-token@^5.0.2:
version "5.0.2"
resolved "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.2.tgz"
integrity sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==
dependencies:
"@pnpm/npm-conf" "^2.1.0"

registry-url@^6.0.0:
registry-url@^6.0.0, registry-url@^6.0.1:
version "6.0.1"
resolved "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz"
integrity sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==
Expand Down Expand Up @@ -17210,6 +17277,38 @@ release-it@^17.3.0:
wildcard-match "5.1.3"
yargs-parser "21.1.1"

release-it@^17.6.0:
version "17.6.0"
resolved "https://registry.yarnpkg.com/release-it/-/release-it-17.6.0.tgz#de91db313d76849f727a7434f7b8bdb52b6a4ac8"
integrity sha512-EE34dtRPL7BHpYQC7E+zAU8kjkyxFHxLk5Iqnmn/5nGcjgOQu34Au29M2V9YvxiP3tZbIlEn4gItEzu7vAPRbw==
dependencies:
"@iarna/toml" "2.2.5"
"@octokit/rest" "20.1.1"
async-retry "1.3.3"
chalk "5.3.0"
cosmiconfig "9.0.0"
execa "8.0.1"
git-url-parse "14.0.0"
globby "14.0.2"
got "13.0.0"
inquirer "9.3.2"
is-ci "3.0.1"
issue-parser "7.0.1"
lodash "4.17.21"
mime-types "2.1.35"
new-github-release-url "2.0.0"
node-fetch "3.3.2"
open "10.1.0"
ora "8.0.1"
os-name "5.1.0"
proxy-agent "6.4.0"
semver "7.6.2"
shelljs "0.8.5"
update-notifier "7.1.0"
url-join "5.0.0"
wildcard-match "5.1.3"
yargs-parser "21.1.1"

remark-directive@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/remark-directive/-/remark-directive-3.0.0.tgz"
Expand Down Expand Up @@ -17778,6 +17877,11 @@ semver@^7.0.0, semver@^7.3.0, semver@^7.3.2, semver@^7.3.5, semver@^7.3.7, semve
dependencies:
lru-cache "^6.0.0"

semver@^7.6.2:
version "7.6.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143"
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==

[email protected]:
version "0.18.0"
resolved "https://registry.npmjs.org/send/-/send-0.18.0.tgz"
Expand Down Expand Up @@ -18840,7 +18944,7 @@ terser-webpack-plugin@^5.3.10, terser-webpack-plugin@^5.3.9:
serialize-javascript "^6.0.1"
terser "^5.26.0"

terser@^5.26.0:
terser@^5.0.0, terser@^5.10.0, terser@^5.15.1, terser@^5.16.8, terser@^5.17.4, terser@^5.26.0:
version "5.31.0"
resolved "https://registry.npmjs.org/terser/-/terser-5.31.0.tgz"
integrity sha512-Q1JFAoUKE5IMfI4Z/lkE/E6+SwgzO+x4tq4v1AyBLRj8VSYvRO6A/rQrPg1yud4g0En9EKI1TvFRF2tQFcoUkg==
Expand Down Expand Up @@ -19587,6 +19691,24 @@ [email protected]:
semver-diff "^4.0.0"
xdg-basedir "^5.1.0"

[email protected]:
version "7.1.0"
resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-7.1.0.tgz#b8f43cc2dc094c221f179bfab9eba9f4b1469965"
integrity sha512-8SV3rIqVY6EFC1WxH6L0j55s0MO79MFBS1pivmInRJg3pCEDgWHBj1Q6XByTtCLOZIFA0f6zoG9ZWf2Ks9lvTA==
dependencies:
boxen "^7.1.1"
chalk "^5.3.0"
configstore "^6.0.0"
import-lazy "^4.0.0"
is-in-ci "^0.1.0"
is-installed-globally "^1.0.0"
is-npm "^6.0.0"
latest-version "^9.0.0"
pupa "^3.1.0"
semver "^7.6.2"
semver-diff "^4.0.0"
xdg-basedir "^5.1.0"

update-notifier@^6.0.2:
version "6.0.2"
resolved "https://registry.npmjs.org/update-notifier/-/update-notifier-6.0.2.tgz"
Expand Down Expand Up @@ -20816,6 +20938,11 @@ yocto-queue@^1.0.0:
resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz"
integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==

yoctocolors-cjs@^2.1.1:
version "2.1.2"
resolved "https://registry.yarnpkg.com/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz#f4b905a840a37506813a7acaa28febe97767a242"
integrity sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==

zwitch@^2.0.0:
version "2.0.4"
resolved "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz"
Expand Down

0 comments on commit e714807

Please sign in to comment.