hetudb 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 (278) hide show
  1. hetudb-0.1.0/.agents/skills/brainstorming/SKILL.md +96 -0
  2. hetudb-0.1.0/.agents/skills/dispatching-parallel-agents/SKILL.md +180 -0
  3. hetudb-0.1.0/.agents/skills/executing-plans/SKILL.md +84 -0
  4. hetudb-0.1.0/.agents/skills/finishing-a-development-branch/SKILL.md +200 -0
  5. hetudb-0.1.0/.agents/skills/receiving-code-review/SKILL.md +213 -0
  6. hetudb-0.1.0/.agents/skills/requesting-code-review/SKILL.md +105 -0
  7. hetudb-0.1.0/.agents/skills/requesting-code-review/code-reviewer.md +146 -0
  8. hetudb-0.1.0/.agents/skills/subagent-driven-development/SKILL.md +242 -0
  9. hetudb-0.1.0/.agents/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
  10. hetudb-0.1.0/.agents/skills/subagent-driven-development/implementer-prompt.md +78 -0
  11. hetudb-0.1.0/.agents/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  12. hetudb-0.1.0/.agents/skills/systematic-debugging/CREATION-LOG.md +119 -0
  13. hetudb-0.1.0/.agents/skills/systematic-debugging/SKILL.md +296 -0
  14. hetudb-0.1.0/.agents/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  15. hetudb-0.1.0/.agents/skills/systematic-debugging/condition-based-waiting.md +115 -0
  16. hetudb-0.1.0/.agents/skills/systematic-debugging/defense-in-depth.md +122 -0
  17. hetudb-0.1.0/.agents/skills/systematic-debugging/find-polluter.sh +63 -0
  18. hetudb-0.1.0/.agents/skills/systematic-debugging/root-cause-tracing.md +169 -0
  19. hetudb-0.1.0/.agents/skills/systematic-debugging/test-academic.md +14 -0
  20. hetudb-0.1.0/.agents/skills/systematic-debugging/test-pressure-1.md +58 -0
  21. hetudb-0.1.0/.agents/skills/systematic-debugging/test-pressure-2.md +68 -0
  22. hetudb-0.1.0/.agents/skills/systematic-debugging/test-pressure-3.md +69 -0
  23. hetudb-0.1.0/.agents/skills/test-driven-development/SKILL.md +371 -0
  24. hetudb-0.1.0/.agents/skills/test-driven-development/testing-anti-patterns.md +299 -0
  25. hetudb-0.1.0/.agents/skills/using-git-worktrees/SKILL.md +218 -0
  26. hetudb-0.1.0/.agents/skills/using-superpowers/SKILL.md +95 -0
  27. hetudb-0.1.0/.agents/skills/verification-before-completion/SKILL.md +139 -0
  28. hetudb-0.1.0/.agents/skills/writing-plans/SKILL.md +116 -0
  29. hetudb-0.1.0/.agents/skills/writing-skills/SKILL.md +655 -0
  30. hetudb-0.1.0/.agents/skills/writing-skills/anthropic-best-practices.md +1150 -0
  31. hetudb-0.1.0/.agents/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  32. hetudb-0.1.0/.agents/skills/writing-skills/graphviz-conventions.dot +172 -0
  33. hetudb-0.1.0/.agents/skills/writing-skills/persuasion-principles.md +187 -0
  34. hetudb-0.1.0/.agents/skills/writing-skills/render-graphs.js +168 -0
  35. hetudb-0.1.0/.agents/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  36. hetudb-0.1.0/.coveragerc +23 -0
  37. hetudb-0.1.0/.gitattributes +4 -0
  38. hetudb-0.1.0/.github/cliff.toml +86 -0
  39. hetudb-0.1.0/.github/dependabot.yml +17 -0
  40. hetudb-0.1.0/.github/prompts/speckit.analyze.prompt.md +187 -0
  41. hetudb-0.1.0/.github/prompts/speckit.checklist.prompt.md +292 -0
  42. hetudb-0.1.0/.github/prompts/speckit.clarify.prompt.md +181 -0
  43. hetudb-0.1.0/.github/prompts/speckit.constitution.prompt.md +88 -0
  44. hetudb-0.1.0/.github/prompts/speckit.implement.prompt.md +135 -0
  45. hetudb-0.1.0/.github/prompts/speckit.plan.prompt.md +89 -0
  46. hetudb-0.1.0/.github/prompts/speckit.specify.prompt.md +256 -0
  47. hetudb-0.1.0/.github/prompts/speckit.tasks.prompt.md +137 -0
  48. hetudb-0.1.0/.github/prompts/speckit.taskstoissues.prompt.md +30 -0
  49. hetudb-0.1.0/.github/release-drafter.yml +45 -0
  50. hetudb-0.1.0/.github/workflows/cd.yml +200 -0
  51. hetudb-0.1.0/.github/workflows/ci.yml +53 -0
  52. hetudb-0.1.0/.github/workflows/release-drafter.yml +43 -0
  53. hetudb-0.1.0/.github/workflows/sync-npm-package.yaml +47 -0
  54. hetudb-0.1.0/.gitignore +174 -0
  55. hetudb-0.1.0/.gitmodules +4 -0
  56. hetudb-0.1.0/.python-version +1 -0
  57. hetudb-0.1.0/.serena/.gitignore +1 -0
  58. hetudb-0.1.0/.serena/memories/done_checklist.md +12 -0
  59. hetudb-0.1.0/.serena/memories/project_overview.md +9 -0
  60. hetudb-0.1.0/.serena/memories/style_and_conventions.md +9 -0
  61. hetudb-0.1.0/.serena/memories/suggested_commands.md +25 -0
  62. hetudb-0.1.0/.serena/project.yml +117 -0
  63. hetudb-0.1.0/.specify/memory/constitution.md +87 -0
  64. hetudb-0.1.0/.specify/scripts/powershell/check-prerequisites.ps1 +148 -0
  65. hetudb-0.1.0/.specify/scripts/powershell/common.ps1 +137 -0
  66. hetudb-0.1.0/.specify/scripts/powershell/create-new-feature.ps1 +283 -0
  67. hetudb-0.1.0/.specify/scripts/powershell/setup-plan.ps1 +61 -0
  68. hetudb-0.1.0/.specify/scripts/powershell/update-agent-context.ps1 +451 -0
  69. hetudb-0.1.0/.specify/templates/agent-file-template.md +28 -0
  70. hetudb-0.1.0/.specify/templates/checklist-template.md +40 -0
  71. hetudb-0.1.0/.specify/templates/constitution-template.md +50 -0
  72. hetudb-0.1.0/.specify/templates/plan-template.md +107 -0
  73. hetudb-0.1.0/.specify/templates/spec-template.md +123 -0
  74. hetudb-0.1.0/.specify/templates/tasks-template.md +261 -0
  75. hetudb-0.1.0/.vscode/launch.json +15 -0
  76. hetudb-0.1.0/.vscode/mcp.json +19 -0
  77. hetudb-0.1.0/.vscode/settings.json +54 -0
  78. hetudb-0.1.0/AGENTS.md +133 -0
  79. hetudb-0.1.0/CLAUDE.md +136 -0
  80. hetudb-0.1.0/CONFIG_TEMPLATE.yml +194 -0
  81. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/.editorconfig +196 -0
  82. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/HeTu.ClientSDK.Editor.asmdef +26 -0
  83. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/HeTu.ClientSDK.Editor.asmdef.meta +7 -0
  84. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/Inspector/HeTuInspectorWindow.cs +675 -0
  85. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/Inspector/HeTuInspectorWindow.cs.meta +2 -0
  86. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/Inspector.meta +8 -0
  87. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/PostStation/HeTuPostStationWindow.cs +568 -0
  88. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/PostStation/HeTuPostStationWindow.cs.meta +2 -0
  89. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/PostStation.meta +8 -0
  90. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/Setup/NuGetInstall.cs +130 -0
  91. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/Setup/NuGetInstall.cs.meta +11 -0
  92. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/Setup/UPMInstall.cs +135 -0
  93. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/Setup/UPMInstall.cs.meta +11 -0
  94. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/Setup/Wizard.cs +259 -0
  95. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/Setup/Wizard.cs.meta +11 -0
  96. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor/Setup.meta +8 -0
  97. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Editor.meta +8 -0
  98. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/Annotations.cs +56 -0
  99. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/Annotations.cs.meta +3 -0
  100. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/ClientBase.cs +609 -0
  101. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/ClientBase.cs.meta +3 -0
  102. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/CryptoLayer.cs +219 -0
  103. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/CryptoLayer.cs.meta +11 -0
  104. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/HeTu.ClientSDK.asmdef +38 -0
  105. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/HeTu.ClientSDK.asmdef.meta +7 -0
  106. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/InspectorTrace.cs +356 -0
  107. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/InspectorTrace.cs.meta +2 -0
  108. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/JsonbLayer.cs +175 -0
  109. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/JsonbLayer.cs.meta +11 -0
  110. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/Logger.cs +63 -0
  111. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/Logger.cs.meta +3 -0
  112. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/Pipeline.cs +242 -0
  113. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/Pipeline.cs.meta +11 -0
  114. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/Response.cs +87 -0
  115. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/Response.cs.meta +3 -0
  116. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/Subscription.cs +360 -0
  117. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/Subscription.cs.meta +3 -0
  118. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/UnityClient.cs +471 -0
  119. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/UnityClient.cs.meta +2 -0
  120. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/ZlibLayer.cs +167 -0
  121. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu/ZlibLayer.cs.meta +11 -0
  122. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/HeTu.meta +8 -0
  123. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/LICENSE.md +4 -0
  124. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/LICENSE.md.meta +7 -0
  125. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/README.md +98 -0
  126. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/README.md.meta +7 -0
  127. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Tests/HeTu/HeTuClientTest.cs +374 -0
  128. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Tests/HeTu/HeTuClientTest.cs.meta +2 -0
  129. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Tests/HeTu/hetudb.clientsdk.Tests.asmdef +41 -0
  130. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Tests/HeTu/hetudb.clientsdk.Tests.asmdef.meta +7 -0
  131. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Tests/HeTu.meta +3 -0
  132. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/Tests.meta +3 -0
  133. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/UnityWebSocket.meta +8 -0
  134. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/package.json +23 -0
  135. hetudb-0.1.0/ClientSDK/unity/cn.hetudb.clientsdk/package.json.meta +7 -0
  136. hetudb-0.1.0/Dockerfile +28 -0
  137. hetudb-0.1.0/LICENSE +201 -0
  138. hetudb-0.1.0/PKG-INFO +546 -0
  139. hetudb-0.1.0/README.md +512 -0
  140. hetudb-0.1.0/benchmark/backend_upsert result.md +232 -0
  141. hetudb-0.1.0/benchmark/hetu_rpc_result.md +275 -0
  142. hetudb-0.1.0/benchmark/hypothesis/redis_raw_upsert result.md +311 -0
  143. hetudb-0.1.0/benchmark/hypothesis/ya_cachetools.py +41 -0
  144. hetudb-0.1.0/benchmark/hypothesis/ya_compressors.py +184 -0
  145. hetudb-0.1.0/benchmark/hypothesis/ya_redis_raw_upsert.py +235 -0
  146. hetudb-0.1.0/benchmark/hypothesis/ya_supabase.py +80 -0
  147. hetudb-0.1.0/benchmark/hypothesis/ya_uuid_comparison.py +100 -0
  148. hetudb-0.1.0/benchmark/server/Dockerfile +19 -0
  149. hetudb-0.1.0/benchmark/server/app.py +68 -0
  150. hetudb-0.1.0/benchmark/ya_backend_upsert.py +123 -0
  151. hetudb-0.1.0/benchmark/ya_hetu_pubsub.py +78 -0
  152. hetudb-0.1.0/benchmark/ya_hetu_pubsub_updater.py +53 -0
  153. hetudb-0.1.0/benchmark/ya_hetu_rpc.py +126 -0
  154. hetudb-0.1.0/claude.ps1 +4 -0
  155. hetudb-0.1.0/codex.ps1 +11 -0
  156. hetudb-0.1.0/codex_docker +50 -0
  157. hetudb-0.1.0/docker-compose.yaml +24 -0
  158. hetudb-0.1.0/docs/plans/2026-02-21-sql-backend-prompt.md +37 -0
  159. hetudb-0.1.0/examples/client/Unity/.gitignore +99 -0
  160. hetudb-0.1.0/examples/server/first_game/Dockerfile +11 -0
  161. hetudb-0.1.0/examples/server/first_game/config-for-docker.yml +168 -0
  162. hetudb-0.1.0/examples/server/first_game/config.yml +168 -0
  163. hetudb-0.1.0/examples/server/first_game/pyproject.toml +7 -0
  164. hetudb-0.1.0/examples/server/first_game/src/app.py +41 -0
  165. hetudb-0.1.0/hetu/__init__.py +52 -0
  166. hetudb-0.1.0/hetu/__main__.py +17 -0
  167. hetudb-0.1.0/hetu/cli/__init__.py +48 -0
  168. hetudb-0.1.0/hetu/cli/base.py +33 -0
  169. hetudb-0.1.0/hetu/cli/build.py +54 -0
  170. hetudb-0.1.0/hetu/cli/migrate.py +166 -0
  171. hetudb-0.1.0/hetu/cli/start.py +283 -0
  172. hetudb-0.1.0/hetu/common/__init__.py +20 -0
  173. hetudb-0.1.0/hetu/common/csharp_keyword.py +83 -0
  174. hetudb-0.1.0/hetu/common/helper.py +91 -0
  175. hetudb-0.1.0/hetu/common/multimap.py +116 -0
  176. hetudb-0.1.0/hetu/common/permission.py +17 -0
  177. hetudb-0.1.0/hetu/common/singleton.py +17 -0
  178. hetudb-0.1.0/hetu/common/slowlog.py +92 -0
  179. hetudb-0.1.0/hetu/common/snowflake_id.py +195 -0
  180. hetudb-0.1.0/hetu/common/yamlloader.py +48 -0
  181. hetudb-0.1.0/hetu/data/__init__.py +25 -0
  182. hetudb-0.1.0/hetu/data/backend/__init__.py +148 -0
  183. hetudb-0.1.0/hetu/data/backend/base.py +653 -0
  184. hetudb-0.1.0/hetu/data/backend/idmap.py +367 -0
  185. hetudb-0.1.0/hetu/data/backend/redis/__init__.py +11 -0
  186. hetudb-0.1.0/hetu/data/backend/redis/batch.py +116 -0
  187. hetudb-0.1.0/hetu/data/backend/redis/client.py +880 -0
  188. hetudb-0.1.0/hetu/data/backend/redis/commit_v2.lua +83 -0
  189. hetudb-0.1.0/hetu/data/backend/redis/maint.py +276 -0
  190. hetudb-0.1.0/hetu/data/backend/redis/mq.py +131 -0
  191. hetudb-0.1.0/hetu/data/backend/redis/pubsub.py +249 -0
  192. hetudb-0.1.0/hetu/data/backend/redis/worker_keeper.py +150 -0
  193. hetudb-0.1.0/hetu/data/backend/repo.py +448 -0
  194. hetudb-0.1.0/hetu/data/backend/session.py +207 -0
  195. hetudb-0.1.0/hetu/data/backend/sql/__init__.py +11 -0
  196. hetudb-0.1.0/hetu/data/backend/sql/client.py +905 -0
  197. hetudb-0.1.0/hetu/data/backend/sql/maint.py +271 -0
  198. hetudb-0.1.0/hetu/data/backend/sql/mq.py +163 -0
  199. hetudb-0.1.0/hetu/data/backend/table.py +78 -0
  200. hetudb-0.1.0/hetu/data/component.py +504 -0
  201. hetudb-0.1.0/hetu/data/default_migration.py +152 -0
  202. hetudb-0.1.0/hetu/data/migration.py +202 -0
  203. hetudb-0.1.0/hetu/data/sub.py +462 -0
  204. hetudb-0.1.0/hetu/endpoint/__init__.py +7 -0
  205. hetudb-0.1.0/hetu/endpoint/connection.py +241 -0
  206. hetudb-0.1.0/hetu/endpoint/context.py +74 -0
  207. hetudb-0.1.0/hetu/endpoint/definer.py +181 -0
  208. hetudb-0.1.0/hetu/endpoint/executor.py +164 -0
  209. hetudb-0.1.0/hetu/endpoint/response.py +21 -0
  210. hetudb-0.1.0/hetu/manager.py +123 -0
  211. hetudb-0.1.0/hetu/safelogging/__init__.py +0 -0
  212. hetudb-0.1.0/hetu/safelogging/default.py +38 -0
  213. hetudb-0.1.0/hetu/safelogging/filter.py +35 -0
  214. hetudb-0.1.0/hetu/safelogging/handlers.py +69 -0
  215. hetudb-0.1.0/hetu/server/__init__.py +1 -0
  216. hetudb-0.1.0/hetu/server/main.py +231 -0
  217. hetudb-0.1.0/hetu/server/pipeline/__init__.py +30 -0
  218. hetudb-0.1.0/hetu/server/pipeline/brotli.py +109 -0
  219. hetudb-0.1.0/hetu/server/pipeline/crypto.py +236 -0
  220. hetudb-0.1.0/hetu/server/pipeline/jsonb.py +76 -0
  221. hetudb-0.1.0/hetu/server/pipeline/pipeline.py +190 -0
  222. hetudb-0.1.0/hetu/server/pipeline/zlib.py +124 -0
  223. hetudb-0.1.0/hetu/server/pipeline/zstd.py +213 -0
  224. hetudb-0.1.0/hetu/server/receiver.py +223 -0
  225. hetudb-0.1.0/hetu/server/web.py +10 -0
  226. hetudb-0.1.0/hetu/server/websocket.py +166 -0
  227. hetudb-0.1.0/hetu/sourcegen/__init__.py +0 -0
  228. hetudb-0.1.0/hetu/sourcegen/csharp.py +79 -0
  229. hetudb-0.1.0/hetu/system/__init__.py +18 -0
  230. hetudb-0.1.0/hetu/system/caller.py +204 -0
  231. hetudb-0.1.0/hetu/system/context.py +55 -0
  232. hetudb-0.1.0/hetu/system/definer.py +505 -0
  233. hetudb-0.1.0/hetu/system/enpoint.py +27 -0
  234. hetudb-0.1.0/hetu/system/future.py +312 -0
  235. hetudb-0.1.0/hetu/system/lock.py +55 -0
  236. hetudb-0.1.0/hetudb.egg-info/PKG-INFO +546 -0
  237. hetudb-0.1.0/hetudb.egg-info/SOURCES.txt +276 -0
  238. hetudb-0.1.0/hetudb.egg-info/dependency_links.txt +1 -0
  239. hetudb-0.1.0/hetudb.egg-info/entry_points.txt +2 -0
  240. hetudb-0.1.0/hetudb.egg-info/requires.txt +19 -0
  241. hetudb-0.1.0/hetudb.egg-info/top_level.txt +8 -0
  242. hetudb-0.1.0/pyproject.toml +120 -0
  243. hetudb-0.1.0/setup.cfg +4 -0
  244. hetudb-0.1.0/tests/app.py +213 -0
  245. hetudb-0.1.0/tests/conftest.py +43 -0
  246. hetudb-0.1.0/tests/fixtures/backends.py +301 -0
  247. hetudb-0.1.0/tests/fixtures/defines.py +34 -0
  248. hetudb-0.1.0/tests/fixtures/redis-cluster.yaml +48 -0
  249. hetudb-0.1.0/tests/fixtures/redis_service.py +364 -0
  250. hetudb-0.1.0/tests/fixtures/sql_service.py +144 -0
  251. hetudb-0.1.0/tests/fixtures/testapp.py +134 -0
  252. hetudb-0.1.0/tests/fixtures/testdata.py +140 -0
  253. hetudb-0.1.0/tests/logs/.donotremove +0 -0
  254. hetudb-0.1.0/tests/test_backend_basic.py +117 -0
  255. hetudb-0.1.0/tests/test_backend_client.py +504 -0
  256. hetudb-0.1.0/tests/test_backend_direct.py +34 -0
  257. hetudb-0.1.0/tests/test_backend_idmap.py +284 -0
  258. hetudb-0.1.0/tests/test_backend_redis_batch.py +59 -0
  259. hetudb-0.1.0/tests/test_backend_redis_cluster_pubsub.py +37 -0
  260. hetudb-0.1.0/tests/test_backend_session_basic.py +664 -0
  261. hetudb-0.1.0/tests/test_backend_session_cluster.py +37 -0
  262. hetudb-0.1.0/tests/test_backend_session_composer.py +142 -0
  263. hetudb-0.1.0/tests/test_backend_session_race.py +188 -0
  264. hetudb-0.1.0/tests/test_backend_sql.py +163 -0
  265. hetudb-0.1.0/tests/test_backend_sub.py +624 -0
  266. hetudb-0.1.0/tests/test_cli_start.py +23 -0
  267. hetudb-0.1.0/tests/test_common.py +189 -0
  268. hetudb-0.1.0/tests/test_component_define.py +183 -0
  269. hetudb-0.1.0/tests/test_endpoint_connection.py +139 -0
  270. hetudb-0.1.0/tests/test_migration.py +147 -0
  271. hetudb-0.1.0/tests/test_pipeline.py +227 -0
  272. hetudb-0.1.0/tests/test_sourcegen.py +44 -0
  273. hetudb-0.1.0/tests/test_system_define.py +292 -0
  274. hetudb-0.1.0/tests/test_system_executor.py +267 -0
  275. hetudb-0.1.0/tests/test_system_future.py +185 -0
  276. hetudb-0.1.0/tests/test_websocket.py +314 -0
  277. hetudb-0.1.0/tools/redis-cmd-profiler.py +33 -0
  278. hetudb-0.1.0/uv.lock +2107 -0
