@aragon-agent/core 0.1.3

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +126 -0
  2. package/LICENSE +21 -0
  3. package/README.md +147 -0
  4. package/dist/engine/agent-loop.d.ts +52 -0
  5. package/dist/engine/agent-loop.js +260 -0
  6. package/dist/engine/agent.d.ts +129 -0
  7. package/dist/engine/agent.js +283 -0
  8. package/dist/engine/message-manager.d.ts +26 -0
  9. package/dist/engine/message-manager.js +39 -0
  10. package/dist/engine/steering.d.ts +27 -0
  11. package/dist/engine/steering.js +51 -0
  12. package/dist/engine/watchdog.d.ts +24 -0
  13. package/dist/engine/watchdog.js +50 -0
  14. package/dist/index.d.ts +46 -0
  15. package/dist/index.js +63 -0
  16. package/dist/llm/model-registry.d.ts +51 -0
  17. package/dist/llm/model-registry.js +277 -0
  18. package/dist/llm/provider.d.ts +72 -0
  19. package/dist/llm/provider.js +77 -0
  20. package/dist/llm/providers/anthropic.d.ts +23 -0
  21. package/dist/llm/providers/anthropic.js +420 -0
  22. package/dist/llm/providers/google.d.ts +22 -0
  23. package/dist/llm/providers/google.js +336 -0
  24. package/dist/llm/providers/index.d.ts +67 -0
  25. package/dist/llm/providers/index.js +127 -0
  26. package/dist/llm/providers/openai.d.ts +22 -0
  27. package/dist/llm/providers/openai.js +353 -0
  28. package/dist/llm/stream-utils.d.ts +33 -0
  29. package/dist/llm/stream-utils.js +132 -0
  30. package/dist/llm/types.d.ts +129 -0
  31. package/dist/llm/types.js +17 -0
  32. package/dist/sandbox/console-capture.d.ts +29 -0
  33. package/dist/sandbox/console-capture.js +56 -0
  34. package/dist/sandbox/http-bridge.d.ts +47 -0
  35. package/dist/sandbox/http-bridge.js +143 -0
  36. package/dist/sandbox/isolated-vm-sandbox.d.ts +50 -0
  37. package/dist/sandbox/isolated-vm-sandbox.js +226 -0
  38. package/dist/sandbox/tool-bridge.d.ts +42 -0
  39. package/dist/sandbox/tool-bridge.js +98 -0
  40. package/dist/sandbox/types.d.ts +84 -0
  41. package/dist/sandbox/types.js +8 -0
  42. package/dist/skills/constants.d.ts +122 -0
  43. package/dist/skills/constants.js +179 -0
  44. package/dist/skills/disclosure.d.ts +146 -0
  45. package/dist/skills/disclosure.js +788 -0
  46. package/dist/skills/frontmatter.d.ts +27 -0
  47. package/dist/skills/frontmatter.js +177 -0
  48. package/dist/skills/index.d.ts +21 -0
  49. package/dist/skills/index.js +18 -0
  50. package/dist/skills/skill-find-tool.d.ts +41 -0
  51. package/dist/skills/skill-find-tool.js +117 -0
  52. package/dist/skills/skill-registry.d.ts +96 -0
  53. package/dist/skills/skill-registry.js +208 -0
  54. package/dist/skills/skill-tool.d.ts +44 -0
  55. package/dist/skills/skill-tool.js +96 -0
  56. package/dist/skills/tool-policy.d.ts +91 -0
  57. package/dist/skills/tool-policy.js +272 -0
  58. package/dist/skills/types.d.ts +271 -0
  59. package/dist/skills/types.js +8 -0
  60. package/dist/skills/validate.d.ts +37 -0
  61. package/dist/skills/validate.js +264 -0
  62. package/dist/tools/executor.d.ts +54 -0
  63. package/dist/tools/executor.js +206 -0
  64. package/dist/tools/helpers.d.ts +69 -0
  65. package/dist/tools/helpers.js +87 -0
  66. package/dist/tools/registry.d.ts +58 -0
  67. package/dist/tools/registry.js +119 -0
  68. package/dist/tools/types.d.ts +140 -0
  69. package/dist/tools/types.js +7 -0
  70. package/dist/tools/validator.d.ts +46 -0
  71. package/dist/tools/validator.js +210 -0
  72. package/dist/types.d.ts +56 -0
  73. package/dist/types.js +7 -0
  74. package/package.json +115 -0
