@vib-rato/agent-core 0.16.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +852 -0
  2. package/README.md +493 -0
  3. package/dist/types/agent-loop.d.ts +229 -0
  4. package/dist/types/agent.d.ts +533 -0
  5. package/dist/types/append-only-context.d.ts +141 -0
  6. package/dist/types/attempt-scope.d.ts +84 -0
  7. package/dist/types/compaction/adaptive.d.ts +31 -0
  8. package/dist/types/compaction/branch-summarization.d.ts +103 -0
  9. package/dist/types/compaction/compaction.d.ts +330 -0
  10. package/dist/types/compaction/entries.d.ts +124 -0
  11. package/dist/types/compaction/errors.d.ts +26 -0
  12. package/dist/types/compaction/index.d.ts +12 -0
  13. package/dist/types/compaction/messages.d.ts +61 -0
  14. package/dist/types/compaction/openai.d.ts +65 -0
  15. package/dist/types/compaction/pruning.d.ts +130 -0
  16. package/dist/types/compaction/utils.d.ts +32 -0
  17. package/dist/types/compaction.d.ts +1 -0
  18. package/dist/types/harmony-leak.d.ts +100 -0
  19. package/dist/types/heap-eviction-retainers.test.d.ts +1 -0
  20. package/dist/types/image-placeholder-guard.d.ts +4 -0
  21. package/dist/types/index.d.ts +13 -0
  22. package/dist/types/proxy.d.ts +95 -0
  23. package/dist/types/run-collector.d.ts +223 -0
  24. package/dist/types/run-resource-ledger.d.ts +2 -0
  25. package/dist/types/telemetry.d.ts +605 -0
  26. package/dist/types/thinking.d.ts +18 -0
  27. package/dist/types/tool-dispatch-identity.d.ts +27 -0
  28. package/dist/types/types.d.ts +790 -0
  29. package/package.json +72 -0
  30. package/src/agent-loop.ts +5632 -0
  31. package/src/agent.ts +2437 -0
  32. package/src/append-only-context.ts +496 -0
  33. package/src/attempt-scope.ts +195 -0
  34. package/src/compaction/adaptive.ts +92 -0
  35. package/src/compaction/branch-summarization.ts +358 -0
  36. package/src/compaction/compaction.ts +1569 -0
  37. package/src/compaction/entries.ts +158 -0
  38. package/src/compaction/errors.ts +31 -0
  39. package/src/compaction/index.ts +13 -0
  40. package/src/compaction/messages.ts +212 -0
  41. package/src/compaction/openai.ts +580 -0
  42. package/src/compaction/prompts/auto-handoff-threshold-focus.md +1 -0
  43. package/src/compaction/prompts/branch-summary-context.md +5 -0
  44. package/src/compaction/prompts/branch-summary-preamble.md +2 -0
  45. package/src/compaction/prompts/branch-summary.md +30 -0
  46. package/src/compaction/prompts/compaction-short-summary.md +9 -0
  47. package/src/compaction/prompts/compaction-summary-context.md +5 -0
  48. package/src/compaction/prompts/compaction-summary.md +38 -0
  49. package/src/compaction/prompts/compaction-turn-prefix.md +17 -0
  50. package/src/compaction/prompts/compaction-update-summary.md +45 -0
  51. package/src/compaction/prompts/file-operations.md +10 -0
  52. package/src/compaction/prompts/handoff-document.md +56 -0
  53. package/src/compaction/prompts/summarization-system.md +3 -0
  54. package/src/compaction/pruning.ts +1026 -0
  55. package/src/compaction/utils.ts +189 -0
  56. package/src/compaction.ts +1 -0
  57. package/src/harmony-leak.ts +457 -0
  58. package/src/heap-eviction-retainers.test.ts +293 -0
  59. package/src/image-placeholder-guard.ts +20 -0
  60. package/src/index.ts +23 -0
  61. package/src/prompts/escaped-nonascii-recovery.md +3 -0
  62. package/src/prompts/repeated-tool-failure-recovery.md +1 -0
  63. package/src/proxy.ts +408 -0
  64. package/src/run-collector.ts +728 -0
  65. package/src/run-resource-ledger.ts +345 -0
  66. package/src/telemetry.ts +2161 -0
  67. package/src/thinking.ts +20 -0
  68. package/src/tool-dispatch-identity.ts +87 -0
  69. package/src/types.ts +882 -0
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "type": "module",
3
+ "name": "@vib-rato/agent-core",
4
+ "version": "0.16.0",
5
+ "description": "General-purpose agent with transport abstraction, state management, and attachment support",
6
+ "homepage": "https://github.com/Keonho-Chu/Vibrato",
7
+ "author": "Yeachan-Heo and Vibrato Contributors",
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/Keonho-Chu/Vibrato.git",
12
+ "directory": "packages/agent"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/Keonho-Chu/Vibrato/issues"
16
+ },
17
+ "keywords": [
18
+ "ai",
19
+ "agent",
20
+ "llm",
21
+ "transport",
22
+ "state-management"
23
+ ],
24
+ "main": "./src/index.ts",
25
+ "types": "./dist/types/index.d.ts",
26
+ "scripts": {
27
+ "check": "biome check . && bun run check:types",
28
+ "check:types": "tsc -p tsconfig.json --noEmit",
29
+ "lint": "biome lint .",
30
+ "test": "bun test",
31
+ "fix": "biome check --write --unsafe .",
32
+ "fmt": "biome format --write ."
33
+ },
34
+ "dependencies": {
35
+ "@vib-rato/ai": "0.16.0",
36
+ "@vib-rato/natives": "0.16.0",
37
+ "@vib-rato/utils": "0.16.0",
38
+ "@opentelemetry/api": "^1.9.0"
39
+ },
40
+ "devDependencies": {
41
+ "@opentelemetry/context-async-hooks": "^2.0.0",
42
+ "@opentelemetry/sdk-trace-base": "^2.0.0",
43
+ "@types/bun": "^1.3.14"
44
+ },
45
+ "engines": {
46
+ "bun": ">=1.4.0"
47
+ },
48
+ "files": [
49
+ "src",
50
+ "README.md",
51
+ "CHANGELOG.md",
52
+ "dist/types"
53
+ ],
54
+ "exports": {
55
+ ".": {
56
+ "types": "./dist/types/index.d.ts",
57
+ "import": "./src/index.ts"
58
+ },
59
+ "./compaction": {
60
+ "types": "./dist/types/compaction.d.ts",
61
+ "import": "./src/compaction.ts"
62
+ },
63
+ "./compaction/*": {
64
+ "types": "./dist/types/compaction/*.d.ts",
65
+ "import": "./src/compaction/*.ts"
66
+ },
67
+ "./*": {
68
+ "types": "./dist/types/*.d.ts",
69
+ "import": "./src/*.ts"
70
+ }
71
+ }
72
+ }