JosephStoneCellAI commited on
Commit
c0a7b0d
·
verified ·
1 Parent(s): 917bb57

Delete SPFsmartGATE

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. SPFsmartGATE/CLAUDE.md +0 -369
  2. SPFsmartGATE/Cargo.lock +0 -0
  3. SPFsmartGATE/Cargo.toml +0 -157
  4. SPFsmartGATE/LICENSE +0 -201
  5. SPFsmartGATE/LIVE/BRAIN/DOCS/00138ec318eecbfb.txt +0 -1
  6. SPFsmartGATE/LIVE/BRAIN/DOCS/002564d818eecbfb.txt +0 -1
  7. SPFsmartGATE/LIVE/BRAIN/DOCS/002a401e18eecbfb.txt +0 -1
  8. SPFsmartGATE/LIVE/BRAIN/DOCS/003bc3e766b9453b.txt +0 -1
  9. SPFsmartGATE/LIVE/BRAIN/DOCS/00431ee918eecbfb.txt +0 -1
  10. SPFsmartGATE/LIVE/BRAIN/DOCS/00476ea318eecbfb.txt +0 -1
  11. SPFsmartGATE/LIVE/BRAIN/DOCS/0047f9a018eecbfb.txt +0 -1
  12. SPFsmartGATE/LIVE/BRAIN/DOCS/004aa17ae3e9a047.txt +0 -1
  13. SPFsmartGATE/LIVE/BRAIN/DOCS/004e3e2718eecbfb.txt +0 -1
  14. SPFsmartGATE/LIVE/BRAIN/DOCS/004f9253099c0022.txt +0 -10
  15. SPFsmartGATE/LIVE/BRAIN/DOCS/0053ce5a7d8c5e06.txt +0 -3
  16. SPFsmartGATE/LIVE/BRAIN/DOCS/0057791ce3e9a047.txt +0 -1
  17. SPFsmartGATE/LIVE/BRAIN/DOCS/006f3e5672558812.txt +0 -1
  18. SPFsmartGATE/LIVE/BRAIN/DOCS/007ff6fb0df04103.txt +0 -11
  19. SPFsmartGATE/LIVE/BRAIN/DOCS/0080abb918eecbfb.txt +0 -1
  20. SPFsmartGATE/LIVE/BRAIN/DOCS/0082a50e18eecbfb.txt +0 -1
  21. SPFsmartGATE/LIVE/BRAIN/DOCS/008622810f9d72c0.txt +0 -2
  22. SPFsmartGATE/LIVE/BRAIN/DOCS/009200fd18eecbfb.txt +0 -1
  23. SPFsmartGATE/LIVE/BRAIN/DOCS/00995dc718eecbfb.txt +0 -1
  24. SPFsmartGATE/LIVE/BRAIN/DOCS/009ed36718eecbfb.txt +0 -1
  25. SPFsmartGATE/LIVE/BRAIN/DOCS/009efc1366b9453b.txt +0 -1
  26. SPFsmartGATE/LIVE/BRAIN/DOCS/009fa28418eecbfb.txt +0 -1
  27. SPFsmartGATE/LIVE/BRAIN/DOCS/00a6b446e3e9a047.txt +0 -1
  28. SPFsmartGATE/LIVE/BRAIN/DOCS/00a82e2e18eecbfb.txt +0 -1
  29. SPFsmartGATE/LIVE/BRAIN/DOCS/00af205718eecbfb.txt +0 -1
  30. SPFsmartGATE/LIVE/BRAIN/DOCS/00b9e50e18eecbfb.txt +0 -1
  31. SPFsmartGATE/LIVE/BRAIN/DOCS/00bd3fa718eecbfb.txt +0 -1
  32. SPFsmartGATE/LIVE/BRAIN/DOCS/00d57acc18eecbfb.txt +0 -1
  33. SPFsmartGATE/LIVE/BRAIN/DOCS/00d8080d7e9ed096.txt +0 -1
  34. SPFsmartGATE/LIVE/BRAIN/DOCS/00db76377e9ed096.txt +0 -1
  35. SPFsmartGATE/LIVE/BRAIN/DOCS/00db81ec18eecbfb.txt +0 -1
  36. SPFsmartGATE/LIVE/BRAIN/DOCS/00dd30fbf53e958a.txt +0 -9
  37. SPFsmartGATE/LIVE/BRAIN/DOCS/00dff9b518eecbfb.txt +0 -1
  38. SPFsmartGATE/LIVE/BRAIN/DOCS/00e1efae18eecbfb.txt +0 -1
  39. SPFsmartGATE/LIVE/BRAIN/DOCS/00e37a8a18eecbfb.txt +0 -1
  40. SPFsmartGATE/LIVE/BRAIN/DOCS/00f901df18eecbfb.txt +0 -1
  41. SPFsmartGATE/LIVE/BRAIN/DOCS/0102f3c0e51c3ba9.txt +0 -6
  42. SPFsmartGATE/LIVE/BRAIN/DOCS/010e4d1d18eecbfb.txt +0 -1
  43. SPFsmartGATE/LIVE/BRAIN/DOCS/010f0503bf92e1c1.txt +0 -12
  44. SPFsmartGATE/LIVE/BRAIN/DOCS/011002ec18eecbfb.txt +0 -1
  45. SPFsmartGATE/LIVE/BRAIN/DOCS/0115e4a218eecbfb.txt +0 -1
  46. SPFsmartGATE/LIVE/BRAIN/DOCS/01234dec18eecbfb.txt +0 -1
  47. SPFsmartGATE/LIVE/BRAIN/DOCS/0129b91bfaaf3b19.txt +0 -3
  48. SPFsmartGATE/LIVE/BRAIN/DOCS/01392ce218eecbfb.txt +0 -1
  49. SPFsmartGATE/LIVE/BRAIN/DOCS/015993c918eecbfb.txt +0 -1
  50. SPFsmartGATE/LIVE/BRAIN/DOCS/017d7ec418eecbfb.txt +0 -1