package/package.json ADDED
@@ -0,0 +1,115 @@
1
+ {
2
+ "name": "@aragon-agent/core",
3
+ "version": "0.1.3",
4
+ "description": "AragonAgent core engine — LLM provider adapters, streaming, tool registry/execution, steering, idle watchdog, and an optional isolated-vm sandbox.",
5
+ "license": "MIT",
6
+ "author": "AragonAgent contributors",
7
+ "keywords": [
8
+ "agent",
9
+ "ai-agent",
10
+ "llm",
11
+ "anthropic",
12
+ "openai",
13
+ "google",
14
+ "tool-calling",
15
+ "function-calling",
16
+ "streaming",
17
+ "agentic",
18
+ "typescript",
19
+ "isolated-vm",
20
+ "codeact",
21
+ "aragonagent"
22
+ ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/xdrshjr/AragonAgent.git",
26
+ "directory": "packages/core"
27
+ },
28
+ "homepage": "https://github.com/xdrshjr/AragonAgent#readme",
29
+ "bugs": {
30
+ "url": "https://github.com/xdrshjr/AragonAgent/issues"
31
+ },
32
+ "type": "module",
33
+ "sideEffects": false,
34
+ "main": "./dist/index.js",
35
+ "types": "./dist/index.d.ts",
36
+ "exports": {
37
+ ".": {
38
+ "types": "./dist/index.d.ts",
39
+ "import": "./dist/index.js"
40
+ },
41
+ "./llm/types": {
42
+ "types": "./dist/llm/types.d.ts",
43
+ "import": "./dist/llm/types.js"
44
+ },
45
+ "./llm/providers": {
46
+ "types": "./dist/llm/providers/index.d.ts",
47
+ "import": "./dist/llm/providers/index.js"
48
+ },
49
+ "./tools/types": {
50
+ "types": "./dist/tools/types.d.ts",
51
+ "import": "./dist/tools/types.js"
52
+ },
53
+ "./tools/helpers": {
54
+ "types": "./dist/tools/helpers.d.ts",
55
+ "import": "./dist/tools/helpers.js"
56
+ },
57
+ "./skills": {
58
+ "types": "./dist/skills/index.d.ts",
59
+ "import": "./dist/skills/index.js"
60
+ },
61
+ "./sandbox/*": {
62
+ "types": "./dist/sandbox/*.d.ts",
63
+ "import": "./dist/sandbox/*.js"
64
+ }
65
+ },
66
+ "typesVersions": {
67
+ "*": {
68
+ "llm/types": [
69
+ "./dist/llm/types.d.ts"
70
+ ],
71
+ "llm/providers": [
72
+ "./dist/llm/providers/index.d.ts"
73
+ ],
74
+ "tools/types": [
75
+ "./dist/tools/types.d.ts"
76
+ ],
77
+ "tools/helpers": [
78
+ "./dist/tools/helpers.d.ts"
79
+ ],
80
+ "skills": [
81
+ "./dist/skills/index.d.ts"
82
+ ],
83
+ "sandbox/*": [
84
+ "./dist/sandbox/*.d.ts"
85
+ ]
86
+ }
87
+ },
88
+ "files": [
89
+ "dist",
90
+ "CHANGELOG.md"
91
+ ],
92
+ "engines": {
93
+ "node": ">=18"
94
+ },
95
+ "publishConfig": {
96
+ "access": "public"
97
+ },
98
+ "scripts": {
99
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json",
100
+ "test": "vitest run",
101
+ "verify:dist": "npm run build && node examples/consumer-smoke/run.mjs",
102
+ "prepublishOnly": "node scripts/check-publishable.mjs && npm run build"
103
+ },
104
+ "optionalDependencies": {
105
+ "ajv": "^8.18.0",
106
+ "isolated-vm": "^6.1.2"
107
+ },
108
+ "devDependencies": {
109
+ "@types/node": "^22.0.0",
110
+ "ajv": "^8.18.0",
111
+ "isolated-vm": "^6.1.2",
112
+ "typescript": "^5.9.3",
113
+ "vitest": "^4.1.0"
114
+ }
115
+ }