@@ -0,0 +1,96 @@
1
+ ---
2
+ name: brainstorming
3
+ description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."
4
+ ---
5
+
6
+ # Brainstorming Ideas Into Designs
7
+
8
+ ## Overview
9
+
10
+ Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
11
+
12
+ Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
13
+
14
+ <HARD-GATE>
15
+ Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.
16
+ </HARD-GATE>
17
+
18
+ ## Anti-Pattern: "This Is Too Simple To Need A Design"
19
+
20
+ Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.
21
+
22
+ ## Checklist
23
+
24
+ You MUST create a task for each of these items and complete them in order:
25
+
26
+ 1. **Explore project context** — check files, docs, recent commits
27
+ 2. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
28
+ 3. **Propose 2-3 approaches** — with trade-offs and your recommendation
29
+ 4. **Present design** — in sections scaled to their complexity, get user approval after each section
30
+ 5. **Write design doc** — save to `docs/plans/YYYY-MM-DD-<topic>-design.md` and commit
31
+ 6. **Transition to implementation** — invoke writing-plans skill to create implementation plan
32
+
33
+ ## Process Flow
34
+
35
+ ```dot
36
+ digraph brainstorming {
37
+ "Explore project context" [shape=box];
38
+ "Ask clarifying questions" [shape=box];
39
+ "Propose 2-3 approaches" [shape=box];
40
+ "Present design sections" [shape=box];
41
+ "User approves design?" [shape=diamond];
42
+ "Write design doc" [shape=box];
43
+ "Invoke writing-plans skill" [shape=doublecircle];
44
+
45
+ "Explore project context" -> "Ask clarifying questions";
46
+ "Ask clarifying questions" -> "Propose 2-3 approaches";
47
+ "Propose 2-3 approaches" -> "Present design sections";
48
+ "Present design sections" -> "User approves design?";
49
+ "User approves design?" -> "Present design sections" [label="no, revise"];
50
+ "User approves design?" -> "Write design doc" [label="yes"];
51
+ "Write design doc" -> "Invoke writing-plans skill";
52
+ }
53
+ ```
54
+
55
+ **The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
56
+
57
+ ## The Process
58
+
59
+ **Understanding the idea:**
60
+ - Check out the current project state first (files, docs, recent commits)
61
+ - Ask questions one at a time to refine the idea
62
+ - Prefer multiple choice questions when possible, but open-ended is fine too
63
+ - Only one question per message - if a topic needs more exploration, break it into multiple questions
64
+ - Focus on understanding: purpose, constraints, success criteria
65
+
66
+ **Exploring approaches:**
67
+ - Propose 2-3 different approaches with trade-offs
68
+ - Present options conversationally with your recommendation and reasoning
69
+ - Lead with your recommended option and explain why
70
+
71
+ **Presenting the design:**
72
+ - Once you believe you understand what you're building, present the design
73
+ - Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
74
+ - Ask after each section whether it looks right so far
75
+ - Cover: architecture, components, data flow, error handling, testing
76
+ - Be ready to go back and clarify if something doesn't make sense
77
+
78
+ ## After the Design
79
+
80
+ **Documentation:**
81
+ - Write the validated design to `docs/plans/YYYY-MM-DD-<topic>-design.md`
82
+ - Use elements-of-style:writing-clearly-and-concisely skill if available
83
+ - Commit the design document to git
84
+
85
+ **Implementation:**
86
+ - Invoke the writing-plans skill to create a detailed implementation plan
87
+ - Do NOT invoke any other skill. writing-plans is the next step.
88
+
89
+ ## Key Principles
90
+
91
+ - **One question at a time** - Don't overwhelm with multiple questions
92
+ - **Multiple choice preferred** - Easier to answer than open-ended when possible
93
+ - **YAGNI ruthlessly** - Remove unnecessary features from all designs
94
+ - **Explore alternatives** - Always propose 2-3 approaches before settling
95
+ - **Incremental validation** - Present design, get approval before moving on
96
+ - **Be flexible** - Go back and clarify when something doesn't make sense
@@ -0,0 +1,180 @@
1
+ ---
2
+ name: dispatching-parallel-agents
3
+ description: Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
4
+ ---
5
+
6
+ # Dispatching Parallel Agents
7
+
8
+ ## Overview
9
+
10
+ When you have multiple unrelated failures (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent and can happen in parallel.
11
+
12
+ **Core principle:** Dispatch one agent per independent problem domain. Let them work concurrently.
13
+
14
+ ## When to Use
15
+
16
+ ```dot
17
+ digraph when_to_use {
18
+ "Multiple failures?" [shape=diamond];
19
+ "Are they independent?" [shape=diamond];
20
+ "Single agent investigates all" [shape=box];
21
+ "One agent per problem domain" [shape=box];
22
+ "Can they work in parallel?" [shape=diamond];
23
+ "Sequential agents" [shape=box];
24
+ "Parallel dispatch" [shape=box];
25
+
26
+ "Multiple failures?" -> "Are they independent?" [label="yes"];
27
+ "Are they independent?" -> "Single agent investigates all" [label="no - related"];
28
+ "Are they independent?" -> "Can they work in parallel?" [label="yes"];
29
+ "Can they work in parallel?" -> "Parallel dispatch" [label="yes"];
30
+ "Can they work in parallel?" -> "Sequential agents" [label="no - shared state"];
31
+ }
32
+ ```
33
+
34
+ **Use when:**
35
+ - 3+ test files failing with different root causes
36
+ - Multiple subsystems broken independently
37
+ - Each problem can be understood without context from others
38
+ - No shared state between investigations
39
+
40
+ **Don't use when:**
41
+ - Failures are related (fix one might fix others)
42
+ - Need to understand full system state
43
+ - Agents would interfere with each other
44
+
45
+ ## The Pattern
46
+
47
+ ### 1. Identify Independent Domains
48
+
49
+ Group failures by what's broken:
50
+ - File A tests: Tool approval flow
51
+ - File B tests: Batch completion behavior
52
+ - File C tests: Abort functionality
53
+
54
+ Each domain is independent - fixing tool approval doesn't affect abort tests.
55
+
56
+ ### 2. Create Focused Agent Tasks
57
+
58
+ Each agent gets:
59
+ - **Specific scope:** One test file or subsystem
60
+ - **Clear goal:** Make these tests pass
61
+ - **Constraints:** Don't change other code
62
+ - **Expected output:** Summary of what you found and fixed
63
+
64
+ ### 3. Dispatch in Parallel
65
+
66
+ ```typescript
67
+ // In Claude Code / AI environment
68
+ Task("Fix agent-tool-abort.test.ts failures")
69
+ Task("Fix batch-completion-behavior.test.ts failures")
70
+ Task("Fix tool-approval-race-conditions.test.ts failures")
71
+ // All three run concurrently
72
+ ```
73
+
74
+ ### 4. Review and Integrate
75
+
76
+ When agents return:
77
+ - Read each summary
78
+ - Verify fixes don't conflict
79
+ - Run full test suite
80
+ - Integrate all changes
81
+
82
+ ## Agent Prompt Structure
83
+
84
+ Good agent prompts are:
85
+ 1. **Focused** - One clear problem domain
86
+ 2. **Self-contained** - All context needed to understand the problem
87
+ 3. **Specific about output** - What should the agent return?
88
+
89
+ ```markdown
90
+ Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts:
91
+
92
+ 1. "should abort tool with partial output capture" - expects 'interrupted at' in message
93
+ 2. "should handle mixed completed and aborted tools" - fast tool aborted instead of completed
94
+ 3. "should properly track pendingToolCount" - expects 3 results but gets 0
95
+
96
+ These are timing/race condition issues. Your task:
97
+
98
+ 1. Read the test file and understand what each test verifies
99
+ 2. Identify root cause - timing issues or actual bugs?
100
+ 3. Fix by:
101
+ - Replacing arbitrary timeouts with event-based waiting
102
+ - Fixing bugs in abort implementation if found
103
+ - Adjusting test expectations if testing changed behavior
104
+
105
+ Do NOT just increase timeouts - find the real issue.
106
+
107
+ Return: Summary of what you found and what you fixed.
108
+ ```
109
+
110
+ ## Common Mistakes
111
+
112
+ **❌ Too broad:** "Fix all the tests" - agent gets lost
113
+ **✅ Specific:** "Fix agent-tool-abort.test.ts" - focused scope
114
+
115
+ **❌ No context:** "Fix the race condition" - agent doesn't know where
116
+ **✅ Context:** Paste the error messages and test names
117
+
118
+ **❌ No constraints:** Agent might refactor everything
119
+ **✅ Constraints:** "Do NOT change production code" or "Fix tests only"
120
+
121
+ **❌ Vague output:** "Fix it" - you don't know what changed
122
+ **✅ Specific:** "Return summary of root cause and changes"
123
+
124
+ ## When NOT to Use
125
+
126
+ **Related failures:** Fixing one might fix others - investigate together first
127
+ **Need full context:** Understanding requires seeing entire system
128
+ **Exploratory debugging:** You don't know what's broken yet
129
+ **Shared state:** Agents would interfere (editing same files, using same resources)
130
+
131
+ ## Real Example from Session
132
+
133
+ **Scenario:** 6 test failures across 3 files after major refactoring
134
+
135
+ **Failures:**
136
+ - agent-tool-abort.test.ts: 3 failures (timing issues)
137
+ - batch-completion-behavior.test.ts: 2 failures (tools not executing)
138
+ - tool-approval-race-conditions.test.ts: 1 failure (execution count = 0)
139
+
140
+ **Decision:** Independent domains - abort logic separate from batch completion separate from race conditions
141
+
142
+ **Dispatch:**
143
+ ```
144
+ Agent 1 → Fix agent-tool-abort.test.ts
145
+ Agent 2 → Fix batch-completion-behavior.test.ts
146
+ Agent 3 → Fix tool-approval-race-conditions.test.ts
147
+ ```
148
+
149
+ **Results:**
150
+ - Agent 1: Replaced timeouts with event-based waiting
151
+ - Agent 2: Fixed event structure bug (threadId in wrong place)
152
+ - Agent 3: Added wait for async tool execution to complete
153
+
154
+ **Integration:** All fixes independent, no conflicts, full suite green
155
+
156
+ **Time saved:** 3 problems solved in parallel vs sequentially
157
+
158
+ ## Key Benefits
159
+
160
+ 1. **Parallelization** - Multiple investigations happen simultaneously
161
+ 2. **Focus** - Each agent has narrow scope, less context to track
162
+ 3. **Independence** - Agents don't interfere with each other
163
+ 4. **Speed** - 3 problems solved in time of 1
164
+
165
+ ## Verification
166
+
167
+ After agents return:
168
+ 1. **Review each summary** - Understand what changed
169
+ 2. **Check for conflicts** - Did agents edit same code?
170
+ 3. **Run full suite** - Verify all fixes work together
171
+ 4. **Spot check** - Agents can make systematic errors
172
+
173
+ ## Real-World Impact
174
+
175
+ From debugging session (2025-10-03):
176
+ - 6 failures across 3 files
177
+ - 3 agents dispatched in parallel
178
+ - All investigations completed concurrently
179
+ - All fixes integrated successfully
180
+ - Zero conflicts between agent changes
@@ -0,0 +1,84 @@
1
+ ---
2
+ name: executing-plans
3
+ description: Use when you have a written implementation plan to execute in a separate session with review checkpoints
4
+ ---
5
+
6
+ # Executing Plans
7
+
8
+ ## Overview
9
+
10
+ Load plan, review critically, execute tasks in batches, report for review between batches.
11
+
12
+ **Core principle:** Batch execution with checkpoints for architect review.
13
+
14
+ **Announce at start:** "I'm using the executing-plans skill to implement this plan."
15
+
16
+ ## The Process
17
+
18
+ ### Step 1: Load and Review Plan
19
+ 1. Read plan file
20
+ 2. Review critically - identify any questions or concerns about the plan
21
+ 3. If concerns: Raise them with your human partner before starting
22
+ 4. If no concerns: Create TodoWrite and proceed
23
+
24
+ ### Step 2: Execute Batch
25
+ **Default: First 3 tasks**
26
+
27
+ For each task:
28
+ 1. Mark as in_progress
29
+ 2. Follow each step exactly (plan has bite-sized steps)
30
+ 3. Run verifications as specified
31
+ 4. Mark as completed
32
+
33
+ ### Step 3: Report
34
+ When batch complete:
35
+ - Show what was implemented
36
+ - Show verification output
37
+ - Say: "Ready for feedback."
38
+
39
+ ### Step 4: Continue
40
+ Based on feedback:
41
+ - Apply changes if needed
42
+ - Execute next batch
43
+ - Repeat until complete
44
+
45
+ ### Step 5: Complete Development
46
+
47
+ After all tasks complete and verified:
48
+ - Announce: "I'm using the finishing-a-development-branch skill to complete this work."
49
+ - **REQUIRED SUB-SKILL:** Use superpowers:finishing-a-development-branch
50
+ - Follow that skill to verify tests, present options, execute choice
51
+
52
+ ## When to Stop and Ask for Help
53
+
54
+ **STOP executing immediately when:**
55
+ - Hit a blocker mid-batch (missing dependency, test fails, instruction unclear)
56
+ - Plan has critical gaps preventing starting
57
+ - You don't understand an instruction
58
+ - Verification fails repeatedly
59
+
60
+ **Ask for clarification rather than guessing.**
61
+
62
+ ## When to Revisit Earlier Steps
63
+
64
+ **Return to Review (Step 1) when:**
65
+ - Partner updates the plan based on your feedback
66
+ - Fundamental approach needs rethinking
67
+
68
+ **Don't force through blockers** - stop and ask.
69
+
70
+ ## Remember
71
+ - Review plan critically first
72
+ - Follow plan steps exactly
73
+ - Don't skip verifications
74
+ - Reference skills when plan says to
75
+ - Between batches: just report and wait
76
+ - Stop when blocked, don't guess
77
+ - Never start implementation on main/master branch without explicit user consent
78
+
79
+ ## Integration
80
+
81
+ **Required workflow skills:**
82
+ - **superpowers:using-git-worktrees** - REQUIRED: Set up isolated workspace before starting
83
+ - **superpowers:writing-plans** - Creates the plan this skill executes
84
+ - **superpowers:finishing-a-development-branch** - Complete development after all tasks
@@ -0,0 +1,200 @@
1
+ ---
2
+ name: finishing-a-development-branch
3
+ description: Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
4
+ ---
5
+
6
+ # Finishing a Development Branch
7
+
8
+ ## Overview
9
+
10
+ Guide completion of development work by presenting clear options and handling chosen workflow.
11
+
12
+ **Core principle:** Verify tests → Present options → Execute choice → Clean up.
13
+
14
+ **Announce at start:** "I'm using the finishing-a-development-branch skill to complete this work."
15
+
16
+ ## The Process
17
+
18
+ ### Step 1: Verify Tests
19
+
20
+ **Before presenting options, verify tests pass:**
21
+
22
+ ```bash
23
+ # Run project's test suite
24
+ npm test / cargo test / pytest / go test ./...
25
+ ```
26
+
27
+ **If tests fail:**
28
+ ```
29
+ Tests failing (<N> failures). Must fix before completing:
30
+
31
+ [Show failures]
32
+
33
+ Cannot proceed with merge/PR until tests pass.
34
+ ```
35
+
36
+ Stop. Don't proceed to Step 2.
37
+
38
+ **If tests pass:** Continue to Step 2.
39
+
40
+ ### Step 2: Determine Base Branch
41
+
42
+ ```bash
43
+ # Try common base branches
44
+ git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null
45
+ ```
46
+
47
+ Or ask: "This branch split from main - is that correct?"
48
+
49
+ ### Step 3: Present Options
50
+
51
+ Present exactly these 4 options:
52
+
53
+ ```
54
+ Implementation complete. What would you like to do?
55
+
56
+ 1. Merge back to <base-branch> locally
57
+ 2. Push and create a Pull Request
58
+ 3. Keep the branch as-is (I'll handle it later)
59
+ 4. Discard this work
60
+
61
+ Which option?
62
+ ```
63
+
64
+ **Don't add explanation** - keep options concise.
65
+
66
+ ### Step 4: Execute Choice
67
+
68
+ #### Option 1: Merge Locally
69
+
70
+ ```bash
71
+ # Switch to base branch
72
+ git checkout <base-branch>
73
+
74
+ # Pull latest
75
+ git pull
76
+
77
+ # Merge feature branch
78
+ git merge <feature-branch>
79
+
80
+ # Verify tests on merged result
81
+ <test command>
82
+
83
+ # If tests pass
84
+ git branch -d <feature-branch>
85
+ ```
86
+
87
+ Then: Cleanup worktree (Step 5)
88
+
89
+ #### Option 2: Push and Create PR
90
+
91
+ ```bash
92
+ # Push branch
93
+ git push -u origin <feature-branch>
94
+
95
+ # Create PR
96
+ gh pr create --title "<title>" --body "$(cat <<'EOF'
97
+ ## Summary
98
+ <2-3 bullets of what changed>
99
+
100
+ ## Test Plan
101
+ - [ ] <verification steps>
102
+ EOF
103
+ )"
104
+ ```
105
+
106
+ Then: Cleanup worktree (Step 5)
107
+
108
+ #### Option 3: Keep As-Is
109
+
110
+ Report: "Keeping branch <name>. Worktree preserved at <path>."
111
+
112
+ **Don't cleanup worktree.**
113
+
114
+ #### Option 4: Discard
115
+
116
+ **Confirm first:**
117
+ ```
118
+ This will permanently delete:
119
+ - Branch <name>
120
+ - All commits: <commit-list>
121
+ - Worktree at <path>
122
+
123
+ Type 'discard' to confirm.
124
+ ```
125
+
126
+ Wait for exact confirmation.
127
+
128
+ If confirmed:
129
+ ```bash
130
+ git checkout <base-branch>
131
+ git branch -D <feature-branch>
132
+ ```
133
+
134
+ Then: Cleanup worktree (Step 5)
135
+
136
+ ### Step 5: Cleanup Worktree
137
+
138
+ **For Options 1, 2, 4:**
139
+
140
+ Check if in worktree:
141
+ ```bash
142
+ git worktree list | grep $(git branch --show-current)
143
+ ```
144
+
145
+ If yes:
146
+ ```bash
147
+ git worktree remove <worktree-path>
148
+ ```
149
+
150
+ **For Option 3:** Keep worktree.
151
+
152
+ ## Quick Reference
153
+
154
+ | Option | Merge | Push | Keep Worktree | Cleanup Branch |
155
+ |--------|-------|------|---------------|----------------|
156
+ | 1. Merge locally | ✓ | - | - | ✓ |
157
+ | 2. Create PR | - | ✓ | ✓ | - |
158
+ | 3. Keep as-is | - | - | ✓ | - |
159
+ | 4. Discard | - | - | - | ✓ (force) |
160
+
161
+ ## Common Mistakes
162
+
163
+ **Skipping test verification**
164
+ - **Problem:** Merge broken code, create failing PR
165
+ - **Fix:** Always verify tests before offering options
166
+
167
+ **Open-ended questions**
168
+ - **Problem:** "What should I do next?" → ambiguous
169
+ - **Fix:** Present exactly 4 structured options
170
+
171
+ **Automatic worktree cleanup**
172
+ - **Problem:** Remove worktree when might need it (Option 2, 3)
173
+ - **Fix:** Only cleanup for Options 1 and 4
174
+
175
+ **No confirmation for discard**
176
+ - **Problem:** Accidentally delete work
177
+ - **Fix:** Require typed "discard" confirmation
178
+
179
+ ## Red Flags
180
+
181
+ **Never:**
182
+ - Proceed with failing tests
183
+ - Merge without verifying tests on result
184
+ - Delete work without confirmation
185
+ - Force-push without explicit request
186
+
187
+ **Always:**
188
+ - Verify tests before offering options
189
+ - Present exactly 4 options
190
+ - Get typed confirmation for Option 4
191
+ - Clean up worktree for Options 1 & 4 only
192
+
193
+ ## Integration
194
+
195
+ **Called by:**
196
+ - **subagent-driven-development** (Step 7) - After all tasks complete
197
+ - **executing-plans** (Step 5) - After all batches complete
198
+
199
+ **Pairs with:**
200
+ - **using-git-worktrees** - Cleans up worktree created by that skill