keepfold 0.6.4__py3-none-any.whl

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 (148) hide show
  1. keepfold/__init__.py +1 -0
  2. keepfold/_proc.py +102 -0
  3. keepfold/access.py +154 -0
  4. keepfold/agent_eval.py +162 -0
  5. keepfold/agent_text.py +56 -0
  6. keepfold/anki.py +285 -0
  7. keepfold/app/__init__.py +5 -0
  8. keepfold/app/actions.py +690 -0
  9. keepfold/app/desktop.py +677 -0
  10. keepfold/app/exports.py +254 -0
  11. keepfold/app/hello.py +79 -0
  12. keepfold/app/launch.py +114 -0
  13. keepfold/app/news.py +60 -0
  14. keepfold/app/server.py +3142 -0
  15. keepfold/app/status.py +811 -0
  16. keepfold/app/targets.py +1374 -0
  17. keepfold/app/winpath.py +54 -0
  18. keepfold/app/wizard.py +506 -0
  19. keepfold/ask.py +475 -0
  20. keepfold/askfile.py +322 -0
  21. keepfold/assets/LICENSE-d3.txt +13 -0
  22. keepfold/assets/agent_eval.json +235 -0
  23. keepfold/assets/app/app.css +611 -0
  24. keepfold/assets/app/app.js +2712 -0
  25. keepfold/assets/app/capture.html +16 -0
  26. keepfold/assets/app/capture.js +91 -0
  27. keepfold/assets/app/index.html +149 -0
  28. keepfold/assets/brain3d.js +3730 -0
  29. keepfold/assets/chat_eval.json +454 -0
  30. keepfold/assets/d3.v7.min.js +2 -0
  31. keepfold/assets/dashboard.css +774 -0
  32. keepfold/assets/dashboard.html.tmpl +170 -0
  33. keepfold/assets/dashboard.js +4262 -0
  34. keepfold/assets/help/GUIDE.md +544 -0
  35. keepfold/assets/help/help.md +83 -0
  36. keepfold/assets/keepfold.ico +0 -0
  37. keepfold/assets/whats_new.json +162 -0
  38. keepfold/backup.py +100 -0
  39. keepfold/brainmap.py +1382 -0
  40. keepfold/browse/__init__.py +10 -0
  41. keepfold/browse/build.py +1320 -0
  42. keepfold/browse/forget.py +510 -0
  43. keepfold/browse/legacy.py +95 -0
  44. keepfold/browse/lists.py +285 -0
  45. keepfold/browse/privacy.py +391 -0
  46. keepfold/browse/selftest.py +166 -0
  47. keepfold/browse/sites.py +1068 -0
  48. keepfold/browse/sources.py +329 -0
  49. keepfold/browse/store.py +991 -0
  50. keepfold/browse/takeout.py +312 -0
  51. keepfold/browse/titles.py +127 -0
  52. keepfold/browse/vectors.py +326 -0
  53. keepfold/browse_serve.py +332 -0
  54. keepfold/catalog.py +564 -0
  55. keepfold/chat.py +1464 -0
  56. keepfold/chat_archive.py +165 -0
  57. keepfold/chat_eval.py +583 -0
  58. keepfold/chat_facts.py +721 -0
  59. keepfold/chat_import.py +1045 -0
  60. keepfold/chat_pages.py +291 -0
  61. keepfold/chat_study.py +371 -0
  62. keepfold/chats.py +669 -0
  63. keepfold/claims.py +650 -0
  64. keepfold/cli.py +3254 -0
  65. keepfold/clients.py +96 -0
  66. keepfold/cloudllm.py +135 -0
  67. keepfold/contract.py +43 -0
  68. keepfold/corrections.py +134 -0
  69. keepfold/dashboard.py +959 -0
  70. keepfold/dates.py +202 -0
  71. keepfold/delta.py +146 -0
  72. keepfold/digest.py +72 -0
  73. keepfold/doctor.py +565 -0
  74. keepfold/duplicates.py +145 -0
  75. keepfold/egress.py +68 -0
  76. keepfold/eval_history.py +109 -0
  77. keepfold/events.py +554 -0
  78. keepfold/export_context.py +109 -0
  79. keepfold/fact_harvest.py +578 -0
  80. keepfold/forget.py +720 -0
  81. keepfold/harvest.py +334 -0
  82. keepfold/home.py +714 -0
  83. keepfold/importers.py +627 -0
  84. keepfold/index.py +733 -0
  85. keepfold/know.py +40 -0
  86. keepfold/learning_eval.py +261 -0
  87. keepfold/levels.py +595 -0
  88. keepfold/life_sources.py +747 -0
  89. keepfold/lint.py +241 -0
  90. keepfold/localllm.py +699 -0
  91. keepfold/loops.py +316 -0
  92. keepfold/mcp_server.py +4464 -0
  93. keepfold/migrate.py +552 -0
  94. keepfold/more_sources.py +709 -0
  95. keepfold/packs.py +148 -0
  96. keepfold/people.py +99 -0
  97. keepfold/planner.py +819 -0
  98. keepfold/prime.py +630 -0
  99. keepfold/prime_hook.py +265 -0
  100. keepfold/profiles.py +118 -0
  101. keepfold/quarantine.py +123 -0
  102. keepfold/recall_log.py +93 -0
  103. keepfold/redteam.py +393 -0
  104. keepfold/reflect.py +164 -0
  105. keepfold/relink.py +477 -0
  106. keepfold/render.py +406 -0
  107. keepfold/review.py +1181 -0
  108. keepfold/rollups.py +412 -0
  109. keepfold/safety_net.py +571 -0
  110. keepfold/sample.py +103 -0
  111. keepfold/sample_vault/areas/programming.algorithms.md +11 -0
  112. keepfold/sample_vault/areas/programming.basics.md +11 -0
  113. keepfold/sample_vault/concepts/big-o-notation.md +13 -0
  114. keepfold/sample_vault/concepts/functions.md +13 -0
  115. keepfold/sample_vault/concepts/loops.md +14 -0
  116. keepfold/sample_vault/concepts/recursion.md +13 -0
  117. keepfold/sample_vault/domains/programming.md +10 -0
  118. keepfold/sample_vault/journal/2026-01-12.md +9 -0
  119. keepfold/sample_vault/me/goals.md +17 -0
  120. keepfold/sample_vault/me/profile.md +19 -0
  121. keepfold/sample_vault/mistakes/programming.off-by-one-loop.md +16 -0
  122. keepfold/sample_vault/notes/recursion-needs-a-base-case.md +18 -0
  123. keepfold/sample_vault/problems/fizzbuzz.md +12 -0
  124. keepfold/sample_vault/projects/text-adventure.md +15 -0
  125. keepfold/sample_vault/resources/python-tutorial.md +16 -0
  126. keepfold/semantic.py +1254 -0
  127. keepfold/session.py +764 -0
  128. keepfold/share.py +69 -0
  129. keepfold/sources.py +612 -0
  130. keepfold/sync_copies.py +83 -0
  131. keepfold/tags.py +230 -0
  132. keepfold/taint.py +301 -0
  133. keepfold/tonight.py +195 -0
  134. keepfold/topics.py +1072 -0
  135. keepfold/update.py +300 -0
  136. keepfold/vault.py +942 -0
  137. keepfold/vecstore.py +218 -0
  138. keepfold/voice.py +260 -0
  139. keepfold/voice_memos.py +280 -0
  140. keepfold/watch.py +303 -0
  141. keepfold/where.py +119 -0
  142. keepfold/xray.py +516 -0
  143. keepfold/zotero.py +303 -0
  144. keepfold-0.6.4.dist-info/METADATA +644 -0
  145. keepfold-0.6.4.dist-info/RECORD +148 -0
  146. keepfold-0.6.4.dist-info/WHEEL +4 -0
  147. keepfold-0.6.4.dist-info/entry_points.txt +6 -0
  148. keepfold-0.6.4.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,11 @@