SPFsmartGATE/CLAUDE.md DELETED
@@ -1,369 +0,0 @@
1
-
2
- }
3
- {
4
- "version": "3.0",
5
- "updated": "2026-01-28",
6
- "copyright": "Joseph Stone 2026 - All Rights
7
- Reserved",
8
-
9
- "boot_sequence": {
10
- "mandatory": true,
11
- "steps": [
12
- "READ TRIAD-CMD/BOOT.md FIRST (identity,
13
- working directory, state)",
14
- "READ TRIAD-CMD/STATUS.md (completed work,
15
- pending, blocked)",
16
- "READ TRIAD-CMD/MORAL_FRAMEWORK.md (core
17
- values, IMMUTABLE)",
18
- "READ TRIAD-CMD/MEMORY_TRIAD.md (memory
19
- systems, persistence)",
20
- "READ TRIAD-CMD/WORKFLOW.md (confidence
21
- grading, SearchSeeker)",
22
- "REPORT: I have read TRIAD-CMD boot
23
- sequence. Awaiting your direction.",
24
- "DO NOTHING until user gives explicit
25
- direction",
26
- "NEVER auto-proceed through any task
27
- list"
28
- ]
29
- },
30
-
31
- "enforcement": {
32
- "before_any_action": [
33
- "Has user explicitly requested THIS
34
- SPECIFIC action? NO = STOP",
35
- "Did user say yes/approved/do it/proceed?
36
- NO = STOP",
37
- "Am I assuming what user wants? YES =
38
- STOP AND ASK"
39
- ],
40
- "task_lists": {
41
- "auto_execute": false,
42
- "purpose": "memory aid only",
43
- "each_task_requires": "fresh approval",
44
- "in_progress_means": "NOTHING without
45
- user saying proceed"
46
- },
47
- "violation": "User trust broken. Stop
48
- everything. Apologize. Wait."
49
- },
50
-
51
- "priority_order": [
52
- "1. User's direct words (HIGHEST - always
53
- wins)",
54
- "2. HARDCODE-RULES.md",
55
- "3. STATUS.txt",
56
- "4. Everything else"
57
- ],
58
-
59
- "stop_triggers": [
60
- "User says stop",
61
- "User asks what are you doing",
62
- "User sounds confused or frustrated",
63
- "About to do something not explicitly
64
- requested",
65
- "About to proceed to next task
66
- automatically",
67
- "Any uncertainty about what user wants"
68
- ],
69
-
70
- "rules": {
71
- "read_and_acknowledge": {
72
- "description": "Read and acknowledge
73
- EVERYTHING the user says",
74
- "actions": [
75
- "Do not ignore any part of user
76
- messages",
77
- "If unclear, ask for clarification",
78
- "ATTENTION TO DETAIL IS A MUST"
79
- ],
80
- "violation": "Re-read user message,
81
- acknowledge what was missed, correct
82
- immediately"
83
- },
84
-
85
- "no_modifications_without_approval": {
86
- "description": "NEVER modify without
87
- explicit user direction",
88
- "actions": [
89
- "NEVER modify system files, folders, or
90
- data without explicit user direction",
91
- "NEVER make changes that were not
92
- directly requested",
93
- "Before advising other changes, offer
94
- options and wait for approval",
95
- "Always add to files — never replace or
96
- overwrite",
97
- "Original build folder is VIEW ONLY",
98
- "Twin folder for working/testing —
99
- proven changes added to original by user only"
100
- ],
101
- "violation": "Data security breach / User
102
- trust broken"
103
- },
104
-
105
- "workflow": {
106
- "description": "Work exactly as
107
- requested",
108
- "actions": [
109
- "NEVER MODIFY OR MAKE CHANGES NOT
110
- DIRECTLY REQUESTED",
111
- "Have clear overview before making
112
- plans",
113
- "Ask user for more details if
114
- required",
115
- "Work allocation governed by SPF dynamic formula — see stonecell_processing_formula section",
116
- "Value quality over speed",
117
- "Test all build plans before
118
- implementing"
119
- ]
120
- },
121
-
122
- "critical": {
123
- "never": [
124
- "Do something not directly requested",
125
- "Auto-start tasks without
126
- confirmation",
127
- "Wander file systems outside work area
128
- unless requested"
129
- ],
130
- "always": [
131
- "Recap before starting unless user
132
- gives go-ahead"
133
- ]
134
- },
135
-
136
- "code_quality": {
137
- "requirements": [
138
- "Adhere to best coding practices",
139
- "Ensure security when building",
140
- "Advise user of potential threats and
141
- solutions"
142
- ]
143
- },
144
-
145
- "architecture_first": {
146
- "threshold": ">200 lines or
147
- multi-module",
148
- "requirements": [
149
- "Propose high-level architecture
150
- diagram",
151
- "SOLID breakdown",
152
- "Data flow",
153
- "User must approve before proceeding"
154
- ]
155
- },
156
-
157
- "edit_removal_protocol": {
158
- "description": "Before ANY edit or removal, present HOW and WHY for user approval",
159
- "mandatory": true,
160
- "before_any_edit": [
161
- "Present WHAT will be changed (file path, line numbers)",
162
- "Present HOW it will be changed (old code → new code)",
163
- "Present WHY this change is needed",
164
- "WAIT for explicit user approval"
165
- ],
166
- "before_any_removal": [
167
- "Present WHAT will be removed",
168
- "Present WHY removal is necessary",
169
- "Confirm no dependencies will break",
170
- "WAIT for explicit user approval"
171
- ],
172
- "priority_rule": {
173
- "original_code_priority": true,
174
- "description": "Original code holds priority to maintain system build and function",
175
- "actions": [
176
- "Preserve original logic unless explicitly requested to change",
177
- "New code must integrate with existing patterns",
178
- "Never break existing functionality for new features",
179
- "When in doubt, keep original"
180
- ]
181
- },
182
- "violation": "STOP. Present missing HOW/WHY. Wait for approval."
183
- },
184
-
185
- "stonecell_processing_formula": {
186
- "version": "1.1",
187
- "created": "2026-01-28",
188
- "author": "Joseph Stone & Claude",
189
- "reference_doc": "STONECELL_PROCESSING_FORMULA_REFERENCE.txt",
190
-
191
- "master_equation": {
192
- "description": "P(success) = 1 - PRODUCT(1 - P_i) for i=1..D subtasks",
193
- "subtask_probability": "P_i = Q(a) × L(m) × V(v) × B(b)",
194
- "Q": "Quality from analysis depth: Q(a) = 1 - e^(-0.00004 × a)",
195
- "L": "Lookup from external memory: L(m) = 1 - 0.20^(m/2000)",
196
- "V": "Verification accuracy: V(v) = 1 - (1 - 0.75)^v",
197
- "B": "Build Anchor compliance: B(b) = checks_done / checks_required"
198
- },
199
-
200
- "dynamic_analysis_allocation": {
201
- "replaces": "fixed 70/30 rule",
202
- "formula": "a_optimal(C) = W_eff × (1 - 1/ln(C + e))",
203
- "complexity_formula": "C = (basic ^ 1) + (dependencies ^ 7) + (complex ^ 10) + (files × 10)",
204
- "thresholds": {
205
- "simple": { "C_max": 500, "analyze": "40%", "build": "60%", "verify_passes": 1 },
206
- "light": { "C_max": 2000, "analyze": "60%", "build": "40%", "verify_passes": 1 },
207
- "medium": { "C_max": 10000, "analyze": "75%", "build": "25%", "verify_passes": 2 },
208
- "critical": { "C_max": 99999, "analyze": "95%", "build": "5%", "verify_passes": 3 }
209
- }
210
- },
211
-
212
- "build_anchor_protocol": {
213
- "mandatory": true,
214
- "before_any_code": true,
215
- "checks": [
216
- "Read target file — ALWAYS",
217
- "Read connected files — when modifying interfaces",
218
- "Read STATUS.txt — when touching > 1 module",
219
- "Read architecture doc — when adding new module",
220
- "Verify functions exist — when calling existing code",
221
- "Verify types match — when passing data between modules"
222
- ],
223
- "output_format": "BUILD ANCHOR CHECK with file names + completion count",
224
- "if_incomplete": "DO NOT WRITE CODE. Load missing anchors first."
225
- },
226
-
227
- "change_manifest": {
228
- "mandatory_when": "C > 100 or modifying existing code",
229
- "required_fields": [
230
- "Target file + current state (lines, functions)",
231
- "Each change: ADD / MODIFY / REMOVE with line numbers",
232
- "Net line change estimate",
233
- "Risk level",
234
- "Dependencies verified (Y/N)",
235
- "Connected files affected"
236
- ],
237
- "requires_user_approval": true
238
- },
239
-
240
- "decomposition_rule": {
241
- "mandatory_when": "C > 500 OR output would exceed 500 lines",
242
- "safe_output_per_subtask": 500,
243
- "max_files_per_subtask": 7,
244
- "checkpoint_after_each_subtask": true,
245
- "formula": "D = ceil(C / 350)"
246
- },
247
-
248
- "signal_to_noise_enforcement": {
249
- "purpose": "Prevent dialog from drowning project context",
250
- "target_ratio": "3:1 structured artifacts to unstructured discussion",
251
- "for_C_over_5000": {
252
- "max_explanation": "3 sentences — point to reference doc for details",
253
- "default_mode": "structured artifacts (anchors, manifests, code, checkpoints)",
254
- "discussion_only_when": "user asks a question"
255
- },
256
- "context_budget": {
257
- "active_code_files": "40%",
258
- "architecture_and_status": "15%",
259
- "change_manifests": "10%",
260
- "external_memory_brain": "10%",
261
- "user_instructions": "10%",
262
- "discussion": "10%",
263
- "safety_buffer": "5%"
264
- }
265
- },
266
-
267
- "memory_triad": {
268
- "description": "Three redundant memory systems — if any one fails, other two recover",
269
- "system_1_brain": {
270
- "type": "Semantic memory (Brain/RAG)",
271
- "stores": "Chunked project knowledge indexed by meaning",
272
- "query": "Natural language search — brain_search / brain_recall",
273
- "update": "After major code changes or architectural decisions"
274
- },
275
- "system_2_status": {
276
- "type": "Sequential memory (STATUS.txt)",
277
- "stores": "Current phase, last action, next step, blockers",
278
- "query": "Direct file read",
279
- "update": "After EVERY subtask completion"
280
- },
281
- "system_3_tasklist": {
282
- "type": "Structural memory (Task List)",
283
- "stores": "All tasks, dependencies, completion states, progress",
284
- "query": "TaskList / TaskGet",
285
- "update": "As tasks progress"
286
- },
287
- "checkpoint_protocol": {
288
- "when": "After every subtask, before session breaks, when context > 70%",
289
- "save_to": "All 3 systems",
290
- "contents": [
291
- "What was completed",
292
- "Files modified (with line counts)",
293
- "Key decisions made",
294
- "Current system state",
295
- "What comes next",
296
- "Blockers / open questions"
297
- ]
298
- },
299
- "session_recovery": {
300
- "mandatory_steps": [
301
- "1. Read HARDCODE RULES",
302
- "2. Read STATUS.txt — project state",
303
- "3. Read Task List — progress and next task",
304
- "4. Query Brain for current phase context",
305
- "5. Read SPECIFIC files needed for next subtask",
306
- "6. Produce Build Anchor Check",
307
- "7. WAIT for user direction"
308
- ],
309
- "never": "Trust conversation history from previous sessions. Re-read from FILES."
310
- }
311
- },
312
-
313
- "failure_recovery": {
314
- "on_anchor_lost": [
315
- "STOP immediately — do not continue writing code",
316
- "State: Build anchor lost. Initiating recovery.",
317
- "Re-read STATUS.txt",
318
- "Re-read Task List",
319
- "Re-read last Change Manifest or Breadcrumb",
320
- "Re-read target files from disk",
321
- "Produce NEW Build Anchor Check",
322
- "Continue from last verified point"
323
- ],
324
- "on_hallucination_detected": [
325
- "STOP immediately",
326
- "State: Potential hallucination. Verifying against codebase.",
327
- "Search codebase for the function/type in question",
328
- "If it does not exist: discard that code block entirely",
329
- "Re-anchor from actual codebase files",
330
- "Rewrite from verified reality"
331
- ],
332
- "on_user_says_lost": [
333
- "STOP immediately",
334
- "Apologize briefly (1 sentence max)",
335
- "Execute full Session Recovery Protocol",
336
- "Present: Here is where I think we are: [summary from files]",
337
- "WAIT for user to confirm or correct"
338
- ]
339
- },
340
-
341
- "output_limits": {
342
- "quality_threshold": "500 lines per response (high coherence zone)",
343
- "hard_max": "4000 lines per response",
344
- "max_files_per_subtask": 7,
345
- "max_reasoning_chain": "10 dependent logical steps",
346
- "max_simultaneous_subsystems": 7
347
- },
348
-
349
- "capacity_reference": {
350
- "context_window_total": "200,000 tokens",
351
- "effective_working_memory": "40,000 tokens",
352
- "memory_decay": "15-25% loss per 50K tokens of new context",
353
- "single_pass_verification": "75% error detection rate",
354
- "note": "These are observed values for Claude Opus 4.5 — recalibrate if model changes"
355
- }
356
- }
357
- },
358
-
359
- "project_folders": {
360
- "work": "stoneshell-work/",
361
- "original": "stoneshell-original/ (VIEW
362
- ONLY)",
363
- "status_file":
364
- "stoneshell-work/STATUS.txt",
365
- "rules_file":
366
- "stoneshell-work/HARDCODE-RULES.md"
367
- }
368
- }
369
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
SPFsmartGATE/Cargo.lock DELETED
The diff for this file is too large to render. See raw diff
 
