amalfa 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/package.json +1 -1
  2. package/src/cli.ts +1 -1
  3. package/docs/AGENT-METADATA-PATTERNS.md +0 -1021
  4. package/docs/AGENT_PROTOCOLS.md +0 -28
  5. package/docs/ARCHITECTURAL_OVERVIEW.md +0 -123
  6. package/docs/BENTO_BOXING_DEPRECATION.md +0 -281
  7. package/docs/Bun-SQLite.html +0 -464
  8. package/docs/COMMIT_GUIDELINES.md +0 -367
  9. package/docs/CONFIG_E2E_VALIDATION.md +0 -147
  10. package/docs/CONFIG_UNIFICATION.md +0 -187
  11. package/docs/CONFIG_VALIDATION.md +0 -103
  12. package/docs/DEVELOPER_ONBOARDING.md +0 -36
  13. package/docs/Graph and Vector Database Best Practices.md +0 -214
  14. package/docs/LEGACY_DEPRECATION.md +0 -174
  15. package/docs/MCP_SETUP.md +0 -317
  16. package/docs/PERFORMANCE_BASELINES.md +0 -88
  17. package/docs/QUICK_START_MCP.md +0 -168
  18. package/docs/REPOSITORY_CLEANUP_SUMMARY.md +0 -261
  19. package/docs/SESSION-2026-01-06-METADATA-PATTERNS.md +0 -346
  20. package/docs/SETUP.md +0 -464
  21. package/docs/SETUP_COMPLETE.md +0 -464
  22. package/docs/VISION-AGENT-LEARNING.md +0 -1242
  23. package/docs/_current-config-status.md +0 -93
  24. package/docs/edge-generation-methods.md +0 -57
  25. package/docs/elevator-pitch.md +0 -118
  26. package/docs/graph-and-vector-database-playbook.html +0 -480
  27. package/docs/hardened-sqlite.md +0 -85
  28. package/docs/headless-knowledge-management.md +0 -79
  29. package/docs/john-kaye-flux-prompt.md +0 -46
  30. package/docs/keyboard-shortcuts.md +0 -80
  31. package/docs/opinion-proceed-pattern.md +0 -29
  32. package/docs/polyvis-nodes-edges-schema.md +0 -77
  33. package/docs/protocols/lab-protocol.md +0 -30
  34. package/docs/reaction-iquest-loop-coder.md +0 -46
  35. package/docs/services.md +0 -60
  36. package/docs/sqlite-wal-readonly-trap.md +0 -228
  37. package/docs/strategy/css-architecture.md +0 -40
  38. package/docs/test-document-cycle.md +0 -83
  39. package/docs/test_lifecycle_E2E.md +0 -4
  40. package/docs/the-bicameral-graph.md +0 -83
  41. package/docs/user-guide.md +0 -70
  42. package/docs/vision-helper.md +0 -53
  43. package/polyvis.settings.json.bak +0 -38
  44. package/src/EnlightenedTriad.ts +0 -146
  45. package/src/JIT_Triad.ts +0 -137
  46. package/src/data/experience/test_doc_1.md +0 -2
  47. package/src/data/experience/test_doc_2.md +0 -2
  48. package/src/demo-triad.ts +0 -45
  49. package/src/gardeners/BaseGardener.ts +0 -55
  50. package/src/llm/EnlightenedProvider.ts +0 -95
  51. package/src/services/README.md +0 -56
  52. package/src/services/llama.ts +0 -59
  53. package/src/services/llamauv.ts +0 -56
  54. package/src/services/olmo3.ts +0 -58
  55. package/src/services/phi.ts +0 -52
