Commit b2b3b38
committed
backend — runtime, sentinel, AI adapters, connectors, safety
Add springtale-runtime crate: shared init, state, and operations layer used by both springtaled and the Tauri desktop app. Unifies connector registry, rule engine, AI adapter, sentinel, and canvas into one boot sequence. springtale-sentinel (new):
- Circuit breaker, rate limiter, toxic pair detection, dead man switch
- Impact scoring, verdict system, audit trail with export
- Store migrations (003_sentinel, 004_safety, 005_formations)
springtale-ai adapters:
- Ollama, OpenAI, Anthropic typed API clients with rustls-tls
- NL→Rule parser (prompt templates + rule generation)
- Voice adapter stubs (STT/TTS traits)
- Adapter factory with config-driven selection
6 new connectors (Phase 2a chat + social):
- connector-discord: gateway, 5 actions, message/reaction triggers
- connector-slack: RTM gateway, 6 actions, message/reaction triggers
- connector-irc: raw TCP gateway, 5 actions, message/join triggers
- connector-nostr: relay gateway, 4 actions, note/DM triggers
- connector-signal: signal-cli gateway, 3 actions, message triggers
- connector-browser: headless browser, 5 actions (navigate/click/fill/extract/screenshot)
Connector factory system:
- ConnectorFactory trait + inventory-based auto-registration
- Factory modules for all 13 connectors (7 existing + 6 new)
springtale-bot extensions:
- Cooperation framework (16 modules from COOPERATION.pdf)
- Orchestrator with recursive pipelines, sub-agents, fuel system
- AT Protocol bridge stub
Safety & vault:
- Duress passphrase, vault backup, panic wipe
- HttpTransport with TLS server
- Canvas typed block system
- Heartbeat monitor
- In-memory store backend for testing
- Formations store + operations
CLI + daemon API expansions:
- 7 new CLI commands (vault, panic, travel, agent, memory, crypto, data)
- 8 new API endpoints (canvas, formations, sessions, safety, config, SSE streams)
- Runtime connector factory integration in springtaled boot1 parent 614d33b commit b2b3b38
296 files changed
Lines changed: 23263 additions & 584 deletions
File tree
- apps
- springtale-cli
- src
- commands
- springtaled
- src
- api
- runtime
- connectors
- tests
- connectors
- connector-bluesky
- src
- connector-browser
- src
- actions
- auth
- client
- triggers
- connector-discord
- src
- actions
- auth
- client
- gateway
- triggers
- connector-filesystem
- src
- connector-github
- src
- connector-http
- src
- connector-irc
- src
- actions
- auth
- client
- gateway
- triggers
- connector-kick
- src
- connector-nostr
- src
- actions
- auth
- client
- gateway
- triggers
- connector-presearch
- src
- connector-shell
- src
- connector-signal
- src
- actions
- auth
- client
- gateway
- triggers
- connector-slack
- src
- actions
- auth
- client
- gateway
- triggers
- connector-telegram
- src
- crates
- springtale-ai
- src
- adapter
- voice
- anthropic
- ollama
- openai
- parser
- springtale-bot
- src
- bridge
- cooperation
- memory
- orchestrator
- runtime
- springtale-connector
- src
- connector
- factory
- native
- springtale-core/src
- canvas
- pipeline
- springtale-crypto
- src/vault
- springtale-runtime
- src
- operations
- springtale-scheduler/src
- heartbeat
- springtale-sentinel
- src
- audit
- springtale-store
- src
- backend
- migrations
- schema
- springtale-transport
- src
- http
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
26 | 39 | | |
27 | 40 | | |
28 | 41 | | |
29 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
30 | 48 | | |
31 | 49 | | |
32 | 50 | | |
| |||
38 | 56 | | |
39 | 57 | | |
40 | 58 | | |
| 59 | + | |
41 | 60 | | |
42 | 61 | | |
43 | 62 | | |
| |||
75 | 94 | | |
76 | 95 | | |
77 | 96 | | |
| 97 | + | |
78 | 98 | | |
79 | | - | |
| 99 | + | |
| 100 | + | |
80 | 101 | | |
81 | 102 | | |
82 | | - | |
| 103 | + | |
83 | 104 | | |
84 | 105 | | |
85 | 106 | | |
| |||
116 | 137 | | |
117 | 138 | | |
118 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
119 | 146 | | |
120 | 147 | | |
121 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
122 | 152 | | |
123 | 153 | | |
124 | 154 | | |
| |||
143 | 173 | | |
144 | 174 | | |
145 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
146 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 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 | + | |
43 | 98 | | |
44 | 99 | | |
45 | 100 | | |
| |||
87 | 142 | | |
88 | 143 | | |
89 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
90 | 157 | | |
91 | 158 | | |
92 | 159 | | |
93 | 160 | | |
94 | 161 | | |
95 | 162 | | |
96 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | | - | |
7 | | - | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
| |||
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
55 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | | - | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
90 | 83 | | |
91 | 84 | | |
92 | 85 | | |
| |||
0 commit comments