@osama.ansar/agent-loopguard 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/LICENSE +21 -0
- package/README.md +280 -2
- package/dist/index.cjs +932 -0
- package/dist/index.d.cts +441 -0
- package/dist/index.d.ts +441 -0
- package/dist/index.js +921 -0
- package/package.json +82 -4
package/package.json
CHANGED
|
@@ -1,6 +1,84 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osama.ansar/agent-loopguard",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Framework-agnostic loop and budget guard for AI agents: detects repeated tool calls, oscillation, no-progress text, unfamiliar finish reasons and budget overruns, and tells you why to stop.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ai",
|
|
7
|
+
"agents",
|
|
8
|
+
"llm",
|
|
9
|
+
"agentic",
|
|
10
|
+
"loop-detection",
|
|
11
|
+
"guardrails",
|
|
12
|
+
"circuit-breaker",
|
|
13
|
+
"tool-calling",
|
|
14
|
+
"vercel-ai-sdk",
|
|
15
|
+
"budget",
|
|
16
|
+
"typescript"
|
|
17
|
+
],
|
|
18
|
+
"homepage": "https://github.com/OsamaAnsar/agent-loopguard#readme",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/OsamaAnsar/agent-loopguard/issues"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/OsamaAnsar/agent-loopguard.git"
|
|
25
|
+
},
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "Osama Ansar",
|
|
29
|
+
"url": "https://github.com/OsamaAnsar"
|
|
30
|
+
},
|
|
31
|
+
"type": "module",
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"main": "./dist/index.cjs",
|
|
34
|
+
"module": "./dist/index.js",
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"default": "./dist/index.js"
|
|
41
|
+
},
|
|
42
|
+
"require": {
|
|
43
|
+
"types": "./dist/index.d.cts",
|
|
44
|
+
"default": "./dist/index.cjs"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"./package.json": "./package.json"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist",
|
|
51
|
+
"README.md",
|
|
52
|
+
"LICENSE",
|
|
53
|
+
"CHANGELOG.md"
|
|
54
|
+
],
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=18"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsup",
|
|
63
|
+
"typecheck": "tsc --noEmit",
|
|
64
|
+
"lint": "eslint .",
|
|
65
|
+
"test": "vitest run",
|
|
66
|
+
"test:coverage": "vitest run --coverage",
|
|
67
|
+
"example:loop": "tsx examples/looping-agent.ts",
|
|
68
|
+
"example:ai-sdk": "tsx examples/ai-sdk-stop-when.ts",
|
|
69
|
+
"prepublishOnly": "npm run typecheck && npm run lint && npm test && npm run build"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@eslint/js": "^9.39.5",
|
|
73
|
+
"@types/node": "^20.19.43",
|
|
74
|
+
"@vitest/coverage-v8": "^3.2.7",
|
|
75
|
+
"ai": "^7.0.140",
|
|
76
|
+
"eslint": "^9.39.5",
|
|
77
|
+
"tsup": "^8.5.1",
|
|
78
|
+
"tsx": "^4.23.15",
|
|
79
|
+
"typescript": "~5.9.3",
|
|
80
|
+
"typescript-eslint": "^8.71.2",
|
|
81
|
+
"vitest": "^3.2.7",
|
|
82
|
+
"zod": "^4.6.7"
|
|
83
|
+
}
|
|
84
|
+
}
|