Skip to content

Commit 6d8444d

Browse files
committed
Fixed tests
1 parent 18a9727 commit 6d8444d

File tree

17 files changed

+242
-243
lines changed

17 files changed

+242
-243
lines changed

bin/code2md.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,11 @@ rm -rf ./tmp/http-tmp
8080
# MAKE MINIMAL VER OF HTTP-CLIENT
8181
mkdir -p ./tmp/config-tmp
8282
cp -rf "./packages/utils/src/Config"* "./tmp/config-tmp/"
83-
cp -rf "./packages/http-client/src/ConfigProviders/"* "./tmp/config-tmp/"
84-
cp -rf "./packages/http-client/src/Contracts/CanProvide"* "./tmp/config-tmp/"
85-
cp -rf "./packages/instructor/src/ConfigProviders/"* "./tmp/config-tmp/"
86-
cp -rf "./packages/instructor/src/Contracts/CanProvide"* "./tmp/config-tmp/"
87-
cp -rf "./packages/polyglot/src/Embeddings/ConfigProviders/"* "./tmp/config-tmp/"
88-
cp -rf "./packages/polyglot/src/Embeddings/Contracts/CanProvide"* "./tmp/config-tmp/"
89-
cp -rf "./packages/polyglot/src/LLM/ConfigProviders/"* "./tmp/config-tmp/"
90-
cp -rf "./packages/polyglot/src/LLM/Contracts/CanProvide"* "./tmp/config-tmp/"
91-
cp -rf "./packages/templates/src/ConfigProviders/"* "./tmp/config-tmp/"
92-
cp -rf "./packages/templates/src/Contracts/CanProvide"* "./tmp/config-tmp/"
83+
cp -rf "./packages/http-client/src/Config/"* "./tmp/config-tmp/"
84+
cp -rf "./packages/instructor/src/Config/"* "./tmp/config-tmp/"
85+
cp -rf "./packages/polyglot/src/Embeddings/Config/"* "./tmp/config-tmp/"
86+
cp -rf "./packages/polyglot/src/LLM/Config/"* "./tmp/config-tmp/"
87+
cp -rf "./packages/templates/src/Config/"* "./tmp/config-tmp/"
9388
code2prompt "./tmp/config-tmp" -o "./tmp/x-config.md"
9489
rm -rf ./tmp/config-tmp
9590

config/connections.php.bak

Lines changed: 0 additions & 222 deletions
This file was deleted.

packages/auxiliary/src/Web/Scrapers/FirecrawlDriver.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ class FirecrawlDriver implements CanGetUrlContent
1616
private string $apiKey;
1717
private ClientInterface $client;
1818

19-
public function __construct(string $baseUrl = '', string $apiKey = '') {
19+
public function __construct(
20+
string $baseUrl = '',
21+
string $apiKey = '',
22+
) {
2023
$this->baseUrl = $baseUrl ?: Env::get('FIRECRAWL_BASE_URI', '');
2124
$this->apiKey = $apiKey ?: Env::get('FIRECRAWL_API_KEY', '');
2225
$this->client = new Client();

packages/config/.gitattributes

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Exclude unnecessary files from Composer and Git exports
2+
/.github/ export-ignore
3+
/.gitignore export-ignore
4+
/.gitattributes export-ignore
5+
/composer.lock export-ignore
6+
/phpunit.xml export-ignore
7+
/phpstan.neon export-ignore
8+
/phpstan.neon.dist export-ignore
9+
/phpunit.xml.dist export-ignore
10+
/psalm.xml export-ignore
11+
12+
# Project specific ignores
13+
/tests/ export-ignore
14+
/docs/ export-ignore
15+
/release-notes/ export-ignore
16+
17+
# Line ending normalization
18+
# Ensure PHP, JS, and text files have consistent line endings
19+
*.bat text eol=lf
20+
*.css text eol=lf
21+
*.html text eol=lf
22+
*.js text eol=lf
23+
*.md text eol=lf
24+
*.mdx text eol=lf
25+
*.php text eol=lf
26+
*.sh text eol=lf
27+
*.txt text eol=lf
28+
*.xml text eol=lf
29+
*.yml text eol=lf
30+
*.yaml text eol=lf
31+
32+
# Treat binary files as binary
33+
*.gif binary
34+
*.ico binary
35+
*.jpg binary
36+
*.jpeg binary
37+
*.pdf binary
38+
*.png binary
39+
*.svg binary
40+
41+
# Linguist overrides (optional for GitHub)
42+
/vendor/ linguist-vendored
43+
44+
# Ignore logs and temp files in exports (optional)
45+
*.bak export-ignore
46+
*.log export-ignore
47+
*.swp export-ignore
48+
/cache/ export-ignore
49+
/temp/ export-ignore
50+
/tmp/ export-ignore

packages/config/.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Composer dependency and autoload files
2+
composer.lock
3+
4+
# Dependencies
5+
/vendor/
6+
7+
# env files
8+
.env
9+
.env.local
10+
.env.*.local
11+
12+
# Logs and debug files
13+
*.log
14+
*.cache
15+
16+
# PHP server and error logs
17+
error_log
18+
.php_error.log
19+
php_errors.log
20+
21+
# Node modules and build artifacts (if using Node or frontend tooling)
22+
node_modules/
23+
dist/
24+
build/
25+
26+
# Python venvs
27+
.venv/
28+
29+
# OS generated files
30+
.DS_Store
31+
Thumbs.db
32+
33+
# IDE files
34+
/.idea/
35+
/.vscode/
36+
.cursorignore
37+
38+
# PHPUnit, Pest, and other test result files
39+
.phpunit.result.cache
40+
/.phpunit.result.cache
41+
/tests/_output/
42+
/tests/_support/_generated/
43+
/coverage/

packages/config/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Dariusz Debowczyk
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/config/LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Dariusz Debowczyk
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

0 commit comments

Comments
 (0)