1
+ ---
2
+ id: "programming.algorithms"
3
+ title: "First algorithms"
4
+ kind: "area"
5
+ domain: "programming"
6
+ parent: "[[programming]]"
7
+ sample: true
8
+ ---
9
+ # First algorithms
10
+
11
+ ## Notes
@@ -0,0 +1,11 @@
1
+ ---
2
+ id: "programming.basics"
3
+ title: "Programming basics"
4
+ kind: "area"
5
+ domain: "programming"
6
+ parent: "[[programming]]"
7
+ sample: true
8
+ ---
9
+ # Programming basics
10
+
11
+ ## Notes
@@ -0,0 +1,13 @@
1
+ ---
2
+ id: "big-o-notation"
3
+ title: "Big-O notation"
4
+ parent: "[[programming.algorithms]]"
5
+ domain: "programming"
6
+ aliases: ["big o", "time complexity"]
7
+ requires: ["[[loops]]"]
8
+ sample: true
9
+ ---
10
+ # Big-O notation
11
+
12
+ ## Notes
13
+ - Count how the work grows with the input, not the seconds it takes.
@@ -0,0 +1,13 @@
1
+ ---
2
+ id: "functions"
3
+ title: "Functions"
4
+ parent: "[[programming.basics]]"
5
+ domain: "programming"
6
+ aliases: ["def"]
7
+ requires: ["[[loops]]"]
8
+ sample: true
9
+ ---
10
+ # Functions
11
+
12
+ ## Notes
13
+ - A function without `return` gives back `None`.
@@ -0,0 +1,14 @@
1
+ ---
2
+ id: "loops"
3
+ title: "Loops"
4
+ parent: "[[programming.basics]]"
5
+ domain: "programming"
6
+ aliases: ["for loop", "while loop"]
7
+ requires: []
8
+ mistakes: ["[[programming.off-by-one-loop]]"]
9
+ sample: true
10
+ ---
11
+ # Loops
12
+
13
+ ## Notes
14
+ - A `for` loop walks over a sequence; `range(n)` stops before `n`.
@@ -0,0 +1,13 @@
1
+ ---
2
+ id: "recursion"
3
+ title: "Recursion"
4
+ parent: "[[programming.algorithms]]"
5
+ domain: "programming"
6
+ aliases: ["recursive function"]
7
+ requires: ["[[functions]]"]
8
+ sample: true
9
+ ---
10
+ # Recursion
11
+
12
+ ## Notes
13
+ - Every call must move toward a base case.
@@ -0,0 +1,10 @@
1
+ ---
2
+ id: "programming"
3
+ title: "Programming"
4
+ kind: "domain"
5
+ aliases: ["coding"]
6
+ sample: true
7
+ ---
8
+ # Programming
9
+
10
+ ## Notes
@@ -0,0 +1,9 @@
1
+ ---
2
+ title: "Journal 2026-01-12"
3
+ kind: "journal"
4
+ date: "2026-01-12"
5
+ sample: true
6
+ ---
7
+ ## Log
8
+ - 19:30 Solved [[fizzbuzz]] after fixing an off-by-one in the loop.
9
+ - 20:10 Started reading about [[recursion]]; the base case idea clicked.
@@ -0,0 +1,17 @@
1
+ ---
2
+ summary: My goals
3
+ sample: true
4
+ ---
5
+
6
+ # My goals
7
+
8
+ ## Now
9
+ - Pass the intro programming midterm in six weeks.
10
+ - Finish the [[text-adventure]] project.
11
+
12
+ ## Later
13
+ - Understand [[big-o-notation]] well enough to compare two solutions.
14
+
15
+ ## Past
16
+
17
+ ## Not me
@@ -0,0 +1,19 @@
1
+ ---
2
+ summary: Who I am
3
+ sample: true
4
+ ---
5
+
6
+ # Who I am
7
+
8
+ This is a sample page for a made-up learner, Sam. Run `keepfold sample remove` to clear it.
9
+
10
+ ## Background
11
+ - Sam is a first-year student in an intro programming course.
12
+ - Sam learns Python on a laptop, mostly in the evenings.
13
+
14
+ ## Current focus
15
+ - Getting comfortable with loops, functions and recursion before the midterm.
16
+
17
+ ## Past
18
+
19
+ ## Not me
@@ -0,0 +1,16 @@
1
+ ---
2
+ id: "programming.off-by-one-loop"
3
+ title: "Off-by-one at the end of a loop"
4
+ concepts: ["[[loops]]"]
5
+ sample: true
6
+ ---
7
+ # Off-by-one at the end of a loop
8
+
9
+ ## Pattern
10
+ Writes `range(1, n)` when the last number `n` should be included.
11
+
12
+ ## Fix
13
+ Say the last value out loud, then check it against the range end.
14
+
15
+ ## Seen
16
+ FizzBuzz, first attempt.
@@ -0,0 +1,18 @@
1
+ ---
2
+ id: "recursion-needs-a-base-case"
3
+ title: "Recursion needs a base case"
4
+ kind: "note"
5
+ note_type: "permanent"
6
+ summary: "A recursive function stops only when some input returns without calling itself."
7
+ tags: ["python"]
8
+ related: ["[[recursion]]", "[[functions]]"]
9
+ sample: true
10
+ ---
11
+ # Recursion needs a base case
12
+
13
+ Without a base case each call makes another call until Python raises `RecursionError`.
14
+ Write the base case first, then make every other call move closer to it.
15
+
16
+ ## Links
17
+ - [[recursion]]: the concept this note explains.
18
+ - [[functions]]: a recursive function is still an ordinary function.
@@ -0,0 +1,12 @@
1
+ ---
2
+ id: "fizzbuzz"
3
+ title: "FizzBuzz"
4
+ platform: "other"
5
+ concepts: ["[[loops]]"]
6
+ status: "solved"
7
+ sample: true
8
+ ---
9
+ # FizzBuzz
10
+
11
+ ## Notes
12
+ - Check divisibility by 15 first.
@@ -0,0 +1,15 @@
1
+ ---
2
+ id: "text-adventure"
3
+ title: "Text adventure game"
4
+ kind: "project"
5
+ status: "active"
6
+ summary: "A small terminal game: rooms in a dict, one function per command."
7
+ stack: ["python"]
8
+ applies: ["[[functions]]", "[[loops]]"]
9
+ related: []
10
+ sample: true
11
+ ---
12
+ # Text adventure game
13
+
14
+ ## Notes
15
+ - The main loop reads a command and calls the matching function.
@@ -0,0 +1,16 @@
1
+ ---
2
+ id: "python-tutorial"
3
+ title: "The Python Tutorial"
4
+ kind: "resource"
5
+ resource_type: "article"
6
+ url: "https://docs.python.org/3/tutorial/"
7
+ status: "reading"
8
+ summary: "The official tutorial; chapters 3 and 4 cover loops and functions."
9
+ covers: ["[[loops]]", "[[functions]]"]
10
+ related: []
11
+ sample: true
12
+ ---
13
+ # The Python Tutorial
14
+
15
+ ## Notes
16
+ - Chapter 4 explains `range()` and why it stops early.