-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathcomposer.json
More file actions
242 lines (242 loc) · 11.6 KB
/
composer.json
File metadata and controls
242 lines (242 loc) · 11.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
{
"name": "cognesy/instructor-php",
"description": "The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control",
"keywords": [
"llm",
"language models",
"inference",
"ai",
"genai",
"openai",
"anthropic",
"cohere",
"claude",
"gemini",
"deepseek",
"ollama",
"structured output",
"semantic processing",
"automation",
"data processing",
"data extraction"
],
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Dariusz Debowczyk",
"email": "ddebowczyk@gmail.com"
}
],
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
},
"sort-packages": true,
"process-timeout": 1800
},
"require": {
"php": "^8.3|^8.4|^8.5",
"ext-ctype": "*",
"adbario/php-dot-notation": "^3.3",
"aimeos/map": "^3.8",
"gioni06/gpt3-tokenizer": "^1.2",
"phpdocumentor/reflection-docblock": "^5.6 || ^6.0",
"psr/event-dispatcher": "^1.0",
"psr/http-client": "^1.0",
"psr/http-message": "^2.0",
"psr/log": "^3.0",
"symfony/console": "^7.3 || ^8.0",
"symfony/config": "^7.3 || ^8.0",
"symfony/filesystem": "^7.3 || ^8.0",
"symfony/process": "^7.3 || ^8.0",
"symfony/property-access": "^7.3 || ^8.0",
"symfony/property-info": "^7.3 || ^8.0",
"symfony/serializer": "^7.3 || ^8.0",
"symfony/type-info": "^7.3 || ^8.0",
"symfony/validator": "^7.3 || ^8.0",
"symfony/var-dumper": "^7.3 || ^8.0",
"symfony/yaml": "^7.3 || ^8.0",
"vlucas/phpdotenv": "^5.6"
},
"scripts": {
"bench": "@php ./vendor/bin/phpbench run",
"docs": "@php ./bin/instructor-docs",
"docs:qa": "bash ./scripts/docs-qa-all.sh",
"qa:phpstan": "@php ./vendor/bin/phpstan analyse -c phpstan.neon",
"qa:psalm": "@php ./vendor/bin/psalm -c packages/instructor/psalm.xml",
"qa:pint": "@php ./vendor/bin/pint --config packages/agents/pint.json packages/agents/src/ --test",
"qa:docs": "bash ./scripts/docs-qa-all.sh",
"qa:semgrep": "bash -lc 'set -euo pipefail; export HOME=\"$PWD/.qa\"; export SSL_CERT_FILE=\"${SSL_CERT_FILE:-/opt/homebrew/etc/openssl@3/cert.pem}\"; for cfg in .qa/semgrep/*.yml; do [ -f \"$cfg\" ] || continue; semgrep scan --disable-version-check --metrics=off --config \"$cfg\" --error; done; for cfg in packages/*/.qa/semgrep.yml; do [ -f \"$cfg\" ] || continue; pkg_dir=$(dirname \"$(dirname \"$cfg\")\"); semgrep scan --disable-version-check --metrics=off --config \"$cfg\" --error \"$pkg_dir\"; done'",
"qa": [
"@qa:phpstan",
"@qa:psalm",
"@qa:pint",
"@qa:semgrep"
],
"hub": "php ./bin/instructor-hub",
"phpstan": "@php ./vendor/bin/phpstan analyse -c phpstan.neon",
"psalm": "@php ./vendor/bin/psalm -c packages/instructor/psalm.xml",
"psalm-unused": "@php ./vendor/bin/psalm --find-unused-code",
"tell": "bin/tell",
"test": "@php -d memory_limit=512M ./vendor/bin/pest --compact --testsuite=Unit,Feature,Regression --exclude-group=docs-qa",
"tests": "@php -d memory_limit=512M ./vendor/bin/pest --compact --testsuite=Unit,Feature,Regression --exclude-group=docs-qa",
"test:docs-qa": "@php -d memory_limit=512M ./vendor/bin/pest --compact --group=docs-qa",
"test:telemetry-interop": "@php -d memory_limit=512M ./vendor/bin/pest --compact packages/telemetry/tests/Integration",
"test-all": "@php ./vendor/bin/pest",
"dead-code": "@php ./vendor/bin/phpstan analyse -c phpstan-unused.neon --no-progress --error-format=table",
"dead-code-debug": "@php ./vendor/bin/phpstan analyse -c phpstan-unused.neon --no-progress --error-format=table -vvv",
"unused-deps": "@php ./vendor/bin/composer-unused",
"publish": "bin/instructor-setup publish",
"setup": "bin/instructor-setup",
"make-package": "scripts/make-package",
"pint": "@php ./vendor/bin/pint --config packages/agents/pint.json packages/agents/src/",
"pint:test": "@php ./vendor/bin/pint --config packages/agents/pint.json packages/agents/src/ --test"
},
"bin": [
"bin/instructor-setup",
"bin/instructor-hub",
"bin/instructor-docs",
"bin/tell",
"scripts/make-package",
"packages/auxiliary/bin/tbd"
],
"suggest": {
"cognesy/instructor-laravel": "For Laravel facades, testing fakes, and framework integration",
"cognesy/instructor-symfony": "For Symfony bundle integration, runtime wiring, and framework defaults",
"ext-dom": "Used by Cognesy\\Auxiliary\\Web\\Html for HTML parsing",
"ext-fileinfo": "Used by Cognesy\\Addon\\Image\\Image for MIME information extraction",
"ext-libxml": "Used by Cognesy\\Utils\\Template\\Template for prompt template support",
"ext-simplexml": "Used by Cognesy\\Utils\\Template\\Template for prompt template support",
"ext-xmlreader": "Used by Cognesy\\Utils\\Template\\Template for prompt template support",
"eftec/bladeone": "For BladeOne template engine support",
"spatie/browsershot": "Used by Cognesy\\Auxiliary\\Web for Browsershot web crawler support",
"symfony/http-client": "For Symfony HTTP client support",
"symfony/http-client-contracts": "For Symfony HTTP client support",
"twig/twig": "For Twig template engine support",
"guzzlehttp/guzzle": "For Guzzle HTTP client support",
"guzzlehttp/psr7": "For Guzzle PSR-7 support"
},
"autoload": {
"psr-4": {
"Cognesy\\Addons\\": "packages/addons/src/",
"Cognesy\\Agents\\": "packages/agents/src/",
"Cognesy\\AgentCtrl\\": "packages/agent-ctrl/src/",
"Cognesy\\Auxiliary\\": "packages/auxiliary/src/",
"Cognesy\\Config\\": "packages/config/src/",
"Cognesy\\Doctools\\": "packages/doctools/src/",
"Cognesy\\Dynamic\\": "packages/dynamic/src/",
"Cognesy\\Events\\": "packages/events/src/",
"Cognesy\\Http\\": "packages/http-client/src/",
"Cognesy\\HttpPool\\": "packages/http-pool/src/",
"Cognesy\\InstructorHub\\": "packages/hub/src/",
"Cognesy\\Instructor\\": "packages/instructor/src/",
"Cognesy\\Instructor\\Laravel\\": "packages/laravel/src/",
"Cognesy\\Logging\\": "packages/logging/src/",
"Cognesy\\Messages\\": "packages/messages/src/",
"Cognesy\\Metrics\\": "packages/metrics/src/",
"Cognesy\\Pipeline\\": "packages/pipeline/src/",
"Cognesy\\Polyglot\\": "packages/polyglot/src/",
"Cognesy\\Sandbox\\": "packages/sandbox/src/",
"Cognesy\\Schema\\": "packages/schema/src/",
"Cognesy\\Setup\\": "packages/setup/src/",
"Cognesy\\Stream\\": "packages/stream/src/",
"Cognesy\\Instructor\\Symfony\\": "packages/symfony/src/",
"Cognesy\\Template\\": "packages/templates/src/",
"Cognesy\\Telemetry\\": "packages/telemetry/src/",
"Cognesy\\Utils\\": "packages/utils/src/",
"Cognesy\\Xprompt\\": "packages/xprompt/src/"
},
"files": [
"src/polyfills.php",
"packages/xprompt/src/functions.php"
]
},
"autoload-dev": {
"psr-4": {
"Cognesy\\Config\\": "config/",
"Cognesy\\Qa\\PHPStan\\": ".qa/phpstan/",
"Cognesy\\Auxiliary\\": "packages/auxiliary/src/",
"Cognesy\\Evals\\": "packages/evals/src/",
"Cognesy\\Tell\\": "packages/tell/src/",
"Cognesy\\Experimental\\": "packages/experimental/src/",
"Cognesy\\Addons\\Tests\\": "packages/addons/tests/",
"Cognesy\\Agents\\Tests\\": "packages/agents/tests/",
"Cognesy\\AgentCtrl\\Tests\\": "packages/agent-ctrl/tests/",
"Cognesy\\Config\\Tests\\": "packages/config/tests/",
"Cognesy\\Dynamic\\Tests\\": "packages/dynamic/tests/",
"Cognesy\\Events\\Tests\\": "packages/events/tests/",
"Cognesy\\Http\\Tests\\": "packages/http-client/tests/",
"Cognesy\\HttpPool\\Tests\\": "packages/http-pool/tests/",
"Cognesy\\Instructor\\Tests\\": "packages/instructor/tests/",
"Cognesy\\Logging\\Tests\\": "packages/logging/tests/",
"Cognesy\\Messages\\Tests\\": "packages/messages/tests/",
"Cognesy\\Pipeline\\Tests\\": "packages/pipeline/tests/",
"Cognesy\\Polyglot\\Tests\\": "packages/polyglot/tests/",
"Cognesy\\Sandbox\\Tests\\": "packages/sandbox/tests/",
"Cognesy\\Schema\\Tests\\": "packages/schema/tests/",
"Cognesy\\Setup\\Tests\\": "packages/setup/tests/",
"Cognesy\\Stream\\Tests\\": "packages/stream/tests/",
"Cognesy\\Instructor\\Symfony\\Tests\\": "packages/symfony/tests/",
"Cognesy\\Telemetry\\Tests\\": "packages/telemetry/tests/",
"Cognesy\\Templates\\Tests\\": "packages/templates/tests/",
"Cognesy\\Utils\\Tests\\": "packages/utils/tests/",
"Cognesy\\Xprompt\\Tests\\": "packages/xprompt/tests/",
"Cognesy\\Auxiliary\\Tests\\": "packages/auxiliary/tests/",
"Cognesy\\Doctools\\Tests\\": "packages/doctools/tests/",
"Cognesy\\Evals\\Tests\\": "packages/evals/tests/",
"Cognesy\\Experimental\\Tests\\": "packages/experimental/tests/",
"Cognesy\\InstructorHub\\Tests\\": "packages/hub/tests/",
"Cognesy\\Tell\\Tests\\": "packages/tell/tests/",
"Tests\\": "tests/",
"Tests\\Addons\\": "packages/addons/tests/",
"Evals\\": "evals/",
"Examples\\": "examples/",
"Tests\\Addons\\Support\\": "packages/addons/tests/Support/"
},
"files": [
"packages/addons/tests/Examples/Call/test_functions.php",
"packages/instructor/tests/Examples/Call/test_functions.php",
"packages/instructor/tests/Support/TestHelpers.php"
]
},
"require-dev": {
"ext-SimpleXML": "*",
"ext-curl": "*",
"ext-dom": "*",
"ext-fileinfo": "*",
"ext-libxml": "*",
"ext-xmlreader": "*",
"cebe/markdown": "^1.2",
"eftec/bladeone": "^4.16",
"guzzlehttp/guzzle": "^7.0",
"guzzlehttp/psr7": "^2.0",
"icanhazstring/composer-unused": "^0.9.5",
"illuminate/database": "^11.47",
"illuminate/http": "^11.0",
"illuminate/support": "^11.47",
"jetbrains/phpstorm-attributes": "^1.2",
"laravel/pint": "^1.27",
"league/commonmark": "^2.7",
"league/html-to-markdown": "^5.1",
"mockery/mockery": "^1.6",
"monolog/monolog": "^3.0",
"nikic/iter": "^2.4",
"pestphp/pest": "^4.0",
"phpbench/phpbench": "^1.4",
"phpstan/phpstan": "^1.11",
"phpstan/phpstan-strict-rules": "^1.6",
"psr/http-factory-implementation": "*",
"shipmonk/dead-code-detector": "^0.5.1",
"spatie/browsershot": "^5.1",
"symfony/css-selector": "^7.3 || ^8.0",
"symfony/dom-crawler": "^7.3 || ^8.0",
"symfony/framework-bundle": "^7.3 || ^8.0",
"symfony/http-client": "^7.3 || ^8.0",
"symfony/messenger": "^7.3 || ^8.0",
"toolkit/cli-utils": "^2.0",
"twig/twig": "^3.0",
"vimeo/psalm": "^6.0"
}
}