Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
132 lines (132 loc) · 4.79 KB
/
Copy pathcomposer.json
File metadata and controls
132 lines (132 loc) · 4.79 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
{
"name": "promptphp/intercept",
"description": "A middleware collection for Laravel AI SDK agents providing middleware across security, observability, performance and guidance.",
"type": "library",
"license": "MIT",
"homepage": "https://intercept.promptphp.com",
"keywords": [
"laravel",
"ai",
"middleware",
"agent",
"security",
"observability",
"governance",
"performance",
"prompt-injection",
"pii-redaction",
"rate-limiting",
"semantic-caching",
"cost-control",
"promptphp"
],
"authors": [
{
"name": "Victor Ukam",
"email": "victorjohnukam@gmail.com",
"homepage": "https://github.com/veeqtoh",
"role": "Developer"
}
],
"require": {
"php": "^8.3",
"laravel/ai": "^1.0"
},
"require-dev": {
"laravel/pint": "^1.29.1",
"mrpunyapal/rector-pest": "^0.2.15",
"orchestra/testbench": "^10.6|^11.0",
"pestphp/pest": "^3.0|^4.0|^5.0.0",
"pestphp/pest-plugin-type-coverage": "^3.0|^4.0|^5.0.0",
"phpstan/phpstan": "^2.1",
"rector/rector": "^2.4.2",
"symfony/var-dumper": "^7.0|^8.0.8"
},
"replace": {
"promptphp/intercept-budget-guard": "self.version",
"promptphp/intercept-injection-guard": "self.version",
"promptphp/intercept-pii-redactor": "self.version",
"promptphp/intercept-support": "self.version",
"promptphp/intercept-tool-approval-guard": "self.version"
},
"autoload": {
"psr-4": {
"PromptPHP\\Intercept\\": "src/",
"PromptPHP\\Intercept\\BudgetGuard\\": "src/BudgetGuard/src/",
"PromptPHP\\Intercept\\InjectionGuard\\": "src/InjectionGuard/src/",
"PromptPHP\\Intercept\\PIIRedactor\\": "src/PIIRedactor/src/",
"PromptPHP\\Intercept\\Support\\": "src/Support/src/",
"PromptPHP\\Intercept\\ToolApprovalGuard\\": "src/ToolApprovalGuard/src/"
}
},
"autoload-dev": {
"psr-4": {
"PromptPHP\\Intercept\\BudgetGuard\\Tests\\": "src/BudgetGuard/tests/",
"PromptPHP\\Intercept\\InjectionGuard\\Tests\\": "src/InjectionGuard/tests/",
"PromptPHP\\Intercept\\PIIRedactor\\Tests\\": "src/PIIRedactor/tests/",
"PromptPHP\\Intercept\\Support\\Tests\\": "src/Support/tests/",
"PromptPHP\\Intercept\\Tests\\": "tests/",
"PromptPHP\\Intercept\\ToolApprovalGuard\\Tests\\": "src/ToolApprovalGuard/tests/",
"Workbench\\App\\": "workbench/app/"
}
},
"extra": {
"laravel": {
"providers": [
"PromptPHP\\Intercept\\Support\\InterceptServiceProvider"
]
}
},
"scripts": {
"mirrors:create": "bash tools/create-repos.sh",
"mirrors:sync": "bash tools/update-repo-descriptions.sh",
"packages:validate": "bash tools/validate-packages.sh",
"split": "bash tools/split.sh",
"split:all": "bash tools/split.sh --all",
"release": "bash tools/release.sh",
"release:all": "bash tools/release.sh --all",
"release:root": "bash tools/release-root.sh",
"publish": [
"@packages:validate",
"@mirrors:create",
"@mirrors:sync",
"@split",
"@release"
],
"publish:all": [
"@packages:validate",
"@mirrors:create",
"@mirrors:sync",
"@split:all",
"@release:all",
"@release:root"
],
"test": "vendor/bin/pest",
"test:architecture": "vendor/bin/pest tests/Architecture",
"test:budget-guard": "vendor/bin/pest src/BudgetGuard/tests",
"test:injection-guard": "vendor/bin/pest src/InjectionGuard/tests",
"test:pii-redactor": "vendor/bin/pest src/PIIRedactor/tests",
"test:support": "vendor/bin/pest src/Support/tests",
"test:tool-approval-guard": "vendor/bin/pest src/ToolApprovalGuard/tests",
"format": "vendor/bin/pint",
"test:types": "vendor/bin/phpstan analyse",
"test:lint": [
"vendor/bin/pint --parallel --test"
]
},
"scripts-descriptions": {
"mirrors:create": "Create mirror repositories for any new middleware packages",
"split": "Subtree-split changed packages into their mirror repos",
"release": "Tag and release the packages changed in the latest commit",
"publish": "Full release: create mirrors, split, then release"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"preferred-install": "dist",
"allow-plugins": {
"pestphp/pest-plugin": true
}
}
}