threadlight 0.1.0__tar.gz

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 (95) hide show
  1. threadlight-0.1.0/.gitignore +152 -0
  2. threadlight-0.1.0/LICENSE +21 -0
  3. threadlight-0.1.0/PKG-INFO +589 -0
  4. threadlight-0.1.0/README.md +531 -0
  5. threadlight-0.1.0/pyproject.toml +127 -0
  6. threadlight-0.1.0/src/threadlight/__init__.py +194 -0
  7. threadlight-0.1.0/src/threadlight/api/__init__.py +7 -0
  8. threadlight-0.1.0/src/threadlight/api/server.py +5646 -0
  9. threadlight-0.1.0/src/threadlight/api/static/index.html +4843 -0
  10. threadlight-0.1.0/src/threadlight/api/static/js/app.js +5510 -0
  11. threadlight-0.1.0/src/threadlight/capsules/__init__.py +109 -0
  12. threadlight-0.1.0/src/threadlight/capsules/base.py +471 -0
  13. threadlight-0.1.0/src/threadlight/capsules/custom_types.py +505 -0
  14. threadlight-0.1.0/src/threadlight/capsules/factory.py +285 -0
  15. threadlight-0.1.0/src/threadlight/capsules/imported.py +266 -0
  16. threadlight-0.1.0/src/threadlight/capsules/myth_seed.py +239 -0
  17. threadlight-0.1.0/src/threadlight/capsules/relational.py +247 -0
  18. threadlight-0.1.0/src/threadlight/capsules/ritual.py +507 -0
  19. threadlight-0.1.0/src/threadlight/capsules/style.py +473 -0
  20. threadlight-0.1.0/src/threadlight/capsules/witness.py +223 -0
  21. threadlight-0.1.0/src/threadlight/cli.py +3390 -0
  22. threadlight-0.1.0/src/threadlight/config.py +1355 -0
  23. threadlight-0.1.0/src/threadlight/context/__init__.py +55 -0
  24. threadlight-0.1.0/src/threadlight/context/composer.py +723 -0
  25. threadlight-0.1.0/src/threadlight/context/soft_memory.py +689 -0
  26. threadlight-0.1.0/src/threadlight/core.py +2316 -0
  27. threadlight-0.1.0/src/threadlight/decay/__init__.py +47 -0
  28. threadlight-0.1.0/src/threadlight/decay/engine.py +640 -0
  29. threadlight-0.1.0/src/threadlight/decay/scheduler.py +251 -0
  30. threadlight-0.1.0/src/threadlight/embeddings/__init__.py +398 -0
  31. threadlight-0.1.0/src/threadlight/embeddings/manager.py +625 -0
  32. threadlight-0.1.0/src/threadlight/group_chat/__init__.py +27 -0
  33. threadlight-0.1.0/src/threadlight/group_chat/manager.py +440 -0
  34. threadlight-0.1.0/src/threadlight/group_chat/models.py +272 -0
  35. threadlight-0.1.0/src/threadlight/import_/__init__.py +94 -0
  36. threadlight-0.1.0/src/threadlight/import_/chatgpt_conversations.py +643 -0
  37. threadlight-0.1.0/src/threadlight/import_/chatgpt_export.py +300 -0
  38. threadlight-0.1.0/src/threadlight/import_/claude_conversations.py +420 -0
  39. threadlight-0.1.0/src/threadlight/import_/claude_export.py +271 -0
  40. threadlight-0.1.0/src/threadlight/import_/claude_projects.py +340 -0
  41. threadlight-0.1.0/src/threadlight/import_/text_importer.py +205 -0
  42. threadlight-0.1.0/src/threadlight/managers/__init__.py +22 -0
  43. threadlight-0.1.0/src/threadlight/managers/chat.py +484 -0
  44. threadlight-0.1.0/src/threadlight/managers/group_chat.py +587 -0
  45. threadlight-0.1.0/src/threadlight/managers/memory_types.py +701 -0
  46. threadlight-0.1.0/src/threadlight/managers/model_config.py +263 -0
  47. threadlight-0.1.0/src/threadlight/managers/profiles.py +329 -0
  48. threadlight-0.1.0/src/threadlight/managers/style.py +239 -0
  49. threadlight-0.1.0/src/threadlight/memory/__init__.py +33 -0
  50. threadlight-0.1.0/src/threadlight/memory/orchestrator.py +1495 -0
  51. threadlight-0.1.0/src/threadlight/memory/stopwords.py +155 -0
  52. threadlight-0.1.0/src/threadlight/migrations/__init__.py +0 -0
  53. threadlight-0.1.0/src/threadlight/migrations/migrate_model_to_profile_scope.py +236 -0
  54. threadlight-0.1.0/src/threadlight/profiles/__init__.py +24 -0
  55. threadlight-0.1.0/src/threadlight/profiles/alloyed.py +504 -0
  56. threadlight-0.1.0/src/threadlight/profiles/manager.py +352 -0
  57. threadlight-0.1.0/src/threadlight/profiles/profile.py +301 -0
  58. threadlight-0.1.0/src/threadlight/profiles/templates.py +92 -0
  59. threadlight-0.1.0/src/threadlight/providers/__init__.py +119 -0
  60. threadlight-0.1.0/src/threadlight/providers/base.py +225 -0
  61. threadlight-0.1.0/src/threadlight/providers/manager.py +398 -0
  62. threadlight-0.1.0/src/threadlight/providers/openai.py +814 -0
  63. threadlight-0.1.0/src/threadlight/py.typed +0 -0
  64. threadlight-0.1.0/src/threadlight/rituals/__init__.py +13 -0
  65. threadlight-0.1.0/src/threadlight/storage/__init__.py +70 -0
  66. threadlight-0.1.0/src/threadlight/storage/base.py +899 -0
  67. threadlight-0.1.0/src/threadlight/storage/memory.py +968 -0
  68. threadlight-0.1.0/src/threadlight/storage/sqlite.py +3441 -0
  69. threadlight-0.1.0/src/threadlight/style/__init__.py +19 -0
  70. threadlight-0.1.0/src/threadlight/tools/__init__.py +26 -0
  71. threadlight-0.1.0/src/threadlight/tools/definitions.py +420 -0
  72. threadlight-0.1.0/src/threadlight/tools/executor.py +978 -0
  73. threadlight-0.1.0/tests/__init__.py +1 -0
  74. threadlight-0.1.0/tests/test_alloyed.py +736 -0
  75. threadlight-0.1.0/tests/test_capsules.py +472 -0
  76. threadlight-0.1.0/tests/test_chatgpt_import.py +911 -0
  77. threadlight-0.1.0/tests/test_claude_import.py +680 -0
  78. threadlight-0.1.0/tests/test_context.py +534 -0
  79. threadlight-0.1.0/tests/test_core.py +665 -0
  80. threadlight-0.1.0/tests/test_decay.py +303 -0
  81. threadlight-0.1.0/tests/test_group_chat.py +706 -0
  82. threadlight-0.1.0/tests/test_import.py +356 -0
  83. threadlight-0.1.0/tests/test_integrated_recall.py +485 -0
  84. threadlight-0.1.0/tests/test_integration.py +476 -0
  85. threadlight-0.1.0/tests/test_memory_links.py +1477 -0
  86. threadlight-0.1.0/tests/test_memory_types.py +362 -0
  87. threadlight-0.1.0/tests/test_model_config.py +398 -0
  88. threadlight-0.1.0/tests/test_nous_api.py +395 -0
  89. threadlight-0.1.0/tests/test_orchestrator.py +735 -0
  90. threadlight-0.1.0/tests/test_profile_scope.py +392 -0
  91. threadlight-0.1.0/tests/test_profiles.py +1091 -0
  92. threadlight-0.1.0/tests/test_stopwords.py +178 -0
  93. threadlight-0.1.0/tests/test_storage.py +414 -0
  94. threadlight-0.1.0/tests/test_tools.py +1194 -0
  95. threadlight-0.1.0/tests/test_variant_group_cleanup.py +401 -0
