0xkobold 0.4.3 → 0.5.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 (130) hide show
  1. package/README.md +226 -383
  2. package/dist/package.json +13 -4
  3. package/dist/src/agent/DraconicCapabilityRouter.js +556 -0
  4. package/dist/src/agent/DraconicCapabilityRouter.js.map +1 -0
  5. package/dist/src/agent/DraconicErrorClassifier.js +606 -0
  6. package/dist/src/agent/DraconicErrorClassifier.js.map +1 -0
  7. package/dist/src/agent/DraconicRunRegistry.js +460 -0
  8. package/dist/src/agent/DraconicRunRegistry.js.map +1 -0
  9. package/dist/src/agent/DraconicTokenPredictor.js +500 -0
  10. package/dist/src/agent/DraconicTokenPredictor.js.map +1 -0
  11. package/dist/src/agent/embedded-runner.js +3 -2
  12. package/dist/src/agent/embedded-runner.js.map +1 -1
  13. package/dist/src/cli/commands/doctor.js +199 -0
  14. package/dist/src/cli/commands/doctor.js.map +1 -0
  15. package/dist/src/cli/commands/migrate-from-openclaw.js +39 -0
  16. package/dist/src/cli/commands/migrate-from-openclaw.js.map +1 -0
  17. package/dist/src/cli/commands/migrate.js +6 -4
  18. package/dist/src/cli/commands/migrate.js.map +1 -1
  19. package/dist/src/cli/program.js +3 -1
  20. package/dist/src/cli/program.js.map +1 -1
  21. package/dist/src/config/unified-config.js +195 -0
  22. package/dist/src/config/unified-config.js.map +1 -0
  23. package/dist/src/cron/notifications.js +1 -1
  24. package/dist/src/cron/notifications.js.map +1 -1
  25. package/dist/src/cron/runner.js +9 -3
  26. package/dist/src/cron/runner.js.map +1 -1
  27. package/dist/src/event-bus/index.js +3 -1
  28. package/dist/src/event-bus/index.js.map +1 -1
  29. package/dist/src/extensions/community/draconic-messenger-wrapper.js +35 -0
  30. package/dist/src/extensions/community/draconic-messenger-wrapper.js.map +1 -0
  31. package/dist/src/extensions/community/draconic-subagents-wrapper.js +115 -0
  32. package/dist/src/extensions/community/draconic-subagents-wrapper.js.map +1 -0
  33. package/dist/src/extensions/core/compaction-safeguard-v2.js +95 -0
  34. package/dist/src/extensions/core/compaction-safeguard-v2.js.map +1 -0
  35. package/dist/src/extensions/core/compaction-safeguard.js +206 -137
  36. package/dist/src/extensions/core/compaction-safeguard.js.map +1 -1
  37. package/dist/src/extensions/core/config-extension.js +122 -0
  38. package/dist/src/extensions/core/config-extension.js.map +1 -0
  39. package/dist/src/extensions/core/draconic-hoard-extension.js +194 -0
  40. package/dist/src/extensions/core/draconic-hoard-extension.js.map +1 -0
  41. package/dist/src/extensions/core/draconic-lair-extension.js +146 -0
  42. package/dist/src/extensions/core/draconic-lair-extension.js.map +1 -0
  43. package/dist/src/extensions/core/draconic-safety-extension.js +402 -0
  44. package/dist/src/extensions/core/draconic-safety-extension.js.map +1 -0
  45. package/dist/src/extensions/core/ext-manager.js +40 -0
  46. package/dist/src/extensions/core/ext-manager.js.map +1 -0
  47. package/dist/src/extensions/core/gateway-extension.js +413 -624
  48. package/dist/src/extensions/core/gateway-extension.js.map +1 -1
  49. package/dist/src/extensions/core/generative-agents-extension.js +704 -0
  50. package/dist/src/extensions/core/generative-agents-extension.js.map +1 -0
  51. package/dist/src/extensions/core/memory-bootstrap-extension.js +279 -0
  52. package/dist/src/extensions/core/memory-bootstrap-extension.js.map +1 -0
  53. package/dist/src/extensions/core/ollama-extension.js +442 -0
  54. package/dist/src/extensions/core/ollama-extension.js.map +1 -0
  55. package/dist/src/extensions/core/ollama-router-extension.js +34 -93
  56. package/dist/src/extensions/core/ollama-router-extension.js.map +1 -1
  57. package/dist/src/extensions/core/perennial-memory-extension.js +5 -2
  58. package/dist/src/extensions/core/perennial-memory-extension.js.map +1 -1
  59. package/dist/src/extensions/core/persona-loader-extension.js +41 -15
  60. package/dist/src/extensions/core/persona-loader-extension.js.map +1 -1
  61. package/dist/src/extensions/core/pi-notify-extension.js +6 -0
  62. package/dist/src/extensions/core/pi-notify-extension.js.map +1 -1
  63. package/dist/src/extensions/core/session-bridge-extension.js +8 -72
  64. package/dist/src/extensions/core/session-bridge-extension.js.map +1 -1
  65. package/dist/src/extensions/core/tui-integration-extension-fixed.js +3 -0
  66. package/dist/src/extensions/core/tui-integration-extension-fixed.js.map +1 -0
  67. package/dist/src/extensions/core/tui-integration-extension.js +984 -0
  68. package/dist/src/extensions/core/tui-integration-extension.js.map +1 -0
  69. package/dist/src/gateway/persistence/AgentStore.js +399 -0
  70. package/dist/src/gateway/persistence/AgentStore.js.map +1 -0
  71. package/dist/src/gateway/persistence/index.js +9 -0
  72. package/dist/src/gateway/persistence/index.js.map +1 -0
  73. package/dist/src/hoard/DraconicHoardSystem.js +465 -0
  74. package/dist/src/hoard/DraconicHoardSystem.js.map +1 -0
  75. package/dist/src/index.js +7 -5
  76. package/dist/src/index.js.map +1 -1
  77. package/dist/src/infra/DraconicConnectionPool.js +492 -0
  78. package/dist/src/infra/DraconicConnectionPool.js.map +1 -0
  79. package/dist/src/lair/DraconicLairSystem.js +387 -0
  80. package/dist/src/lair/DraconicLairSystem.js.map +1 -0
  81. package/dist/src/llm/ollama.js +143 -99
  82. package/dist/src/llm/ollama.js.map +1 -1
  83. package/dist/src/migration/openclaw.js +5 -5
  84. package/dist/src/migration/openclaw.js.map +1 -1
  85. package/dist/src/pi-config.js +52 -27
  86. package/dist/src/pi-config.js.map +1 -1
  87. package/dist/src/sessions/SessionManager.js +416 -0
  88. package/dist/src/sessions/SessionManager.js.map +1 -0
  89. package/dist/src/sessions/SessionStore.js +580 -0
  90. package/dist/src/sessions/SessionStore.js.map +1 -0
  91. package/dist/src/sessions/UnifiedSessionBridge.js +394 -0
  92. package/dist/src/sessions/UnifiedSessionBridge.js.map +1 -0
  93. package/dist/src/sessions/index.js +15 -0
  94. package/dist/src/sessions/index.js.map +1 -0
  95. package/dist/src/sessions/migration/index.js +156 -0
  96. package/dist/src/sessions/migration/index.js.map +1 -0
  97. package/dist/src/sessions/types.js +8 -0
  98. package/dist/src/sessions/types.js.map +1 -0
  99. package/dist/src/skills/framework.js +1 -1
  100. package/dist/src/skills/framework.js.map +1 -1
  101. package/dist/src/tui/commands/final-functions.js +39 -0
  102. package/dist/src/tui/commands/final-functions.js.map +1 -0
  103. package/dist/src/tui/commands/natural-language-commands.js +231 -0
  104. package/dist/src/tui/commands/natural-language-commands.js.map +1 -0
  105. package/dist/src/tui/commands/orchestration-commands.js +340 -0
  106. package/dist/src/tui/commands/orchestration-commands.js.map +1 -0
  107. package/dist/src/tui/commands/orchestration-final-section.js +84 -0
  108. package/dist/src/tui/commands/orchestration-final-section.js.map +1 -0
  109. package/dist/src/tui/components/agent-tree-overlay.js +210 -0
  110. package/dist/src/tui/components/agent-tree-overlay.js.map +1 -0
  111. package/dist/src/tui/components/agent-tree-panel.js +229 -0
  112. package/dist/src/tui/components/agent-tree-panel.js.map +1 -0
  113. package/dist/src/tui/components/sidebar.js +82 -0
  114. package/dist/src/tui/components/sidebar.js.map +1 -0
  115. package/dist/src/tui/components/status-bar.js +115 -0
  116. package/dist/src/tui/components/status-bar.js.map +1 -0
  117. package/dist/src/tui/components/tree-header.js +85 -0
  118. package/dist/src/tui/components/tree-header.js.map +1 -0
  119. package/dist/src/tui/draconic-tui.js +291 -0
  120. package/dist/src/tui/draconic-tui.js.map +1 -0
  121. package/dist/src/tui/index.js +93 -0
  122. package/dist/src/tui/index.js.map +1 -0
  123. package/dist/src/tui/pi-tui-integration.js +260 -0
  124. package/dist/src/tui/pi-tui-integration.js.map +1 -0
  125. package/dist/src/utils/nl-patterns.js +145 -0
  126. package/dist/src/utils/nl-patterns.js.map +1 -0
  127. package/package.json +13 -4
  128. package/scripts/migrate-from-openclaw.sh +498 -0
  129. package/HEARTBEAT.md +0 -121
  130. package/USAGE.md +0 -191