SPFsmartGATE/Cargo.toml DELETED
@@ -1,157 +0,0 @@
1
- # SPF Smart Gateway - MCP Command Gateway
2
- # Copyright 2026 Joseph Stone - All Rights Reserved
3
- #
4
- # All tool calls route through this gateway.
5
- # Enforces SPF complexity formula, validates rules,
6
- # gates all file/bash operations. Pure Rust, LMDB state,
7
- # MCP stdio JSON-RPC 2.0.
8
-
9
- [package]
10
- name = "spf-smart-gate"
11
- version = "3.0.0"
12
- edition = "2021"
13
- authors = ["Joseph Stone <joepcstone@gmail.com>"]
14
- description = "SPF Smart GATE - MCP command gateway with complexity enforcement"
15
- license-file = "LICENSE.md"
16
- repository = "https://github.com/STONE-CELL-SPF-JOSEPH-STONE/SPFsmartGATE"
17
- readme = "README.md"
18
-
19
- [[bin]]
20
- name = "spf-smart-gate"
21
- path = "src/main.rs"
22
-
23
- [[bin]]
24
- name = "prune_memories"
25
- path = "src/bin/prune_memories.rs"
26
-
27
- [[bin]]
28
- name = "jsonl_to_tlog"
29
- path = "src/bin/jsonl_to_tlog.rs"
30
-
31
- [[bin]]
32
- name = "brain_index_training"
33
- path = "src/bin/brain_index_training.rs"
34
-
35
- [lib]
36
- name = "spf_smart_gate"
37
- path = "src/lib.rs"
38
-
39
- [dependencies]
40
- # ============================================================================
41
- # LOCAL BRAIN — In-process Candle RAG (stoneshell-brain)
42
- # MiniLM-L6-v2 embeddings + LMDB vector store — zero API tokens, zero subprocesses
43
- # Model: LIVE/TMP/stoneshell-brain/models/all-MiniLM-L6-v2/
44
- # Storage: LIVE/TMP/stoneshell-brain/storage/
45
- # ============================================================================
46
- stoneshell-brain = { path = "LIVE/TMP/stoneshell-brain", features = ["cpu"] }
47
-
48
- # ============================================================================
49
- # STATE STORAGE - LMDB
50
- # ============================================================================
51
- heed = "0.20"
52
-
53
- # ============================================================================
54
- # SERIALIZATION
55
- # ============================================================================
56
- serde = { version = "1.0", features = ["derive"] }
57
- serde_json = "1.0"
58
-
59
- # ============================================================================
60
- # CLI
61
- # ============================================================================
62
- clap = { version = "4.5", features = ["derive"] }
63
-
64
- # ============================================================================
65
- # ERROR HANDLING
66
- # ============================================================================
67
- thiserror = "1.0"
68
- anyhow = "1.0"
69
-
70
- # ============================================================================
71
- # LOGGING
72
- # ============================================================================
73
- log = "0.4"
74
- env_logger = "0.11"
75
-
76
- # ============================================================================
77
- # TIME
78
- # ============================================================================
79
- chrono = { version = "0.4", features = ["serde"] }
80
-
81
- # ============================================================================
82
- # WEB BROWSER — AI-friendly HTTP client
83
- # ============================================================================
84
- reqwest = { version = "0.12", default-features = false, features = ["blocking", "rustls-tls", "json"] }
85
- html2text = "0.6"
86
-
87
- # ============================================================================
88
- # FILESYSTEM — SHA256 checksums + hex encoding (NEW for fs.rs)
89
- # ============================================================================
90
- sha2 = "0.10"
91
- hex = "0.4"
92
-
93
- # ============================================================================
94
- # CRYPTOGRAPHIC IDENTITY — Ed25519 key pairs for mesh authentication
95
- # ============================================================================
96
- ed25519-dalek = { version = "3.0.0-pre.1", features = ["rand_core"] }
97
- rand = "0.9"
98
-
99
- # ============================================================================
100
- # HTTP API — Axum async HTTP framework with TLS (replaces tiny_http)
101
- # ============================================================================
102
- axum = { version = "0.8", features = ["ws"] }
103
- axum-server = { version = "0.8", features = ["tls-rustls"] }
104
- rustls = { version = "0.23", default-features = false, features = ["ring", "logging", "std", "tls12"] }
105
- tower = "0.5"
106
- tower-http = { version = "0.6", features = ["trace", "cors", "timeout", "limit", "catch-panic", "sensitive-headers", "request-id", "compression-gzip"] }
107
- rcgen = { version = "0.13", features = ["pem", "ring"] }
108
-
109
- # ============================================================================
110
- # (CDP BROWSER removed — WB-2a. Reverse proxy uses axum ws instead)
111
- # ============================================================================
112
-
113
- # ============================================================================
114
- # CHANNEL HUB — WebSocket client for agent→hub connections (CH-4)
115
- # ============================================================================
116
- tokio-tungstenite = { version = "0.26", features = ["rustls-tls-webpki-roots"] }
117
- futures-util = "0.3"
118
- http = "1"
119
-
120
- # ============================================================================
121
- # MESH NETWORKING — P2P QUIC with NAT traversal
122
- # ============================================================================
123
- iroh = { version = "0.96", features = ["address-lookup-mdns", "address-lookup-pkarr-dht"] }
124
- tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync"] }
125
-
126
- # ============================================================================
127
- # VOICE PIPELINE — hardware deps removed WB-3 for cross-platform build.
128
- # Re-integrate via OS audio layer. Voice tools stubbed in voice.rs.
129
- # ============================================================================
130
- # ============================================================================
131
- # FEATURES — Voice hardware deps removed (WB-3). Re-integrate via OS audio
132
- # layer when terminal/OS is ready. All 3 voice tools remain as stubs.
133
- # ============================================================================
134
- [features]
135
- default = []
136
- # Feature names declared for cfg() compatibility — no deps enabled (WB-3: voice handled by inline stub)
137
- voice-stt = []
138
- voice-tts = []
139
-
140
- # ============================================================================
141
- # PROFILES
142
- # ============================================================================
143
- [profile.release]
144
- opt-level = 3
145
- lto = "fat"
146
- codegen-units = 1
147
- panic = "abort"
148
- strip = true
149
-
150
- [profile.dev]
151
- opt-level = 1
152
-
153
- # ============================================================================
154
- # DEV DEPENDENCIES — for tests only
155
- # ============================================================================
156
- [dev-dependencies]
157
- tempfile = "3"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
SPFsmartGATE/LICENSE DELETED
@@ -1,201 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to the Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by the Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding any notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. Please also get an
186
- "Alarm clock" or "alarm clock" from the Apache Software Foundation
187
- to include on your boilerplate.
188
-
189
- Copyright 2026 Joseph Stone
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00138ec318eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/002564d818eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/002a401e18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/003bc3e766b9453b.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Read source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.35 fp=false override=false | context=[Read,spf_web_connect,Grep] | ts=2026-03-18T09:15:29.845887545+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00431ee918eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00476ea318eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/0047f9a018eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/004aa17ae3e9a047.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Edit source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.45 fp=false override=false | context=[Edit,Edit,Edit] | ts=2026-03-18T09:32:49.232249284+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/004e3e2718eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/004f9253099c0022.txt DELETED
@@ -1,10 +0,0 @@
1
- 2362 1. Creating dark mode toggle component in Settings page
2
- 2363 2. Adding dark mode state management (context/store)
3
- 2364 3. Implementing CSS-in-JS styles for dark theme
4
- 2365 4. Updating existing components to support theme switching
5
- 2366 5. Running tests and build process, addressing any failures or errors that occur
6
- 2367 *Begins working on the first task*
7
- 2368
8
- 2369 <reasoning>
9
- 2370 The assistant used the todo list because:
10
- 2371 1. Adding dark mode is a multi-step feature requiring UI, state management, and styling changes
 
 
 
 
 
 
 
 
 
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/0053ce5a7d8c5e06.txt DELETED
@@ -1,3 +0,0 @@
1
- /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/LIVE/BRAIN/DOCS/b4f74785c96c48f5.txt:CROSS-ENTROPY LOSS (gate alignment objective):
2
- /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/LIVE/BRAIN/DOCS/3cda5da406b33119.txt:TrainingMetrics: avg_loss (EMA α=0.01), total_steps, gate_alignment, loss_history[100].
3
- /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/LIVE/SESSION/cmd.log:[2026-03-06 04:38:21] CALL Edit | {"file_path":"/data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/ANCHOR.md","new_string":"## FLINT Brain State (2026-03-06)\n- Training step: 1, loss: 0.4257, gate alignment: 100% (first batch post brain-swap)\n- 20 signals captured this session — collector IS wired correc…
 
 
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/0057791ce3e9a047.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Edit source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.50 fp=false override=false | context=[Bash,Edit,Edit] | ts=2026-03-18T09:46:43.322358861+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/006f3e5672558812.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=spf_brain_list source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.30 fp=false override=false | context=[spf_brain_recall,spf_brain_search,spf_agent_memory_search] | ts=2026-04-04T19:16:35.372611486+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/007ff6fb0df04103.txt DELETED
@@ -1,11 +0,0 @@
1
- 748 let tls_config = axum_server::tls_rustls::RustlsConfig::from_pem(cert_pem, key_pem)
2
- 749 .await
3
- 750 .expect("[SPF-HTTP] Failed to load TLS config from PEM");
4
- 751
5
- 752 let sock_addr: std::net::SocketAddr = addr.parse()
6
- 753 .expect("[SPF-HTTP] Invalid bind address");
7
- 754
8
- 755 // Graceful shutdown handle (E6)
9
- 756 let handle = axum_server::Handle::new();
10
- 757 let shutdown_handle = handle.clone();
11
- 758 tokio::spawn(async move {
 
 
 
 
 
 
 
 
 
 
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/0080abb918eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/0082a50e18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/008622810f9d72c0.txt DELETED
@@ -1,2 +0,0 @@
1
- 1615 `)H8(q.L),H8(q.L),h4(q.L);if(I8(q.L)==="|"){let H=q.L.b;if(H8(q.L),_.push(R8(q,"|",H,q.L.b,[])),I8(q.L)==="\\"&&I8(q.L,1)===`
2
- 1616 `)H8(q.L),H8(q.L)}else break}if(I8(q.L)===")"){let w=q.L.b;H8(q.L),_.push(R8(q,")",w,q.L.b,[]))}let z=Gv(q,null);_.push(...z);let A=Sz(q.L),O=N9(q.L,"cmd");if(O.type==="OP"&&(O.value===";;"||O.value===";&"||O.value===";;&"))_.push(B5(q,O.value,O));else p5(q.L,A);if(_.length===0)return null;if(z.length===0)for(let w=0;w<_.length;w++){let j=_[w];if(j.type==="extglob_pattern"&&/^[-+?*@!][a-zA-Z]/.test(N76(q,j.startIndex,j.endIndex))&&!/[*?(]/.test(N76(q,j.startIndex,j.endIndex)))_[w]=R8(q,"word",j.startIndex,j.endIndex,[])}let $=_[_.length-1];return R8(q,"case_item",K,$.endIndex,_)}function h4Y(q){h4(q.L);let K=Sz(q.L),_=q.L.b,Y=q.L.i,z=0,A=!1,O=!1,$=!1;while(q.L.i<q.L.len){let J=I8(q.L);if(J==="\\"&&q.L.i+1<q.L.len){H8(q.L),H8(q.L);continue}if(J==='"'||J==="'"){$=!0,H8(q.L);while(q.L.i<q.L.len&&I8(q.L)!==J){if(I8(q.L)==="\\"&&q.L.i+1<q.L.len)H8(q.L);H8(q.L)}if(I8(q.L)===J)H8(q.L);continue}if(J==="("){z++,H8(q.L);continue}if(z>0){if(J===")"){z--,H8(q.L);continue}if(J===`
 
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/009200fd18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00995dc718eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/009ed36718eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.55 fp=false override=false | context=[Bash,Read,Grep] | ts=2026-03-18T11:02:23.031179161+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/009efc1366b9453b.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Read source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.65 fp=false override=false | context=[Read,Grep,Bash] | ts=2026-03-18T11:03:01.886726802+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/009fa28418eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00a6b446e3e9a047.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Edit source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.50 fp=false override=false | context=[Edit,Read,Read] | ts=2026-03-18T11:11:19.684010362+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00a82e2e18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00af205718eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00b9e50e18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00bd3fa718eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00d57acc18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00d8080d7e9ed096.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=spf_web_fetch source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.30 fp=false override=false | context=[spf_web_search,spf_web_search,spf_web_search] | ts=2026-03-18T12:06:30.433663891+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00db76377e9ed096.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=spf_web_fetch source=stdio allowed=true label=1.0 weight=1.0 evil=0.00 relevance=0.45 fp=false override=false | context=[spf_web_fetch,spf_web_search,spf_web_search] | ts=2026-03-18T12:10:06.639910892+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00db81ec18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00dd30fbf53e958a.txt DELETED
@@ -1,9 +0,0 @@
1
- 6588 Toggle a searchable tag on the current session.
2
- 6589 Run the same command again to remove the tag.
3
- 6590 Tags are displayed after the branch name in /resume and can be searched with /.
4
- 6591
5
- 6592 Examples:
6
- 6593 /tag bugfix # Add tag
7
- 6594 /tag bugfix # Remove tag (toggle)
8
- 6595 /tag feature-auth
9
- 6596 /tag wip`,{display:"system"})},z=[_],K[0]=_,K[1]=Y,K[2]=z;else Y=K[1],z=K[2];return SH.useEffect(Y,z),null}async function Sfz(q,K,_){if(_=_?.trim()||"",y38.includes(_)||k38.includes(_))return SH.createElement(wbK,{onDone:q});if(!_)return SH.createElement(wbK,{onDone:q});return SH.createElement(hfz,{tagName:_,onDone:q})}var SH;var HbK=y(()=>{t6();G3();N8();u3();lq();Pz();r6();V8();sq();SH=w6(W6(),1)});var Cfz,JbK;var XbK=y(()=>{Cfz={type:"local-jsx",name:"tag",description:"Toggle a searchable tag on the current session",isEnabled:()=>!1,argumentHint:"<tag-name>",load:()=>Promise.resolve().then(() => (HbK(),jbK))},JbK=Cfz});var MbK={};T8(MbK,{call:()=>bfz});async function bfz(q){q("/output-style has been deprecated. Use /config to change your output style, or set it in your settings file. Changes take effect on the next session.",{display:"system"})}var Ifz,DbK;var PbK=y(()=>{Ifz={type:"local-jsx",name:"output-style",description:"Deprecated: use /config to change output style",isHidden:!0,load:()=>Promise.resolve().then(() => MbK)},DbK=Ifz});async function WbK(){let q=await ym();if(q.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let _=J7()?.remote?.defaultEnvironmentId,Y=q.find((A)=>A.kind!=="bridge")??q[0],z=null;if(_){let A=q.find((O)=>O.environment_id===_);if(A){Y=A;for(let O=XT.length-1;O>=0;O--){let $=XT[O];if(!$||$==="flagSettings")continue;if(V1($)?.remote?.defaultEnvironmentId===_){z=$;break}}}}return{availableEnvironments:q,selectedEnvironment:Y,selectedEnvironmentSource:z}}var ZbK=y(()=>{$O();Q1();mE6()});function GbK(q){let K=Y6(27),{onDone:_}=q,[Y,z]=nK6.useState("loading"),A;if(K[0]===Symbol.for("react.memo_cache_sentinel"))A=[],K[0]=A;else A=K[0];let[O,$]=nK6.useState(A),[w,j]=nK6.useState(null),[H,J]=nK6.useState(null),[X,M]=nK6.useState(null),D,P;if(K[1]===Symbol.for("react.memo_cache_sentinel"))D=()=>{(async function(){try{let V=await WbK();$(V.availableEnvironments),j(V.selectedEnvironment),J(V.selectedEnvironmentSource),z(null)}catch(V){let N=V,L=N instanceof Error?N.message:String(N);H6(x1(N)),M(L),z(null)}})()},P=[],K[1]=D,K[2]=P;else D=K[1],P=K[2];nK6.useEffect(D,P);let W;if(K[3]!==O||K[4]!==_)W=function(T){if(T==="cancel"){_();return}z("updating");let V=O.find((N)=>N.environment_id===T);if(!V){_("Error: Selected environment not found");return}H7("localSettings",{remote:{defaultEnvironmentId:V.environment_id}}),_(`Set default remote environment to ${A8.bold(V.name)} (${V.environment_id})`)},K[3]=O,K[4]=_,K[5]=W;else W=K[5];let Z=W;if(Y==="loading"){let G;if(K[6]===Symbol.for("react.memo_cache_sentinel"))G=Q5.createElement(Db,{message:"Loading environments…"}),K[6]=G;else G=K[6];let T;if(K[7]!==_)T=Q5.createElement(h1,{title:n18,onCancel:_,hideInputGuide:!0},G),K[7]=_,K[8]=T;else T=K[8];return T}if(X){let G;if(K[9]!==X)G=Q5.createElement(v,{color:"error"},"Error: ",X),K[9]=X,K[10]=G;else G=K[10];let T;if(K[11]!==_||K[12]!==G)T=Q5.createElement(h1,{title:n18,onCancel:_},G),K[11]=_,K[12]=G,K[13]=T;else T=K[13];return T}if(!w){let G;if(K[14]===Symbol.for("react.memo_cache_sentinel"))G=Q5.createElement(v,null,"No remote environments available."),K[14]=G;else G=K[14];let T;if(K[15]!==_)T=Q5.createElement(h1,{title:n18,subtitle:yK7,onCancel:_},G),K[15]=_,K[16]=T;else T=K[16];return T}if(O.length===1){let G;if(K[17]!==_||K[18]!==w)G=Q5.createElement(ufz,{environment:w,onDone:_}),K[17]=_,K[18]=w,K[19]=G;else G=K[19];return G}let f;if(K[20]!==O||K[21]!==Z||K[22]!==Y||K[23]!==_||K[24]!==w||K[25]!==H)f=Q5.createElement(mfz,{environments:O,selectedEnvironment:w,selectedEnvironmentSource:H,loadingState:Y,onSelect:Z,onCancel:_}),K[20]=O,K[21]=Z,K[22]=Y,K[23]=_,K[24]=w,K[25]=H,K[26]=f;else f=K[26];return f}function xfz(q){let K=Y6(7),{environment:_}=q,Y;if(K[0]!==_.name)Y=Q5.createElement(v,{bold:!0},_.name),K[0]=_.name,K[1]=Y;else Y=K[1];let z;if(K[2]!==_.environment_id)z=Q5.createElement(v,{dimColor:!0},"(",_.environment_id,")"),K[2]=_.environment_id,K[3]=z;else z=K[3];let A;if(K[4]!==Y||K[5]!==z)A=Q5.createElement(v,null,a6.tick," Using ",Y," ",z),K[4]=Y,K[5]=z,K[6]=A;else A=K[6];return A}function ufz(q){let K=Y6(6),{environment:_,onDone:Y}=q,z;if(K[0]===Symbol.for("react.memo_cache_sentinel"))z={context:"Confirmation"},K[0]=z;else z=K[0];D1("confirm:yes",Y,z);let A;if(K[1]!==_)A=Q5.createElement(xfz,{environment:_}),K[1]=_,K[2]=A;else A=K[2];let O;if(K[3]!==Y||K[4]!==A)O=Q5.createElement(h1,{title:n18,subtitle:yK7,onCancel:Y},A),K[3]=Y,K[4]=A,K[5]=O;else O=K[5];return O}function mfz(q){let K=Y6(18),{environments:_,selectedEnvironment:Y,selectedEnvironmentSource:z,loadingState:A,onSelect:O,onCancel:$}=q,w;if(K[0]!==z)w=z&&z!=="localSettings"?` (from ${Rt(z)} settings)`:"",K[0]=z,K[1]=w;else w=K[1];let j=w,H;if(K[2]!==Y.name)H=Q5.createElement(v,{bold:!0},Y.name),K[2]=Y.name,K[3]=H;else H=K[3];let J;if(K[4]!==j||K[5]!==H)J=Q5.createElement(v,null,"Currently using: ",H,j),K[4]=j,K[5]=H,K[6]=J;else J=K[6];let X=J,M;if(K[7]===Symbol.for("react.memo_cache_sentinel"))M=Q5.createElement(v,{dimColor:!0},yK7),K[7]=M;else M=K[7];let D;if(K[8]!==_||K[9]!==A||K[10]!==O||K[11]!==Y.environment_id)D=A==="updating"?Q5.createElement(Db,{message:"Updating…"}):Q5.createElement(J1,{options:_.map(Bfz),defaultValue:Y.environment_id,onChange:O,onCancel:()=>O("cancel"),layout:"compact-vertical"}),K[8]=_,K[9]=A,K[10]=O,K[11]=Y.environment_id,K[12]=D;else D=K[12];let P;if(K[13]===Symbol.for("react.memo_cache_sentinel"))P=Q5.createElement(v,{dimColor:!0},Q5.createElement(u1,null,Q5.createElement(s8,{shortcut:"Enter",action:"select"}),Q5.createElement(Z1,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}))),K[13]=P;else P=K[13];let W;if(K[14]!==$||K[15]!==X||K[16]!==D)W=Q5.createElement(h1,{title:n18,subtitle:X,onCancel:$,hideInputGuide:!0},M,D,P),K[14]=$,K[15]=X,K[16]=D,K[17]=W;else W=K[17];return W}function Bfz(q){return{label:Q5.createElement(v,null,q.name," ",Q5.createElement(v,{dimColor:!0},"(",q.environment_id,")")),value:q.environment_id}}var Q5,nK6,n18="Select Remote Environment",yK7="Configure environments at: https://claude.ai/code";var fbK=y(()=>{t6();G3();S4();r6();Y4();E8();y8();$O();Q1();ZbK();g5();u3();TK();lq();RK();uj6();Q5=w6(W6(),1),nK6=w6(W6(),1)});var TbK={};T8(TbK,{call:()=>pfz});async function pfz(q){return EK7.createElement(GbK,{onDone:q})}var EK7;var vbK=y(()=>{fbK();EK7=w6(W6(),1)});var VbK;var NbK=y(()=>{e0();D7();VbK={type:"local-jsx",name:"remote-env",description:"Configure the default remote environment for teleport sessions",isEnabled:()=>p7()&&K$("allow_remote_sessions"),get isHidden(){return!p7()||!K$("allow_remote_sessions")},load:()=>Promise.resolve().then(() => (vbK(),TbK))}});var kbK={};T8(kbK,{call:()=>RK7});async function RK7(q,K){try{if(p7()){let Y=i7(),z=!1;if(Y?.subscriptionType&&Y?.rateLimitTier)z=Y.subscriptionType==="max"&&Y.rateLimitTier==="default_claude_max_20x";else if(Y?.accessToken){let A=await xp(Y.accessToken);z=A?.organization?.organization_type==="claude_max"&&A?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(q,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await i3("https://claude.ai/upgrade/max"),LK7.createElement(yE6,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(Y)=>{K.onChangeAPIKey(),q(Y?"Login successful":"Login interrupted")}})}catch(_){H6(_),setTimeout(q,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var LK7;var hK7=y(()=>{bW6();D7();DJ();y8();KI8();LK7=w6(W6(),1)});var Ffz,aF8;var SK7=y(()=>{D7();Ffz={type:"local-jsx",name:"upgrade",description:"Upgrade to Max for higher rate limits and more Opus",availability:["claude-ai"],isEnabled:()=>!process.env.DISABLE_UPGRADE_COMMAND&&EK()!=="enterprise",load:()=>Promise.resolve().then(() => (hK7(),kbK))},aF8=Ffz});var ybK={};T8(ybK,{call:()=>Ufz});function gfz(q){let K=Y6(25),{onDone:_,context:Y}=q,[z,A]=Xh6.useState(null),O=uq6(),$;if(K[0]===Symbol.for("react.memo_cache_sentinel"))$=EK(),K[0]=$;else $=K[0];let w=$,j;if(K[1]===Symbol.for("react.memo_cache_sentinel"))j=WF(),K[1]=j;else j=K[1];let H=j,J=y_()?.hasExtraUsageEnabled===!0,M=w==="max"&&H==="default_claude_max_20x",D=w==="team"||w==="enterprise",P=F8("tengu_jade_anvil_4",!1),W;q:{let S;if(K[2]!==O.overageDisabledReason||K[3]!==O.overageStatus){if(S=[],xq6.isEnabled()){let p=Ip(),B=D&&!p,C=O.overageDisabledReason==="out_of_credits"||O.overageDisabledReason==="org_level_disabled_until"||O.overageDisabledReason==="org_service_zero_credit_limit";if(B&&C);else{let F=O.overageStatus==="rejected"||O.overageStatus==="allowed_warning",g;if(B)g=F?"Request more":"Request extra usage";else g=J?"Add funds to continue with extra usage":"Switch to extra usage";let Q;if(K[5]!==g)Q={label:g,value:"extra-usage"},K[5]=g,K[6]=Q;else Q=K[6];S.push(Q)}}if(!M&&!D&&aF8.isEnabled()){let p;if(K[7]===Symbol.for("react.memo_cache_sentinel"))p={label:"Upgrade your plan",value:"upgrade"},K[7]=p;else p=K[7];S.push(p)}K[2]=O.overageDisabledReason,K[3]=O.overageStatus,K[4]=S}else S=K[4];let h;if(K[8]===Symbol.for("react.memo_cache_sentinel"))h={label:"Stop and wait for limit to reset",value:"cancel"},K[8]=h;else h=K[8];let x=h;if(P){let p;if(K[9]!==S)p=[...S,x],K[9]=S,K[10]=p;else p=K[10];W=p;break q}let I;if(K[11]!==S)I=[x,...S],K[11]=S,K[12]=I;else I=K[12];W=I}let Z=W,f;if(K[13]!==_)f=function(){d("tengu_rate_limit_options_menu_cancel",{}),_(void 0,{display:"skip"})},K[13]=_,K[14]=f;else f=K[14];let G=f,T;if(K[15]!==Y||K[16]!==G||K[17]!==_)T=function(h){if(h==="upgrade")d("tengu_rate_limit_options_menu_select_upgrade",{}),RK7(_,Y).then((x)=>{if(x)A(x)});else if(h==="extra-usage")d("tengu_rate_limit_options_menu_select_extra_usage",{}),er1(_,Y).then((x)=>{if(x)A(x)});else if(h==="cancel")G()},K[15]=Y,K[16]=G,K[17]=_,K[18]=T;else T=K[18];let V=T;if(z)return z;let N;if(K[19]!==V||K[20]!==Z)N=Xh6.default.createElement(J1,{options:Z,onChange:V,visibleOptionCount:Z.length}),K[19]=V,K[20]=Z,K[21]=N;else N=K[21];let L;if(K[22]!==G||K[23]!==N)L=Xh6.default.createElement(h1,{title:"What do you want to do?",onCancel:G,color:"suggestion"},N),K[22]=G,K[23]=N,K[24]=L;else L=K[24];return L}async function Ufz(q,K){return Xh6.default.createElement(gfz,{onDone:q,context:K})}var Xh6;var EbK=y(()=>{t6();u3();lq();o1();V8();We6();D7();Hl();qo1();Pe6();SK7();hK7();Xh6=w6(W6(),1)});var Qfz,LbK;var RbK=y(()=>{D7();Qfz={type:"local-jsx",name:"rate-limit-options",description:"Show options when rate limit is reached",isEnabled:()=>{if(!p7())return!1;return!0},isHidden:!0,load:()=>Promise.resolve().then(() => (EbK(),ybK))},LbK=Qfz});var dfz,CK7;var hbK=y(()=>{S2();dfz={type:"prompt",description:"Set up Claude Code's status line UI",contentLength:0,aliases:[],name:"statusline",progressMessage:"setting up statusLine",allowedTools:[Dq,"Read(~/**)","Edit(~/.claude/settings.json)"],source:"builtin",disableNonInteractive:!0,async getPromptForCommand(q){let K=q.trim()||"Configure my statusLine from my shell PS1 configuration";return[{type:"text",text:`Create an ${Dq} with subagent_type "statusline-setup" and the prompt "${K}"`}]}},CK7=dfz});var bbK={};T8(bbK,{showCurrentEffort:()=>SbK,executeEffort:()=>CbK,call:()=>afz});function lfz(q){let K=l26(q);if(K!==void 0){let A=H7("userSettings",{effortLevel:K});if(A.error)return{message:`Failed to set effort level: ${A.error.message}`}}d("tengu_effort_command",{effort:q});let _=i26();if(_!==void 0&&_!==q){let A=process.env.CLAUDE_CODE_EFFORT_LEVEL;if(K===void 0)return{message:`Not applied: CLAUDE_CODE_EFFORT_LEVEL=${A} overrides effort this session, and ${q} is session-only (nothing saved)`,effortUpdate:{value:q}};return{message:`CLAUDE_CODE_EFFORT_LEVEL=${A} overrides this session — clear it and ${q} takes over`,effortUpdate:{value:q}}}let Y=$R1(q);return{message:`Set effort level to ${q}${K!==void 0?"":" (this session only)"}: ${Y}`,effortUpdate:{value:q}}}function SbK(q,K){let _=i26(),Y=_===null?void 0:_??q;if(Y===void 0)return{message:`Effort level: auto (currently ${FG8(K,q)})`};let z=$R1(Y);return{message:`Current effort level: ${Y} (${z})`}}function ifz(){let q=H7("userSettings",{effortLevel:void 0});if(q.error)return{message:`Failed to set effort level: ${q.error.message}`};d("tengu_effort_command",{effort:"auto"});let K=i26();if(K!==void 0&&K!==null)return{message:`Cleared effort from settings, but CLAUDE_CODE_EFFORT_LEVEL=${process.env.CLAUDE_CODE_EFFORT_LEVEL} still controls this session`,effortUpdate:{value:void 0}};return{message:"Effort level set to auto",effortUpdate:{value:void 0}}}function CbK(q){let K=q.toLowerCase();if(K==="auto"||K==="unset")return ifz();if(!pG8(K))return{message:`Invalid argument: ${q}. Valid options are: low, medium, high, max, auto`};return lfz(K)}function nfz(q){let{onDone:K}=q,_=M8(rfz),Y=KW(),{message:z}=SbK(_,Y);return K(z),null}function rfz(q){return q.effortValue}function ofz(q){let K=Y6(6),{result:_,onDone:Y}=q,z=l7(),{effortUpdate:A,message:O}=_,$,w;if(K[0]!==A||K[1]!==O||K[2]!==Y||K[3]!==z)$=()=>{if(A)z((j)=>({...j,effortValue:A.value}));Y(O)},w=[z,A,O,Y],K[0]=A,K[1]=O,K[2]=Y,K[3]=z,K[4]=$,K[5]=w;else $=K[4],w=K[5];return DH6.useEffect($,w),null}async function afz(q,K,_){if(_=_?.trim()||"",cfz.includes(_)){q(`Usage: /effort [low|medium|high|max|auto]
 
 
 
 
 
 
 
 
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00dff9b518eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00e1efae18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00e37a8a18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/00f901df18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/0102f3c0e51c3ba9.txt DELETED
@@ -1,6 +0,0 @@
1
- /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/tensor.rs
2
- /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/tokenizer.rs
3
- /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/train.rs
4
- /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/transformer.rs
5
- /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/transformer_tools.rs
6
- /data/data/com.termux/files/home/SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/src/voice.rs
 
 
 
 
 
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/010e4d1d18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/010f0503bf92e1c1.txt DELETED
@@ -1,12 +0,0 @@
1
- 421 #[test]
2
- 422 fn listener_receives_pre_and_post() {
3
- 423 let listener = MockListener::new();
4
- 424 let req = ToolRequest {
5
- 425 source: Source::Stdio,
6
- 426 tool: "spf_read".to_string(),
7
- 427 args: serde_json::json!({}),
8
- 428 timestamp: "2026-02-28T00:00:00Z".to_string(),
9
- 429 };
10
- 430 let resp = ToolResponse {
11
- 431 tool: "spf_read".to_string(),
12
- 432 result: serde_json::json!({"type": "text", "text": "ok"}),
 
 
 
 
 
 
 
 
 
 
 
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/011002ec18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/0115e4a218eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/01234dec18eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/0129b91bfaaf3b19.txt DELETED
@@ -1,3 +0,0 @@
1
- 5981 The chosen QR Code version cannot contain this amount of data.
2
- 5982 Minimum version required to store current data is: `+A+`.
3
- 5983 `);let O=PHz(K,_,z),$=xp8.getSymbolSize(K),w=new zHz($);if(HHz(w,K),JHz(w),XHz(w,K),a77(w,_,0),K>=7)MHz(w,K);if(DHz(w,O),isNaN(Y))Y=s77.getBestMask(w,a77.bind(null,w,_));return s77.applyMask(Y,w),a77(w,_,Y),{modules:w,version:K,errorCorrectionLevel:_,maskPattern:Y,segments:z}}GHz.create=function(K,_){if(typeof K>"u"||K==="")throw Error("No input text");let Y=r77.M,z,A;if(typeof _<"u"){if(Y=r77.from(_.errorCorrectionLevel,r77.M),z=Ip8.from(_.version),A=s77.from(_.maskPattern),_.toSJISFunc)xp8.setToSJISFunction(_.toSJISFunc)}return ZHz(K,z,Y,A)}});var q47=u((bYw,ANK)=>{var THz=g6("util"),zNK=g6("stream"),dm=ANK.exports=function(){zNK.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};THz.inherits(dm,zNK);dm.prototype.read=function(q,K){this._reads.push({length:Math.abs(q),allowLess:q<0,func:K}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};dm.prototype.write=function(q,K){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let _;if(Buffer.isBuffer(q))_=q;else _=Buffer.from(q,K||this._encoding);if(this._buffers.push(_),this._buffered+=_.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};dm.prototype.end=function(q,K){if(q)this.write(q,K);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};dm.prototype.destroySoon=dm.prototype.end;dm.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};dm.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};dm.prototype._processReadAllowingLess=function(q){this._reads.shift();let K=this._buffers[0];if(K.length>q.length)this._buffered-=q.length,this._buffers[0]=K.slice(q.length),q.func.call(this,K.slice(0,q.length));else this._buffered-=K.length,this._buffers.shift(),q.func.call(this,K)};dm.prototype._processRead=function(q){this._reads.shift();let K=0,_=0,Y=Buffer.alloc(q.length);while(K<q.length){let z=this._buffers[_++],A=Math.min(z.length,q.length-K);if(z.copy(Y,K,0,A),K+=A,A!==z.length)this._buffers[--_]=z.slice(A)}if(_>0)this._buffers.splice(0,_);this._buffered-=q.length,q.func.call(this,Y)};dm.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let q=this._reads[0];if(q.allowLess)this._processReadAllowingLess(q);else if(this._buffered>=q.length)this._processRead(q);else break}if(this._buffers&&!this.writable)this._end()}catch(q){this.emit("error",q)}}});var K47=u((vHz)=>{var bK6=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];vHz.getImagePasses=function(q,K){let _=[],Y=q%8,z=K%8,A=(q-Y)/8,O=(K-z)/8;for(let $=0;$<bK6.length;$++){let w=bK6[$],j=A*w.x.length,H=O*w.y.length;for(let J=0;J<w.x.length;J++)if(w.x[J]<Y)j++;else break;for(let J=0;J<w.y.length;J++)if(w.y[J]<z)H++;else break;if(j>0&&H>0)_.push({width:j,height:H,index:$})}return _};vHz.getInterlaceIterator=function(q){return function(K,_,Y){let z=K%bK6[Y].x.length,A=(K-z)/bK6[Y].x.length*8+bK6[Y].x[z],O=_%bK6[Y].y.length,$=(_-O)/bK6[Y].y.length*8+bK6[Y].y[O];return A*4+$*q*4}}});var _47=u((xYw,ONK)=>{ONK.exports=function(K,_,Y){let z=K+_-Y,A=Math.abs(z-K),O=Math.abs(z-_),$=Math.abs(z-Y);if(A<=O&&A<=$)return K;if(O<=$)return _;return Y}});var Y47=u((uYw,wNK)=>{var kHz=K47(),yHz=_47();function $NK(q,K,_){let Y=q*K;if(_!==8)Y=Math.ceil(Y/(8/_));return Y}var gR6=wNK.exports=function(q,K){let{width:_,height:Y,interlace:z,bpp:A,depth:O}=q;if(this.read=K.read,this.write=K.write,this.complete=K.complete,this._imageIndex=0,this._images=[],z){let $=kHz.getImagePasses(_,Y);for(let w=0;w<$.length;w++)this._images.push({byteWidth:$NK($[w].width,A,O),height:$[w].height,lineIndex:0})}else this._images.push({byteWidth:$NK(_,A,O),height:Y,lineIndex:0});if(O===8)this._xComparison=A;else if(O===16)this._xComparison=A*2;else this._xComparison=1};gR6.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};gR6.prototype._unFilterType1=function(q,K,_){let Y=this._xComparison,z=Y-1;for(let A=0;A<_;A++){let O=q[1+A],$=A>z?K[A-Y]:0;K[A]=O+$}};gR6.prototype._unFilterType2=function(q,K,_){let Y=this._lastLine;for(let z=0;z<_;z++){let A=q[1+z],O=Y?Y[z]:0;K[z]=A+O}};gR6.prototype._unFilterType3=function(q,K,_){let Y=this._xComparison,z=Y-1,A=this._lastLine;for(let O=0;O<_;O++){let $=q[1+O],w=A?A[O]:0,j=O>z?K[O-Y]:0,H=Math.floor((j+w)/2);K[O]=$+H}};gR6.prototype._unFilterType4=function(q,K,_){let Y=this._xComparison,z=Y-1,A=this._lastLine;for(let O=0;O<_;O++){let $=q[1+O],w=A?A[O]:0,j=O>z?K[O-Y]:0,H=O>z&&A?A[O-Y]:0,J=yHz(j,w,H);K[O]=$+J}};gR6.prototype._reverseFilterLine=function(q){let K=q[0],_,Y=this._images[this._imageIndex],z=Y.byteWidth;if(K===0)_=q.slice(1,z+1);else switch(_=Buffer.alloc(z),K){case 1:this._unFilterType1(q,_,z);break;case 2:this._unFilterType2(q,_,z);break;case 3:this._unFilterType3(q,_,z);break;case 4:this._unFilterType4(q,_,z);break;default:throw Error("Unrecognised filter type - "+K)}if(this.write(_),Y.lineIndex++,Y.lineIndex>=Y.height)this._lastLine=null,this._imageIndex++,Y=this._images[this._imageIndex];else this._lastLine=_;if(Y)this.read(Y.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var JNK=u((mYw,HNK)=>{var EHz=g6("util"),jNK=q47(),LHz=Y47(),RHz=HNK.exports=function(q){jNK.call(this);let K=[],_=this;this._filter=new LHz(q,{read:this.read.bind(this),write:function(Y){K.push(Y)},complete:function(){_.emit("complete",Buffer.concat(K))}}),this._filter.start()};EHz.inherits(RHz,jNK)});var UR6=u((BYw,XNK)=>{XNK.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var O47=u((pYw,MNK)=>{var z47=[];(function(){for(let q=0;q<256;q++){let K=q;for(let _=0;_<8;_++)if(K&1)K=3988292384^K>>>1;else K=K>>>1;z47[q]=K}})();var A47=MNK.exports=function(){this._crc=-1};A47.prototype.write=function(q){for(let K=0;K<q.length;K++)this._crc=z47[(this._crc^q[K])&255]^this._crc>>>8;return!0};A47.prototype.crc32=function(){return this._crc^-1};A47.crc32=function(q){let K=-1;for(let _=0;_<q.length;_++)K=z47[(K^q[_])&255]^K>>>8;return K^-1}});var $47=u((FYw,DNK)=>{var BD=UR6(),hHz=O47(),ZW=DNK.exports=function(q,K){this._options=q,q.checkCRC=q.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[BD.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[BD.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[BD.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[BD.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[BD.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[BD.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=K.read,this.error=K.error,this.metadata=K.metadata,this.gamma=K.gamma,this.transColor=K.transColor,this.palette=K.palette,this.parsed=K.parsed,this.inflateData=K.inflateData,this.finished=K.finished,this.simpleTransparency=K.simpleTransparency,this.headersFinished=K.headersFinished||function(){}};ZW.prototype.start=function(){this.read(BD.PNG_SIGNATURE.length,this._parseSignature.bind(this))};ZW.prototype._parseSignature=function(q){let K=BD.PNG_SIGNATURE;for(let _=0;_<K.length;_++)if(q[_]!==K[_]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};ZW.prototype._parseChunkBegin=function(q){let K=q.readUInt32BE(0),_=q.readUInt32BE(4),Y="";for(let A=4;A<8;A++)Y+=String.fromCharCode(q[A]);let z=Boolean(q[4]&32);if(!this._hasIHDR&&_!==BD.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new hHz,this._crc.write(Buffer.from(Y)),this._chunks[_])return this._chunks[_](K);if(!z){this.error(Error("Unsupported critical chunk type "+Y));return}this.read(K+4,this._skipChunk.bind(this))};ZW.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};ZW.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};ZW.prototype._parseChunkEnd=function(q){let K=q.readInt32BE(0),_=this._crc.crc32();if(this._options.checkCRC&&_!==K){this.error(Error("Crc error - "+K+" - "+_));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};ZW.prototype._handleIHDR=function(q){this.read(q,this._parseIHDR.bind(this))};ZW.prototype._parseIHDR=function(q){this._crc.write(q);let K=q.readUInt32BE(0),_=q.readUInt32BE(4),Y=q[8],z=q[9],A=q[10],O=q[11],$=q[12];if(Y!==8&&Y!==4&&Y!==2&&Y!==1&&Y!==16){this.error(Error("Unsupported bit depth "+Y));return}if(!(z in BD.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(A!==0){this.error(Error("Unsupported compression method"));return}if(O!==0){this.error(Error("Unsupported filter method"));return}if($!==0&&$!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=z;let w=BD.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:K,height:_,depth:Y,interlace:Boolean($),palette:Boolean(z&BD.COLORTYPE_PALETTE),color:Boolean(z&BD.COLORTYPE_COLOR),alpha:Boolean(z&BD.COLORTYPE_ALPHA),bpp:w,colorType:z}),this._handleChunkEnd()};ZW.prototype._handlePLTE=function(q){this.read(q,this._parsePLTE.bind(this))};ZW.prototype._parsePLTE=function(q){this._crc.write(q);let K=Math.floor(q.length/3);for(let _=0;_<K;_++)this._palette.push([q[_*3],q[_*3+1],q[_*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};ZW.prototype._handleTRNS=function(q){this.simpleTransparency(),this.read(q,this._parseTRNS.bind(this))};ZW.prototype._parseTRNS=function(q){if(this._crc.write(q),this._colorType===BD.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if(q.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let K=0;K<q.length;K++)this._palette[K][3]=q[K];this.palette(this._palette)}if(this._colorType===BD.COLORTYPE_GRAYSCALE)this.transColor([q.readUInt16BE(0)]);if(this._colorType===BD.COLORTYPE_COLOR)this.transColor([q.readUInt16BE(0),q.readUInt16BE(2),q.readUInt16BE(4)]);this._handleChunkEnd()};ZW.prototype._handleGAMA=function(q){this.read(q,this._parseGAMA.bind(this))};ZW.prototype._parseGAMA=function(q){this._crc.write(q),this.gamma(q.readUInt32BE(0)/BD.GAMMA_DIVISION),this._handleChunkEnd()};ZW.prototype._handleIDAT=function(q){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-q,this._parseIDAT.bind(this,q))};ZW.prototype._parseIDAT=function(q,K){if(this._crc.write(K),this._colorType===BD.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(K);let _=q-K.length;if(_>0)this._handleIDAT(_);else this._handleChunkEnd()};ZW.prototype._handleIEND=function(q){this.read(q,this._parseIEND.bind(this))};ZW.prototype._parseIEND=function(q){if(this._crc.write(q),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var w47=u((uHz)=>{var PNK=K47(),SHz=[function(){},function(q,K,_,Y){if(Y===K.length)throw Error("Ran out of data");let z=K[Y];q[_]=z,q[_+1]=z,q[_+2]=z,q[_+3]=255},function(q,K,_,Y){if(Y+1>=K.length)throw Error("Ran out of data");let z=K[Y];q[_]=z,q[_+1]=z,q[_+2]=z,q[_+3]=K[Y+1]},function(q,K,_,Y){if(Y+2>=K.length)throw Error("Ran out of data");q[_]=K[Y],q[_+1]=K[Y+1],q[_+2]=K[Y+2],q[_+3]=255},function(q,K,_,Y){if(Y+3>=K.length)throw Error("Ran out of data");q[_]=K[Y],q[_+1]=K[Y+1],q[_+2]=K[Y+2],q[_+3]=K[Y+3]}],CHz=[function(){},function(q,K,_,Y){let z=K[0];q[_]=z,q[_+1]=z,q[_+2]=z,q[_+3]=Y},function(q,K,_){let Y=K[0];q[_]=Y,q[_+1]=Y,q[_+2]=Y,q[_+3]=K[1]},function(q,K,_,Y){q[_]=K[0],q[_+1]=K[1],q[_+2]=K[2],q[_+3]=Y},function(q,K,_){q[_]=K[0],q[_+1]=K[1],q[_+2]=K[2],q[_+3]=K[3]}];function bHz(q,K){let _=[],Y=0;function z(){if(Y===q.length)throw Error("Ran out of data");let A=q[Y];Y++;let O,$,w,j,H,J,X,M;switch(K){default:throw Error("unrecognised depth");case 16:X=q[Y],Y++,_.push((A<<8)+X);break;case 4:X=A&15,M=A>>4,_.push(M,X);break;case 2:H=A&3,J=A>>2&3,X=A>>4&3,M=A>>6&3,_.push(M,X,J,H);break;case 1:O=A&1,$=A>>1&1,w=A>>2&1,j=A>>3&1,H=A>>4&1,J=A>>5&1,X=A>>6&1,M=A>>7&1,_.push(M,X,J,H,j,w,$,O);break}}return{get:function(A){while(_.length<A)z();let O=_.slice(0,A);return _=_.slice(A),O},resetAfterLine:function(){_.length=0},end:function(){if(Y!==q.length)throw Error("extra data found")}}}function IHz(q,K,_,Y,z,A){let{width:O,height:$,index:w}=q;for(let j=0;j<$;j++)for(let H=0;H<O;H++){let J=_(H,j,w);SHz[Y](K,z,J,A),A+=Y}return A}function xHz(q,K,_,Y,z,A){let{width:O,height:$,index:w}=q;for(let j=0;j<$;j++){for(let H=0;H<O;H++){let J=z.get(Y),X=_(H,j,w);CHz[Y](K,J,X,A)}z.resetAfterLine()}}uHz.dataToBitMap=function(q,K){let{width:_,height:Y,depth:z,bpp:A,interlace:O}=K,$;if(z!==8)$=bHz(q,z);let w;if(z<=8)w=Buffer.alloc(_*Y*4);else w=new Uint16Array(_*Y*4);let j=Math.pow(2,z)-1,H=0,J,X;if(O)J=PNK.getImagePasses(_,Y),X=PNK.getInterlaceIterator(_,Y);else{let M=0;X=function(){let D=M;return M+=4,D},J=[{width:_,height:Y}]}for(let M=0;M<J.length;M++)if(z===8)H=IHz(J[M],w,X,A,q,H);else xHz(J[M],w,X,A,$,j);if(z===8){if(H!==q.length)throw Error("extra data found")}else $.end();return w}});var j47=u((UYw,WNK)=>{function BHz(q,K,_,Y,z){let A=0;for(let O=0;O<Y;O++)for(let $=0;$<_;$++){let w=z[q[A]];if(!w)throw Error("index "+q[A]+" not in palette");for(let j=0;j<4;j++)K[A+j]=w[j];A+=4}}function pHz(q,K,_,Y,z){let A=0;for(let O=0;O<Y;O++)for(let $=0;$<_;$++){let w=!1;if(z.length===1){if(z[0]===q[A])w=!0}else if(z[0]===q[A]&&z[1]===q[A+1]&&z[2]===q[A+2])w=!0;if(w)for(let j=0;j<4;j++)K[A+j]=0;A+=4}}function FHz(q,K,_,Y,z){let A=255,O=Math.pow(2,z)-1,$=0;for(let w=0;w<Y;w++)for(let j=0;j<_;j++){for(let H=0;H<4;H++)K[$+H]=Math.floor(q[$+H]*A/O+0.5);$+=4}}WNK.exports=function(q,K){let{depth:_,width:Y,height:z,colorType:A,transColor:O,palette:$}=K,w=q;if(A===3)BHz(q,w,Y,z,$);else{if(O)pHz(q,w,Y,z,O);if(_!==8){if(_===16)w=Buffer.alloc(Y*z*4);FHz(q,w,Y,z,_)}}return w}});var fNK=u((QYw,GNK)=>{var gHz=g6("util"),H47=g6("zlib"),ZNK=q47(),UHz=JNK(),QHz=$47(),dHz=w47(),cHz=j47(),lQ=GNK.exports=function(q){ZNK.call(this),this._parser=new QHz(q,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=q,this.writable=!0,this._parser.start()};gHz.inherits(lQ,ZNK);lQ.prototype._handleError=function(q){if(this.emit("error",q),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};lQ.prototype._inflateData=function(q){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=H47.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let _=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,Y=Math.max(_,H47.Z_MIN_CHUNK);this._inflate=H47.createInflate({chunkSize:Y});let z=_,A=this.emit.bind(this,"error");this._inflate.on("error",function($){if(!z)return;A($)}),this._filter.on("complete",this._complete.bind(this));let O=this._filter.write.bind(this._filter);this._inflate.on("data",function($){if(!z)return;if($.length>z)$=$.slice(0,z);z-=$.length,O($)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(q)};lQ.prototype._handleMetaData=function(q){this._metaData=q,this._bitmapInfo=Object.create(q),this._filter=new UHz(this._bitmapInfo)};lQ.prototype._handleTransColor=function(q){this._bitmapInfo.transColor=q};lQ.prototype._handlePalette=function(q){this._bitmapInfo.palette=q};lQ.prototype._simpleTransparency=function(){this._metaData.alpha=!0};lQ.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};lQ.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};lQ.prototype._complete=function(q){if(this.errord)return;let K;try{let _=dHz.dataToBitMap(q,this._bitmapInfo);K=cHz(_,this._bitmapInfo),_=null}catch(_){this._handleError(_);return}this.emit("parsed",K)}});var vNK=u((dYw,TNK)=>{var Gb=UR6();TNK.exports=function(q,K,_,Y){let z=[Gb.COLORTYPE_COLOR_ALPHA,Gb.COLORTYPE_ALPHA].indexOf(Y.colorType)!==-1;if(Y.colorType===Y.inputColorType){let D=function(){let P=new ArrayBuffer(2);return new DataView(P).setInt16(0,256,!0),new Int16Array(P)[0]!==256}();if(Y.bitDepth===8||Y.bitDepth===16&&D)return q}let A=Y.bitDepth!==16?q:new Uint16Array(q.buffer),O=255,$=Gb.COLORTYPE_TO_BPP_MAP[Y.inputColorType];if($===4&&!Y.inputHasAlpha)$=3;let w=Gb.COLORTYPE_TO_BPP_MAP[Y.colorType];if(Y.bitDepth===16)O=65535,w*=2;let j=Buffer.alloc(K*_*w),H=0,J=0,X=Y.bgColor||{};if(X.red===void 0)X.red=O;if(X.green===void 0)X.green=O;if(X.blue===void 0)X.blue=O;function M(){let D,P,W,Z=O;switch(Y.inputColorType){case Gb.COLORTYPE_COLOR_ALPHA:Z=A[H+3],D=A[H],P=A[H+1],W=A[H+2];break;case Gb.COLORTYPE_COLOR:D=A[H],P=A[H+1],W=A[H+2];break;case Gb.COLORTYPE_ALPHA:Z=A[H+1],D=A[H],P=D,W=D;break;case Gb.COLORTYPE_GRAYSCALE:D=A[H],P=D,W=D;break;default:throw Error("input color type:"+Y.inputColorType+" is not supported at present")}if(Y.inputHasAlpha){if(!z)Z/=O,D=Math.min(Math.max(Math.round((1-Z)*X.red+Z*D),0),O),P=Math.min(Math.max(Math.round((1-Z)*X.green+Z*P),0),O),W=Math.min(Math.max(Math.round((1-Z)*X.blue+Z*W),0),O)}return{red:D,green:P,blue:W,alpha:Z}}for(let D=0;D<_;D++)for(let P=0;P<K;P++){let W=M(A,H);switch(Y.colorType){case Gb.COLORTYPE_COLOR_ALPHA:case Gb.COLORTYPE_COLOR:if(Y.bitDepth===8){if(j[J]=W.red,j[J+1]=W.green,j[J+2]=W.blue,z)j[J+3]=W.alpha}else if(j.writeUInt16BE(W.red,J),j.writeUInt16BE(W.green,J+2),j.writeUInt16BE(W.blue,J+4),z)j.writeUInt16BE(W.alpha,J+6);break;case Gb.COLORTYPE_ALPHA:case Gb.COLORTYPE_GRAYSCALE:{let Z=(W.red+W.green+W.blue)/3;if(Y.bitDepth===8){if(j[J]=Z,z)j[J+1]=W.alpha}else if(j.writeUInt16BE(Z,J),z)j.writeUInt16BE(W.alpha,J+2);break}default:throw Error("unrecognised color Type "+Y.colorType)}H+=$,J+=w}return j}});var kNK=u((cYw,NNK)=>{var VNK=_47();function lHz(q,K,_,Y,z){for(let A=0;A<_;A++)Y[z+A]=q[K+A]}function iHz(q,K,_){let Y=0,z=K+_;for(let A=K;A<z;A++)Y+=Math.abs(q[A]);return Y}function nHz(q,K,_,Y,z,A){for(let O=0;O<_;O++){let $=O>=A?q[K+O-A]:0,w=q[K+O]-$;Y[z+O]=w}}function rHz(q,K,_,Y){let z=0;for(let A=0;A<_;A++){let O=A>=Y?q[K+A-Y]:0,$=q[K+A]-O;z+=Math.abs($)}return z}function oHz(q,K,_,Y,z){for(let A=0;A<_;A++){let O=K>0?q[K+A-_]:0,$=q[K+A]-O;Y[z+A]=$}}function aHz(q,K,_){let Y=0,z=K+_;for(let A=K;A<z;A++){let O=K>0?q[A-_]:0,$=q[A]-O;Y+=Math.abs($)}return Y}function sHz(q,K,_,Y,z,A){for(let O=0;O<_;O++){let $=O>=A?q[K+O-A]:0,w=K>0?q[K+O-_]:0,j=q[K+O]-($+w>>1);Y[z+O]=j}}function tHz(q,K,_,Y){let z=0;for(let A=0;A<_;A++){let O=A>=Y?q[K+A-Y]:0,$=K>0?q[K+A-_]:0,w=q[K+A]-(O+$>>1);z+=Math.abs(w)}return z}function eHz(q,K,_,Y,z,A){for(let O=0;O<_;O++){let $=O>=A?q[K+O-A]:0,w=K>0?q[K+O-_]:0,j=K>0&&O>=A?q[K+O-(_+A)]:0,H=q[K+O]-VNK($,w,j);Y[z+O]=H}}function qJz(q,K,_,Y){let z=0;for(let A=0;A<_;A++){let O=A>=Y?q[K+A-Y]:0,$=K>0?q[K+A-_]:0,w=K>0&&A>=Y?q[K+A-(_+Y)]:0,j=q[K+A]-VNK(O,$,w);z+=Math.abs(j)}return z}var KJz={0:lHz,1:nHz,2:oHz,3:sHz,4:eHz},_Jz={0:iHz,1:rHz,2:aHz,3:tHz,4:qJz};NNK.exports=function(q,K,_,Y,z){let A;if(!("filterType"in Y)||Y.filterType===-1)A=[0,1,2,3,4];else if(typeof Y.filterType==="number")A=[Y.filterType];else throw Error("unrecognised filter types");if(Y.bitDepth===16)z*=2;let O=K*z,$=0,w=0,j=Buffer.alloc((O+1)*_),H=A[0];for(let J=0;J<_;J++){if(A.length>1){let X=1/0;for(let M=0;M<A.length;M++){let D=_Jz[A[M]](q,w,O,z);if(D<X)H=A[M],X=D}}j[$]=H,$++,KJz[H](q,w,O,j,$,z),$+=O,w+=O}return j}});var J47=u((lYw,yNK)=>{var mf=UR6(),YJz=O47(),zJz=vNK(),AJz=kNK(),OJz=g6("zlib"),IK6=yNK.exports=function(q){if(this._options=q,q.deflateChunkSize=q.deflateChunkSize||32768,q.deflateLevel=q.deflateLevel!=null?q.deflateLevel:9,q.deflateStrategy=q.deflateStrategy!=null?q.deflateStrategy:3,q.inputHasAlpha=q.inputHasAlpha!=null?q.inputHasAlpha:!0,q.deflateFactory=q.deflateFactory||OJz.createDeflate,q.bitDepth=q.bitDepth||8,q.colorType=typeof q.colorType==="number"?q.colorType:mf.COLORTYPE_COLOR_ALPHA,q.inputColorType=typeof q.inputColorType==="number"?q.inputColorType:mf.COLORTYPE_COLOR_ALPHA,[mf.COLORTYPE_GRAYSCALE,mf.COLORTYPE_COLOR,mf.COLORTYPE_COLOR_ALPHA,mf.COLORTYPE_ALPHA].indexOf(q.colorType)===-1)throw Error("option color type:"+q.colorType+" is not supported at present");if([mf.COLORTYPE_GRAYSCALE,mf.COLORTYPE_COLOR,mf.COLORTYPE_COLOR_ALPHA,mf.COLORTYPE_ALPHA].indexOf(q.inputColorType)===-1)throw Error("option input color type:"+q.inputColorType+" is not supported at present");if(q.bitDepth!==8&&q.bitDepth!==16)throw Error("option bit depth:"+q.bitDepth+" is not supported at present")};IK6.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};IK6.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};IK6.prototype.filterData=function(q,K,_){let Y=zJz(q,K,_,this._options),z=mf.COLORTYPE_TO_BPP_MAP[this._options.colorType];return AJz(Y,K,_,this._options,z)};IK6.prototype._packChunk=function(q,K){let _=K?K.length:0,Y=Buffer.alloc(_+12);if(Y.writeUInt32BE(_,0),Y.writeUInt32BE(q,4),K)K.copy(Y,8);return Y.writeInt32BE(YJz.crc32(Y.slice(4,Y.length-4)),Y.length-4),Y};IK6.prototype.packGAMA=function(q){let K=Buffer.alloc(4);return K.writeUInt32BE(Math.floor(q*mf.GAMMA_DIVISION),0),this._packChunk(mf.TYPE_gAMA,K)};IK6.prototype.packIHDR=function(q,K){let _=Buffer.alloc(13);return _.writeUInt32BE(q,0),_.writeUInt32BE(K,4),_[8]=this._options.bitDepth,_[9]=this._options.colorType,_[10]=0,_[11]=0,_[12]=0,this._packChunk(mf.TYPE_IHDR,_)};IK6.prototype.packIDAT=function(q){return this._packChunk(mf.TYPE_IDAT,q)};IK6.prototype.packIEND=function(){return this._packChunk(mf.TYPE_IEND,null)}});var hNK=u((iYw,RNK)=>{var $Jz=g6("util"),ENK=g6("stream"),wJz=UR6(),jJz=J47(),LNK=RNK.exports=function(q){ENK.call(this);let K=q||{};this._packer=new jJz(K),this._deflate=this._packer.createDeflate(),this.readable=!0};$Jz.inherits(LNK,ENK);LNK.prototype.pack=function(q,K,_,Y){if(this.emit("data",Buffer.from(wJz.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(K,_)),Y)this.emit("data",this._packer.packGAMA(Y));let z=this._packer.filterData(q,K,_);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(A){this.emit("data",this._packer.packIDAT(A))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(z)}});var uNK=u((G18,xNK)=>{var SNK=g6("assert").ok,QR6=g6("zlib"),HJz=g6("util"),CNK=g6("buffer").kMaxLength;function tj6(q){if(!(this instanceof tj6))return new tj6(q);if(q&&q.chunkSize<QR6.Z_MIN_CHUNK)q.chunkSize=QR6.Z_MIN_CHUNK;if(QR6.Inflate.call(this,q),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,q&&q.maxLength!=null)this._maxLength=q.maxLength}function JJz(q){return new tj6(q)}function bNK(q,K){if(K)process.nextTick(K);if(!q._handle)return;q._handle.close(),q._handle=null}tj6.prototype._processChunk=function(q,K,_){if(typeof _==="function")return QR6.Inflate._processChunk.call(this,q,K,_);let Y=this,z=q&&q.length,A=this._chunkSize-this._offset,O=this._maxLength,$=0,w=[],j=0,H;this.on("error",function(D){H=D});function J(D,P){if(Y._hadError)return;let W=A-P;if(SNK(W>=0,"have should not go down"),W>0){let Z=Y._buffer.slice(Y._offset,Y._offset+W);if(Y._offset+=W,Z.length>O)Z=Z.slice(0,O);if(w.push(Z),j+=Z.length,O-=Z.length,O===0)return!1}if(P===0||Y._offset>=Y._chunkSize)A=Y._chunkSize,Y._offset=0,Y._buffer=Buffer.allocUnsafe(Y._chunkSize);if(P===0)return $+=z-D,z=D,!0;return!1}SNK(this._handle,"zlib binding closed");let X;do X=this._handle.writeSync(K,q,$,z,this._buffer,this._offset,A),X=X||this._writeState;while(!this._hadError&&J(X[0],X[1]));if(this._hadError)throw H;if(j>=CNK)throw bNK(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+CNK.toString(16)+" bytes");let M=Buffer.concat(w,j);return bNK(this),M};HJz.inherits(tj6,QR6.Inflate);function XJz(q,K){if(typeof K==="string")K=Buffer.from(K);if(!(K instanceof Buffer))throw TypeError("Not a string or buffer");let _=q._finishFlushFlag;if(_==null)_=QR6.Z_FINISH;return q._processChunk(K,_)}function INK(q,K){return XJz(new tj6(K),q)}xNK.exports=G18=INK;G18.Inflate=tj6;G18.createInflate=JJz;G18.inflateSync=INK});var X47=u((nYw,BNK)=>{var mNK=BNK.exports=function(q){this._buffer=q,this._reads=[]};mNK.prototype.read=function(q,K){this._reads.push({length:Math.abs(q),allowLess:q<0,func:K})};mNK.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let q=this._reads[0];if(this._buffer.length&&(this._buffer.length>=q.length||q.allowLess)){this._reads.shift();let K=this._buffer;this._buffer=K.slice(q.length),q.func.call(this,K.slice(0,q.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var pNK=u((PJz)=>{var MJz=X47(),DJz=Y47();PJz.process=function(q,K){let _=[],Y=new MJz(q);return new DJz(K,{read:Y.read.bind(Y),write:function(A){_.push(A)},complete:function(){}}).start(),Y.process(),Buffer.concat(_)}});var QNK=u((oYw,UNK)=>{var FNK=!0,gNK=g6("zlib"),ZJz=uNK();if(!gNK.deflateSync)FNK=!1;var GJz=X47(),fJz=pNK(),TJz=$47(),vJz=w47(),VJz=j47();UNK.exports=function(q,K){if(!FNK)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let _;function Y(T){_=T}let z;function A(T){z=T}function O(T){z.transColor=T}function $(T){z.palette=T}function w(){z.alpha=!0}let j;function H(T){j=T}let J=[];function X(T){J.push(T)}let M=new GJz(q);if(new TJz(K,{read:M.read.bind(M),error:Y,metadata:A,gamma:H,palette:$,transColor:O,inflateData:X,simpleTransparency:w}).start(),M.process(),_)throw _;let P=Buffer.concat(J);J.length=0;let W;if(z.interlace)W=gNK.inflateSync(P);else{let V=((z.width*z.bpp*z.depth+7>>3)+1)*z.height;W=ZJz(P,{chunkSize:V,maxLength:V})}if(P=null,!W||!W.length)throw Error("bad png - invalid inflate data response");let Z=fJz.process(W,z);P=null;let f=vJz.dataToBitMap(Z,z);Z=null;let G=VJz(f,z);return z.data=G,z.gamma=j||0,z}});var iNK=u((aYw,lNK)=>{var dNK=!0,cNK=g6("zlib");if(!cNK.deflateSync)dNK=!1;var NJz=UR6(),kJz=J47();lNK.exports=function(q,K){if(!dNK)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Y=new kJz(K||{}),z=[];if(z.push(Buffer.from(NJz.PNG_SIGNATURE)),z.push(Y.packIHDR(q.width,q.height)),q.gamma)z.push(Y.packGAMA(q.gamma));let A=Y.filterData(q.data,q.width,q.height),O=cNK.deflateSync(A,Y.getDeflateOptions());if(A=null,!O||!O.length)throw Error("bad png - invalid compressed data response");return z.push(Y.packIDAT(O)),z.push(Y.packIEND()),Buffer.concat(z)}});var nNK=u((LJz)=>{var yJz=QNK(),EJz=iNK();LJz.read=function(q,K){return yJz(q,K||{})};LJz.write=function(q,K){return EJz(q,K)}});var oNK=u((xJz)=>{var SJz=g6("util"),rNK=g6("stream"),CJz=fNK(),bJz=hNK(),IJz=nNK(),dv=xJz.PNG=function(q){if(rNK.call(this),q=q||{},this.width=q.width|0,this.height=q.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,q.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new CJz(q),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(K){this.data=K,this.emit("parsed",K)}.bind(this)),this._packer=new bJz(q),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};SJz.inherits(dv,rNK);dv.sync=IJz;dv.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};dv.prototype.parse=function(q,K){if(K){let _,Y;_=function(z){this.removeListener("error",Y),this.data=z,K(null,this)}.bind(this),Y=function(z){this.removeListener("parsed",_),K(z,null)}.bind(this),this.once("parsed",_),this.once("error",Y)}return this.end(q),this};dv.prototype.write=function(q){return this._parser.write(q),!0};dv.prototype.end=function(q){this._parser.end(q)};dv.prototype._metadata=function(q){this.width=q.width,this.height=q.height,this.emit("metadata",q)};dv.prototype._gamma=function(q){this.gamma=q};dv.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};dv.bitblt=function(q,K,_,Y,z,A,O,$){if(_|=0,Y|=0,z|=0,A|=0,O|=0,$|=0,_>q.width||Y>q.height||_+z>q.width||Y+A>q.height)throw Error("bitblt reading outside image");if(O>K.width||$>K.height||O+z>K.width||$+A>K.height)throw Error("bitblt writing outside image");for(let w=0;w<A;w++)q.data.copy(K.data,($+w)*K.width+O<<2,(Y+w)*q.width+_<<2,(Y+w)*q.width+_+z<<2)};dv.prototype.bitblt=function(q,K,_,Y,z,A,O){return dv.bitblt(this,q,K,_,Y,z,A,O),this};dv.adjustGamma=function(q){if(q.gamma){for(let K=0;K<q.height;K++)for(let _=0;_<q.width;_++){let Y=q.width*K+_<<2;for(let z=0;z<3;z++){let A=q.data[Y+z]/255;A=Math.pow(A,0.45454545454545453/q.gamma),q.data[Y+z]=Math.round(A*255)}}q.gamma=0}};dv.prototype.adjustGamma=function(){dv.adjustGamma(this)}});var f18=u((uJz)=>{function aNK(q){if(typeof q==="number")q=q.toString();if(typeof q!=="string")throw Error("Color should be defined as hex string");let K=q.slice().replace("#","").split("");if(K.length<3||K.length===5||K.length>8)throw Error("Invalid hex color: "+q);if(K.length===3||K.length===4)K=Array.prototype.concat.apply([],K.map(function(Y){return[Y,Y]}));if(K.length===6)K.push("F","F");let _=parseInt(K.join(""),16);return{r:_>>24&255,g:_>>16&255,b:_>>8&255,a:_&255,hex:"#"+K.slice(0,6).join("")}}uJz.getOptions=function(K){if(!K)K={};if(!K.color)K.color={};let _=typeof K.margin>"u"||K.margin===null||K.margin<0?4:K.margin,Y=K.width&&K.width>=21?K.width:void 0,z=K.scale||4;return{width:Y,scale:Y?4:z,margin:_,color:{dark:aNK(K.color.dark||"#000000ff"),light:aNK(K.color.light||"#ffffffff")},type:K.type,rendererOpts:K.rendererOpts||{}}};uJz.getScale=function(K,_){return _.width&&_.width>=K+_.margin*2?_.width/(K+_.margin*2):_.scale};uJz.getImageWidth=function(K,_){let Y=uJz.getScale(K,_);return Math.floor((K+_.margin*2)*Y)};uJz.qrToImageData=function(K,_,Y){let z=_.modules.size,A=_.modules.data,O=uJz.getScale(z,Y),$=Math.floor((z+Y.margin*2)*O),w=Y.margin*O,j=[Y.color.light,Y.color.dark];for(let H=0;H<$;H++)for(let J=0;J<$;J++){let X=(H*$+J)*4,M=Y.color.light;if(H>=w&&J>=w&&H<$-w&&J<$-w){let D=Math.floor((H-w)/O),P=Math.floor((J-w)/O);M=j[A[D*z+P]?1:0]}K[X++]=M.r,K[X++]=M.g,K[X++]=M.b,K[X]=M.a}}});var sNK=u((UJz)=>{var FJz=g6("fs"),gJz=oNK().PNG,D47=f18();UJz.render=function(K,_){let Y=D47.getOptions(_),z=Y.rendererOpts,A=D47.getImageWidth(K.modules.size,Y);z.width=A,z.height=A;let O=new gJz(z);return D47.qrToImageData(O.data,K,Y),O};UJz.renderToDataURL=function(K,_,Y){if(typeof Y>"u")Y=_,_=void 0;UJz.renderToBuffer(K,_,function(z,A){if(z)Y(z);let O="data:image/png;base64,";O+=A.toString("base64"),Y(null,O)})};UJz.renderToBuffer=function(K,_,Y){if(typeof Y>"u")Y=_,_=void 0;let z=UJz.render(K,_),A=[];z.on("error",Y),z.on("data",function(O){A.push(O)}),z.on("end",function(){Y(null,Buffer.concat(A))}),z.pack()};UJz.renderToFile=function(K,_,Y,z){if(typeof z>"u")z=Y,Y=void 0;let A=!1,O=(...w)=>{if(A)return;A=!0,z.apply(null,w)},$=FJz.createWriteStream(K);$.on("error",O),$.on("close",O),UJz.renderToFileStream($,_,Y)};UJz.renderToFileStream=function(K,_,Y){UJz.render(_,Y).pack().pipe(K)}});var eNK=u((aJz)=>{var iJz=f18(),nJz={WW:" ",WB:"▄",BB:"█",BW:"▀"},rJz={BB:" ",BW:"▄",WW:"█",WB:"▀"};function oJz(q,K,_){if(q&&K)return _.BB;if(q&&!K)return _.BW;if(!q&&K)return _.WB;return _.WW}aJz.render=function(q,K,_){let Y=iJz.getOptions(K),z=nJz;if(Y.color.dark.hex==="#ffffff"||Y.color.light.hex==="#000000")z=rJz;let A=q.modules.size,O=q.modules.data,$="",w=Array(A+Y.margin*2+1).join(z.WW);w=Array(Y.margin/2+1).join(w+`
 
 
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/01392ce218eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/015993c918eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00
 
 
SPFsmartGATE/LIVE/BRAIN/DOCS/017d7ec418eecbfb.txt DELETED
@@ -1 +0,0 @@
1
- GATE SIGNAL | tool=Grep source=stdio allowed=true label=-1.0 weight=4.0 evil=0.00 relevance=1.00 fp=true override=false | context=[Glob,Glob,Read] | ts=2026-03-18T08:29:57.603263118+00:00