snapkitty
developer-tools
kotlin
SNAPKITTYWEST commited on
Commit
d736a02
Β·
verified Β·
1 Parent(s): 7d8aa82

Sync with GitHub, license metadata from LICENSE files, commercial license notice

Browse files

metadata license: None -> other (sovereign-source-license)
README: License section appended

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