package/docs/SETUP.md DELETED
@@ -1,464 +0,0 @@
1
- # AMALFA Setup Guide
2
-
3
- Complete guide for setting up NPM publishing with privacy-preserving email configuration.
4
-
5
- ---
6
-
7
- ## Pre-requisites Checklist
8
-
9
- - [ ] GitHub account exists
10
- - [ ] Password manager ready (1Password, Bitwarden, etc.)
11
- - [ ] Terminal open
12
- - [ ] Git configured globally
13
-
14
- ---
15
-
16
- ## Step 1: Get Your GitHub No-Reply Email
17
-
18
- ### 1.1 Navigate to GitHub Email Settings
19
-
20
- ```bash
21
- # Open in browser:
22
- open https://github.com/settings/emails
23
- ```
24
-
25
- ### 1.2 Enable Privacy Settings
26
-
27
- - [ ] Check **"Keep my email addresses private"**
28
- - [ ] Check **"Block command line pushes that expose my email"**
29
-
30
- ### 1.3 Copy Your No-Reply Email
31
-
32
- You'll see something like:
33
- ```
34
- 123456789+yourusername@users.noreply.github.com
35
- ```
36
-
37
- **Copy this exact address** - you'll need it multiple times.
38
-
39
- **Example format:**
40
- ```
41
- <numeric-id>+<github-username>@users.noreply.github.com
42
- ```
43
-
44
- ---
45
-
46
- ## Step 2: Configure Git Globally (Important!)
47
-
48
- ### 2.1 Set Your Git Email
49
-
50
- ```bash
51
- # Replace with YOUR no-reply email from Step 1.3
52
- git config --global user.email "123456789+yourusername@users.noreply.github.com"
53
-
54
- # Set your display name (if not already set)
55
- git config --global user.name "Your Name"
56
- ```
57
-
58
- ### 2.2 Verify Configuration
59
-
60
- ```bash
61
- git config --global --list | grep user
62
- ```
63
-
64
- **Expected output:**
65
- ```
66
- user.name=Your Name
67
- user.email=123456789+yourusername@users.noreply.github.com
68
- ```
69
-
70
- ---
71
-
72
- ## Step 3: Create NPM Account
73
-
74
- ### 3.1 Choose Your Method
75
-
76
- **Option A: Web-Based Signup (Recommended)**
77
- 1. Go to: https://www.npmjs.com/signup
78
- 2. Use real email for signup (e.g., `youremail@gmail.com`)
79
- 3. Verify email via browser
80
- 4. Then change to no-reply email via CLI (see Step 4)
81
-
82
- **Option B: CLI Signup**
83
- ```bash
84
- npm adduser
85
- ```
86
-
87
- ### 3.2 CLI Prompts (if using Option B)
88
-
89
- **Prompt 1: Username**
90
- ```
91
- npm username:
92
- ```
93
- - Enter your desired NPM username (e.g., `pjsvis`, `petersmith`, etc.)
94
- - Must be unique across NPM
95
- - Lowercase, hyphens allowed, no special characters
96
- - **Check availability first:** https://www.npmjs.com/~yourusername
97
-
98
- **Prompt 2: Password**
99
- ```
100
- npm password:
101
- ```
102
- - **Use password manager** to generate strong password
103
- - NPM requires: 10+ characters
104
- - Save in password manager immediately
105
-
106
- **Prompt 3: Email**
107
- ```
108
- email (this IS public):
109
- ```
110
- - **Use real email temporarily** for verification
111
- - You'll switch to no-reply after account is verified
112
-
113
- ### 3.3 Email Verification
114
-
115
- If you used a real email, check your inbox for the OTP and complete verification.
116
-
117
- ---
118
-
119
- ## Step 4: Switch to No-Reply Email
120
-
121
- After account is created and verified:
122
-
123
- ```bash
124
- # Login if needed
125
- npm login
126
-
127
- # Change to your GitHub no-reply email
128
- npm profile set email "123456789+yourusername@users.noreply.github.com"
129
-
130
- # Verify change
131
- npm profile get
132
- ```
133
-
134
- **Check output includes:**
135
- ```json
136
- {
137
- "email": "123456789+yourusername@users.noreply.github.com",
138
- "email_verified": true
139
- }
140
- ```
141
-
142
- ---
143
-
144
- ## Step 5: Enable 2FA (Highly Recommended)
145
-
146
- ```bash
147
- # Enable 2FA for auth + publishing
148
- npm profile enable-2fa auth-and-writes
149
- ```
150
-
151
- **Follow prompts:**
152
- 1. Scan QR code with authenticator app (1Password, Authy, Google Authenticator)
153
- 2. Enter 6-digit code to confirm
154
- 3. **Save recovery codes** in password manager
155
-
156
- **Verify 2FA status:**
157
- ```bash
158
- npm profile get
159
- ```
160
-
161
- Should show:
162
- ```json
163
- {
164
- "tfa": {
165
- "mode": "auth-and-writes",
166
- "pending": false
167
- }
168
- }
169
- ```
170
-
171
- ---
172
-
173
- ## Step 6: Reserve "amalfa" Package Name
174
-
175
- ### 6.1 Create Minimal Package
176
-
177
- ```bash
178
- # Create temporary directory
179
- mkdir -p /tmp/amalfa-reserve
180
- cd /tmp/amalfa-reserve
181
-
182
- # Create minimal package.json
183
- cat > package.json << 'EOF'
184
- {
185
- "name": "amalfa",
186
- "version": "0.0.0-reserved",
187
- "description": "A Memory Layer For Agents - MCP server for knowledge graphs (Coming Soon)",
188
- "author": "Your Name <123456789+yourusername@users.noreply.github.com>",
189
- "license": "MIT",
190
- "repository": {
191
- "type": "git",
192
- "url": "https://github.com/yourusername/amalfa"
193
- },
194
- "keywords": [
195
- "mcp",
196
- "model-context-protocol",
197
- "knowledge-graph",
198
- "ai-agents",
199
- "vector-search",
200
- "coming-soon"
201
- ]
202
- }
203
- EOF
204
- ```
205
-
206
- **⚠️ Update these fields:**
207
- - `author`: Your actual name + your no-reply email
208
- - `repository.url`: Your actual GitHub repo URL
209
-
210
- ### 6.2 Create README
211
-
212
- ```bash
213
- cat > README.md << 'EOF'
214
- # AMALFA
215
-
216
- **A Memory Layer For Agents**
217
-
218
- 🚧 **Coming Soon** 🚧
219
-
220
- AMALFA is an MCP (Model Context Protocol) server that gives AI agents access to your project's knowledge graph.
221
-
222
- ## Planned Features
223
-
224
- - 🔍 Vector search over markdown documentation
225
- - 📊 Graph traversal (relationships between docs)
226
- - 🧠 Works with Claude Desktop, Cursor, Windsurf
227
- - ⚡ Built with Bun + SQLite + FastEmbed
228
-
229
- ## Status
230
-
231
- Currently in development. Watch this space!
232
-
233
- **GitHub:** https://github.com/yourusername/amalfa
234
- **Author:** @yourusername
235
-
236
- ---
237
-
238
- _This is a placeholder package to reserve the name. v1.0.0 coming soon._
239
- EOF
240
- ```
241
-
242
- ### 6.3 Publish Placeholder
243
-
244
- ```bash
245
- # Verify contents
246
- ls -la
247
- # Should see: package.json, README.md
248
-
249
- # Publish (reserves the name)
250
- npm publish --access public
251
- ```
252
-
253
- **If 2FA enabled, you'll be prompted for OTP:**
254
- ```
255
- npm notice Please enter OTP:
256
- ```
257
- - Enter 6-digit code from authenticator app
258
-
259
- **Success message:**
260
- ```
261
- + amalfa@0.0.0-reserved
262
- ```
263
-
264
- ### 6.4 Verify Publication
265
-
266
- ```bash
267
- # Check NPM registry
268
- npm view amalfa
269
-
270
- # Visit in browser
271
- open https://www.npmjs.com/package/amalfa
272
- ```
273
-
274
- ---
275
-
276
- ## Step 7: Security Hardening
277
-
278
- ### 7.1 Store Credentials in Password Manager
279
-
280
- **Save these items:**
281
- - [ ] NPM username
282
- - [ ] NPM password
283
- - [ ] 2FA recovery codes
284
- - [ ] GitHub no-reply email address
285
-
286
- ### 7.2 Configure NPM Defaults
287
-
288
- ```bash
289
- # Set default access to public (for open source)
290
- npm config set access public
291
-
292
- # Verify config
293
- npm config list
294
- ```
295
-
296
- ### 7.3 Test Login Flow
297
-
298
- ```bash
299
- npm logout
300
- npm login
301
- ```
302
-
303
- Enter credentials to confirm everything works with 2FA.
304
-
305
- ---
306
-
307
- ## Step 8: Prepare for v1.0 Release
308
-
309
- ### 8.1 Development Workflow
310
-
311
- **Package lifecycle:**
312
- ```
313
- 0.0.0-reserved → [development] → 1.0.0 → 1.0.1 → ...
314
- (today) (weeks 1-2) (launch) (patches)
315
- ```
316
-
317
- ### 8.2 When Ready to Publish v1.0
318
-
319
- ```bash
320
- # In your actual project directory
321
- cd ~/Documents/GitHub/amalfa
322
-
323
- # Update version
324
- npm version 1.0.0
325
-
326
- # Publish release
327
- npm publish --access public
328
-
329
- # Create GitHub release
330
- gh release create v1.0.0 --generate-notes
331
- ```
332
-
333
- ---
334
-
335
- ## Common Issues & Solutions
336
-
337
- ### Issue: "You must verify your email to publish"
338
-
339
- **Solution:**
340
- ```bash
341
- # Log into npmjs.com with browser
342
- open https://www.npmjs.com/login
343
-
344
- # Go to email settings, resend verification
345
- # Use real email temporarily, then switch to no-reply after verified
346
- ```
347
-
348
- ### Issue: "Package name already taken"
349
-
350
- **Solution:**
351
- ```bash
352
- # Check if truly taken
353
- npm view amalfa
354
-
355
- # If taken, consider alternatives:
356
- # - @yourusername/amalfa (scoped package)
357
- # - amalfa-mcp
358
- # - amalfa-server
359
- ```
360
-
361
- ### Issue: "403 Forbidden - you must be logged in"
362
-
363
- **Solution:**
364
- ```bash
365
- npm logout
366
- npm login
367
- # Re-enter credentials
368
- ```
369
-
370
- ### Issue: "Invalid email format"
371
-
372
- **Solution:**
373
- - GitHub no-reply emails ARE valid
374
- - Copy exact format from GitHub settings
375
- - Include the numeric prefix
376
- - Don't add extra spaces
377
-
378
- ### Issue: "No one-time password received"
379
-
380
- **This is expected!** No-reply emails don't receive messages. That's why we:
381
- 1. Use real email during signup
382
- 2. Verify the account
383
- 3. Switch to no-reply email after verification
384
-
385
- ---
386
-
387
- ## Quick Reference Card
388
-
389
- ```bash
390
- # Account Management
391
- npm adduser # Create account
392
- npm login # Sign in
393
- npm logout # Sign out
394
- npm whoami # Current user
395
- npm profile get # Account details
396
- npm profile set email "email@example.com" # Change email
397
- npm profile enable-2fa auth-and-writes # Enable 2FA
398
-
399
- # Publishing
400
- npm publish --access public # Publish package
401
- npm version <major|minor|patch> # Bump version
402
- npm view <package> # Check registry
403
- npm unpublish <package@version> # Remove version (careful!)
404
-
405
- # Configuration
406
- npm config set access public # Default to public
407
- npm config list # View all config
408
- ```
409
-
410
- ---
411
-
412
- ## Checklist Summary
413
-
414
- - [ ] Get GitHub no-reply email from https://github.com/settings/emails
415
- - [ ] Configure git global email to no-reply address
416
- - [ ] Create NPM account (use real email for verification)
417
- - [ ] Change NPM email to no-reply address after verification
418
- - [ ] Enable 2FA on NPM account
419
- - [ ] Save credentials in password manager
420
- - [ ] Create placeholder package.json
421
- - [ ] Publish `amalfa@0.0.0-reserved` to reserve name
422
- - [ ] Verify publication at npmjs.com/package/amalfa
423
- - [ ] Configure NPM defaults (public access)
424
- - [ ] Test login/logout flow with 2FA
425
-
426
- ---
427
-
428
- ## Status After Completion
429
-
430
- ✅ NPM account created with privacy-preserving email
431
- ✅ Package name "amalfa" reserved
432
- ✅ 2FA enabled for security
433
- ✅ Ready to build and publish v1.0.0
434
-
435
- **Next Steps:**
436
- 1. Extract MCP server from PolyVis
437
- 2. Build AMALFA standalone package
438
- 3. Test thoroughly
439
- 4. Publish v1.0.0
440
- 5. Announce! 🚀
441
-
442
- ---
443
-
444
- ## Privacy Benefits of No-Reply Email
445
-
446
- Using GitHub's no-reply email provides:
447
-
448
- - **Spam Protection:** Your real email never appears in public package metadata
449
- - **Consistency:** Same email across Git commits and NPM packages
450
- - **Professional:** Clean separation between personal and public identity
451
- - **Security:** Reduces attack surface for social engineering
452
-
453
- **What's Public:**
454
- - Your NPM username
455
- - Your no-reply email (but it doesn't receive messages)
456
- - Package metadata (name, version, description)
457
-
458
- **What's Private:**
459
- - Your real email address
460
- - Your ability to receive unsolicited messages
461
-
462
- ---
463
-
464
- **Last Updated:** 2026-01-06