Sync with GitHub, license metadata from LICENSE files, commercial license notice
Browse filesmetadata license: None -> other (sovereign-source-license)
README: License section appended
README.md
CHANGED
|
@@ -1,166 +1,180 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
---
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
---
|
| 33 |
-
|
| 34 |
-
##
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 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 |
-
|
| 98 |
-
#
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
The
|
| 151 |
-
|
| 152 |
-
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: sovereign-source-license
|
| 4 |
+
license_link: https://huggingface.co/Snapkitty/myapplication/blob/main/LICENSE
|
| 5 |
+
tags:
|
| 6 |
+
- snapkitty
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
<div align="center">
|
| 10 |
+
|
| 11 |
+
```
|
| 12 |
+
β² β²
|
| 13 |
+
βββββββ
|
| 14 |
+
ββββββββ
|
| 15 |
+
ββββββ
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
# SNAPKITTY BOT
|
| 19 |
+
|
| 20 |
+
### The SnapKitty fortress in your Discord server.
|
| 21 |
+
|
| 22 |
+
[](../LICENSE)
|
| 23 |
+
[](https://discord.gg/dugymT3rj)
|
| 24 |
+
[](https://www.typescriptlang.org)
|
| 25 |
+
[](https://prisma.io)
|
| 26 |
+
[](https://collectivekitty.com)
|
| 27 |
+
|
| 28 |
+
**[collectivekitty.com](https://collectivekitty.com) Β· [DEVFLOW-FINANCE](https://github.com/SNAPKITTYWEST/DEVFLOW-FINANCE) Β· [Invite Bot](https://discord.gg/dugymT3rj)**
|
| 29 |
+
|
| 30 |
+
</div>
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## What This Is
|
| 35 |
+
|
| 36 |
+
SnapKitty Bot brings all 11 sovereign agents into Discord. Ask any agent a question, manage money pools, check your fundability tier, read the live Bifrost audit trail β all from slash commands.
|
| 37 |
+
|
| 38 |
+
This is a **standalone Express server** that receives Discord interactions via webhook. It connects to the same Neon PostgreSQL database as the main SnapKitty OS and routes `/ask` queries through the Ollama-powered reasoning engine at `collectivekitty.com`.
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
## Commands
|
| 43 |
+
|
| 44 |
+
| Command | What it does |
|
| 45 |
+
|---------|-------------|
|
| 46 |
+
| `/ask [agent] [message]` | Route any question to any of the 11 agents |
|
| 47 |
+
| `/pool create` | Create a named money pool |
|
| 48 |
+
| `/pool list` | See all active pools and balances |
|
| 49 |
+
| `/pool fund` | Add capital to a pool |
|
| 50 |
+
| `/pool close` | Archive a pool |
|
| 51 |
+
| `/tier` | Current fundability tier status and blockers |
|
| 52 |
+
| `/agents` | Full agent directory in plain English |
|
| 53 |
+
| `/status` | System health β Bifrost, DB, infrastructure |
|
| 54 |
+
| `/seal` | Last decision seal hash |
|
| 55 |
+
| `/audit` | Last 5 Bifrost events with risk scores |
|
| 56 |
+
| `/merkle` | Merkle root and WORM chain entry count |
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
## The 11 Agents
|
| 61 |
+
|
| 62 |
+
| Agent | Key | Domain |
|
| 63 |
+
|-------|-----|--------|
|
| 64 |
+
| **RELAY** | `bridge` | Human-Machine Bridge β start here |
|
| 65 |
+
| **AXIOM** | `finance` | GL Β· Triple-Entry Β· Money Pools |
|
| 66 |
+
| **VAULT** | `treasury` | Reserves Β· Payments Β· **Veto authority** |
|
| 67 |
+
| **NEXUS** | `crm` | Pipeline Β· Deals Β· Forecast |
|
| 68 |
+
| **FORGE** | `procurement` | Vendors Β· POs Β· Spend |
|
| 69 |
+
| **HERALD** | `bifrost` | Event Routing Β· Traces |
|
| 70 |
+
| **TENSOR** | `ml` | Risk Scoring Β· Anomaly Detection |
|
| 71 |
+
| **SENTINEL** | `risk` | Compliance Β· Threat Score |
|
| 72 |
+
| **LEDGE** | `auditor` | WORM Ledger Β· Audit Chain |
|
| 73 |
+
| **ATLAS** | `operator` | Health Β· **Tier gate authority** |
|
| 74 |
+
| **QUILL** | `scriptwriter` | Reports Β· Decks Β· Copy |
|
| 75 |
+
|
| 76 |
+
---
|
| 77 |
+
|
| 78 |
+
## Setup
|
| 79 |
+
|
| 80 |
+
### 1. Clone and install
|
| 81 |
+
|
| 82 |
+
```bash
|
| 83 |
+
git clone https://github.com/SNAPKITTYWEST/myapplication.git
|
| 84 |
+
cd myapplication
|
| 85 |
+
npm install
|
| 86 |
+
npx prisma generate
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
### 2. Configure environment
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
cp .env.example .env
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
Fill in `.env`:
|
| 96 |
+
|
| 97 |
+
```env
|
| 98 |
+
DISCORD_PUBLIC_KEY= # from Discord Developer Portal β your app β General Information
|
| 99 |
+
DISCORD_APP_ID= # same page
|
| 100 |
+
DISCORD_BOT_TOKEN= # Bot β Token
|
| 101 |
+
DATABASE_URL= # Neon PostgreSQL connection string
|
| 102 |
+
SNAPKITTY_API_URL=https://collectivekitty.com
|
| 103 |
+
PORT=3001
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
### 3. Register slash commands (once)
|
| 107 |
+
|
| 108 |
+
```bash
|
| 109 |
+
npm run register
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
### 4. Run the bot
|
| 113 |
+
|
| 114 |
+
```bash
|
| 115 |
+
# Development
|
| 116 |
+
npm run dev
|
| 117 |
+
|
| 118 |
+
# Production
|
| 119 |
+
npm run build && npm start
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
### 5. Connect to Discord
|
| 123 |
+
|
| 124 |
+
In the [Discord Developer Portal](https://discord.com/developers/applications):
|
| 125 |
+
- Go to **General Information** β set **Interactions Endpoint URL** to your server:
|
| 126 |
+
```
|
| 127 |
+
https://your-domain.com/interactions
|
| 128 |
+
```
|
| 129 |
+
- Discord will verify the endpoint with a PING. If it responds with PONG, you're live.
|
| 130 |
+
|
| 131 |
+
For local development, use [ngrok](https://ngrok.com) or [Cloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/) to expose `localhost:3001`.
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
## Architecture
|
| 136 |
+
|
| 137 |
+
```
|
| 138 |
+
Discord β POST /interactions
|
| 139 |
+
β
|
| 140 |
+
βββ verifyKey() β Ed25519 signature validation
|
| 141 |
+
β
|
| 142 |
+
βββ /ask β askAgent() β Ollama at collectivekitty.com β reply
|
| 143 |
+
βββ /pool β Prisma β Neon PostgreSQL β reply
|
| 144 |
+
βββ /tier β Prisma β live deal/vendor/pool counts β reply
|
| 145 |
+
βββ /status β Prisma β Bifrost event counts β reply
|
| 146 |
+
βββ /seal β Prisma β last BifrostEvent β reply
|
| 147 |
+
βββ /audit β Prisma β last 5 BifrostEvents β reply
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
The bot validates every Discord request with Ed25519 before processing. Unauthenticated requests are rejected with 401.
|
| 151 |
+
|
| 152 |
+
---
|
| 153 |
+
|
| 154 |
+
## Part of the SnapKitty Fortress
|
| 155 |
+
|
| 156 |
+
This bot is the **Discord interface layer** of the SnapKitty Sovereign OS.
|
| 157 |
+
|
| 158 |
+
The full system lives in [DEVFLOW-FINANCE](https://github.com/SNAPKITTYWEST/DEVFLOW-FINANCE):
|
| 159 |
+
- Rust core with SHA-256 WORM ledger and 5-tier state machine
|
| 160 |
+
- Next.js War Room where agents think out loud in real time
|
| 161 |
+
- Bifrost event pipeline, Plaid banking, Stripe Issuing
|
| 162 |
+
- Local Ollama LLM reasoning (no OpenAI dependency)
|
| 163 |
+
|
| 164 |
+
---
|
| 165 |
+
|
| 166 |
+
<div align="center">
|
| 167 |
+
|
| 168 |
+
*SnapKitty Sovereign OS β built in the open, proven in chain.*
|
| 169 |
+
|
| 170 |
+
**[collectivekitty.com](https://collectivekitty.com) Β· [DEVFLOW-FINANCE](https://github.com/SNAPKITTYWEST/DEVFLOW-FINANCE) Β· [Discord](https://discord.gg/dugymT3rj)**
|
| 171 |
+
|
| 172 |
+
</div>
|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
|
| 176 |
+
---
|
| 177 |
+
|
| 178 |
+
## License
|
| 179 |
+
|
| 180 |
+
Licensed under **Sovereign Source License**. Full text: [LICENSE](LICENSE).
|