package/USAGE.md DELETED
@@ -1,191 +0,0 @@
1
- # 0xKobold Usage Guide
2
-
3
- ## Installation
4
-
5
- ```bash
6
- # Clone the repo
7
- git clone https://github.com/yourusername/0xKobolds.git
8
- cd 0xKobolds
9
-
10
- # Install dependencies
11
- bun install
12
-
13
- # Build the project
14
- bun run build
15
-
16
- # Link globally (recommended)
17
- bun link
18
-
19
- # Or install globally
20
- npm install -g .
21
- ```
22
-
23
- ## Usage Modes
24
-
25
- ### Global Mode (Default)
26
-
27
- When you run `0xkobold` from anywhere, it uses the global configuration:
28
-
29
- ```bash
30
- # Start TUI
31
- 0xkobold
32
-
33
- # Or explicitly
34
- 0xkobold tui
35
- ```
36
-
37
- **In Global Mode:**
38
- - Extensions load from the installed 0xKobold package (dist folder)
39
- - Config: `~/.config/kobold/kobold.json` (or `~/.0xkobold/`)
40
- - Sessions: `~/.0xkobold/sessions/`
41
- - Skills: `~/.0xkobold/skills/`
42
-
43
- ### Local Mode (Per-Project)
44
-
45
- Use `--local` flag to develop within a specific project:
46
-
47
- ```bash
48
- # Navigate to your project
49
- cd ~/my-project
50
-
51
- # Start in local mode
52
- 0xkobold --local
53
-
54
- # Or use the explicit local command
55
- 0xkobold local
56
- ```
57
-
58
- **In Local Mode:**
59
- - Extensions still load from the installed 0xKobold package (so features work)
60
- - Config: `./kobold.json` (creates if doesn't exist)
61
- - Sessions: `./.kobold/sessions/`
62
- - Skills: `./skills/` (falls back to global)
63
- - Memory: `./.kobold/memory.db`
64
-
65
- ## Project Setup (Local Mode)
66
-
67
- Create a `kobold.json` in your project root:
68
-
69
- ```json
70
- {
71
- "meta": {
72
- "version": "1.0.0",
73
- "description": "My Project"
74
- },
75
- "agents": {
76
- "defaults": {
77
- "model": "ollama/kimi-k2.5:cloud",
78
- "heartbeat": {
79
- "enabled": true,
80
- "every": "30m"
81
- }
82
- }
83
- }
84
- }
85
- ```
86
-
87
- Create a `HEARTBEAT.md` for periodic check-ins:
88
-
89
- ```markdown
90
- # Project Checklist
91
-
92
- - [ ] Review pending tasks
93
- - [ ] Check for blocked items
94
- - [ ] Update documentation
95
- ```
96
-
97
- ## Extension System
98
-
99
- Extensions are bundled with the package and auto-load:
100
-
101
- | Category | Extensions |
102
- |----------|-----------|
103
- | Infrastructure | ollama-provider, session-bridge |
104
- | Core | heartbeat, mode-manager, task-manager, context-pruning |
105
- | Multi-Channel | discord-channel, multi-channel |
106
- | Safety | protected-paths, confirm-destructive, git-checkpoint |
107
- | Integrations | mcp, gateway, websearch |
108
-
109
- ## Troubleshooting
110
-
111
- ### Extensions Not Loading
112
-
113
- If you see "No models available" or extensions fail to load:
114
-
115
- ```bash
116
- # Rebuild the project
117
- bun run build
118
-
119
- # Re-link if using bun link
120
- bun unlink
121
- bun link
122
- ```
123
-
124
- ### Local Mode Not Working
125
-
126
- ```bash
127
- # Check if local mode is active
128
- echo $KOBOLD_LOCAL_MODE # should print 'true' in local mode
129
-
130
- # Verify kobold.json exists in CWD
131
- ls -la kobold.json
132
-
133
- # Check which config is being loaded
134
- 0xkobold config file
135
- ```
136
-
137
- ### Debug Extension Paths
138
-
139
- The TUI will print whether it's running in:
140
- - `Production (from dist)` - global install, uses .js extensions
141
- - `Development (from source)` - dev mode, uses .ts extensions
142
- - `LOCAL mode` - project-specific development
143
-
144
- ## Environment Variables
145
-
146
- | Variable | Description |
147
- |----------|-------------|
148
- | `KOBOLD_CONFIG_PATH` | Override config file location |
149
- | `KOBOLD_HOME` | Override base directory (default: ~/.config/kobold) |
150
- | `KOBOLD_LOCAL_MODE` | Set to 'true' for local mode (auto-set by --local) |
151
- | `PI_CODING_AGENT_DIR` | Base dir for pi-coding-agent (default: ~/.0xkobold) |
152
-
153
- ## CLI Commands
154
-
155
- ```bash
156
- # Global commands
157
- 0xkobold status # Check service status
158
- 0xkobold stop # Stop daemon
159
- 0xkobold logs # View logs
160
-
161
- # Discord
162
- 0xkobold discord status # Check Discord connection
163
- 0xkobold discord test # Send test message
164
-
165
- # Config
166
- 0xkobold config file # Show config path
167
- 0xkobold config init # Create default config
168
-
169
- # Local development
170
- 0xkobold local # Start in local mode
171
- 0xkobold --local # Same as above
172
- ```
173
-
174
- ## Development
175
-
176
- When developing 0xKobold itself:
177
-
178
- ```bash
179
- cd ~/Documents/code/0xKobolds
180
-
181
- # Run from source (dev mode)
182
- bun run tui
183
-
184
- # Watch and rebuild
185
- bun run dev
186
-
187
- # Build for production
188
- bun run build
189
- ```
190
-
191
- In dev mode, extensions load directly from `src/` as `.ts` files.