@@ -0,0 +1,152 @@
1
+ # Threadlight .gitignore
2
+
3
+ # === Environment and secrets ===
4
+ .env
5
+ .env.*
6
+ *.env
7
+ secrets/
8
+ .secrets/
9
+ credentials*.json
10
+ *.pem
11
+ *.key
12
+
13
+ # === Python ===
14
+ __pycache__/
15
+ *.py[cod]
16
+ *$py.class
17
+ *.so
18
+ .Python
19
+ build/
20
+ develop-eggs/
21
+ dist/
22
+ downloads/
23
+ eggs/
24
+ .eggs/
25
+ lib/
26
+ lib64/
27
+ parts/
28
+ sdist/
29
+ var/
30
+ wheels/
31
+ share/python-wheels/
32
+ *.egg-info/
33
+ .installed.cfg
34
+ *.egg
35
+ MANIFEST
36
+
37
+ # === Virtual environments ===
38
+ .venv/
39
+ venv/
40
+ ENV/
41
+ env/
42
+ .env/
43
+ .virtualenv/
44
+ virtualenv/
45
+ pip-wheel-metadata/
46
+
47
+ # === Testing ===
48
+ .pytest_cache/
49
+ .coverage
50
+ .coverage.*
51
+ htmlcov/
52
+ .tox/
53
+ .nox/
54
+ coverage.xml
55
+ *.cover
56
+ *.py,cover
57
+ .hypothesis/
58
+ .ruff_cache/
59
+
60
+ # === IDEs and editors ===
61
+ .vscode/
62
+ .idea/
63
+ *.swp
64
+ *.swo
65
+ *~
66
+ .project
67
+ .pydevproject
68
+ .settings/
69
+ *.sublime-project
70
+ *.sublime-workspace
71
+
72
+ # === OS files ===
73
+ .DS_Store
74
+ .DS_Store?
75
+ ._*
76
+ .Spotlight-V100
77
+ .Trashes
78
+ ehthumbs.db
79
+ Thumbs.db
80
+
81
+ # === Logs ===
82
+ *.log
83
+ logs/
84
+ log/
85
+
86
+ # === Database files ===
87
+ *.db
88
+ *.db-shm
89
+ *.db-wal
90
+ *.db.backup-*
91
+ *.sqlite
92
+ *.sqlite3
93
+ threadlight.db
94
+ threadlight.db-shm
95
+ threadlight.db-wal
96
+ threadlight.db.backup-*
97
+ memories/
98
+
99
+ # === Build artifacts ===
100
+ *.manifest
101
+ *.spec
102
+
103
+ # === Jupyter ===
104
+ .ipynb_checkpoints/
105
+ *.ipynb_checkpoints
106
+
107
+ # === mypy ===
108
+ .mypy_cache/
109
+ .dmypy.json
110
+ dmypy.json
111
+
112
+ # === Local development files ===
113
+ local/
114
+ scratch/
115
+ tmp/
116
+ temp/
117
+ *.tmp
118
+
119
+ # === User data exports (should not be committed) ===
120
+ *.zip
121
+ conversations.json
122
+ projects.json
123
+ users.json
124
+ chatgpt-conversations.zip
125
+ claude-conversations.zip
126
+
127
+ # === Dream/working files (personal, not for release) ===
128
+ fable-memory.txt
129
+ *_memory_scaffold.txt
130
+ *_soft_memory_preferences.txt
131
+ *_technical_scaffolds.txt
132
+ *_training_loop_concept.txt
133
+ *_seed_dream_structure.txt
134
+ *_v0_1_primer.txt
135
+ dreams-continued/
136
+
137
+ # === Development scripts ===
138
+ check_*.py
139
+ .claude/
140
+ TODO.md
141
+
142
+ # === Internal/debug files ===
143
+ RITUAL_VISION_REVIEW.md
144
+ TIER_REVIEW_DEBUG_LOG.md
145
+ *-this-session-is-being-continued-from-a-previous-co.txt
146
+
147
+ # === Personal examples and seeds ===
148
+ examples/
149
+ seeds/
150
+
151
+ # === Internal implementation docs ===
152
+ docs/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Threadlight Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.