magirunes 0.3.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 (546) hide show
  1. magirunes-0.3.0/.github/workflows/ci.yml +26 -0
  2. magirunes-0.3.0/.github/workflows/cross-os.yml +26 -0
  3. magirunes-0.3.0/.github/workflows/publish.yml +32 -0
  4. magirunes-0.3.0/.gitignore +27 -0
  5. magirunes-0.3.0/AGENTS.md +46 -0
  6. magirunes-0.3.0/CONTEXT.md +159 -0
  7. magirunes-0.3.0/LICENSE +21 -0
  8. magirunes-0.3.0/PARITY.md +50 -0
  9. magirunes-0.3.0/PKG-INFO +93 -0
  10. magirunes-0.3.0/README.md +78 -0
  11. magirunes-0.3.0/docs/adr/0001-independent-plugin-manifest-packaging.md +22 -0
  12. magirunes-0.3.0/docs/adr/0002-context-compaction-as-guard-plugin.md +22 -0
  13. magirunes-0.3.0/docs/adr/0003-anonymous-keyless-model-provider.md +21 -0
  14. magirunes-0.3.0/docs/adr/0004-standard-tool-schema-and-execution-contract.md +22 -0
  15. magirunes-0.3.0/docs/adr/0005-subagent-delegation-tools-and-orchestration.md +24 -0
  16. magirunes-0.3.0/docs/adr/0006-pluggable-execution-backends-and-tool-context.md +21 -0
  17. magirunes-0.3.0/docs/adr/0007-tool-output-spilling-and-file-pointer-recovery.md +28 -0
  18. magirunes-0.3.0/docs/adr/0008-privilege-ladder-and-process-confinement-sandbox.md +31 -0
  19. magirunes-0.3.0/docs/adr/0009-model-context-protocol-client-bridge.md +27 -0
  20. magirunes-0.3.0/docs/adr/0010-progressive-skills-discovery-and-activation-bridge.md +28 -0
  21. magirunes-0.3.0/docs/adr/0011-hierarchical-steering-and-prompt-scaffolding-bridge.md +30 -0
  22. magirunes-0.3.0/docs/adr/0012-workspace-trust-gate-and-integrity-verification.md +31 -0
  23. magirunes-0.3.0/docs/adr/0013-service-contract-dependencies-and-capability-declarations.md +25 -0
  24. magirunes-0.3.0/docs/adr/0014-in-process-codeact-execution-and-tool-auto-dispatching.md +31 -0
  25. magirunes-0.3.0/docs/adr/0015-fail-closed-layered-approval-guard.md +33 -0
  26. magirunes-0.3.0/docs/adr/0016-language-server-protocol-bridge.md +26 -0
  27. magirunes-0.3.0/docs/adr/0017-opentelemetry-distributed-tracing-bridge.md +26 -0
  28. magirunes-0.3.0/docs/adr/0018-in-process-subagent-delegation-and-workspace-isolation.md +36 -0
  29. magirunes-0.3.0/docs/adr/0019-full-text-session-indexing-and-autonomous-title-generation.md +30 -0
  30. magirunes-0.3.0/docs/adr/0020-shadow-git-workspace-snapshots-and-snapshot-restoration.md +32 -0
  31. magirunes-0.3.0/docs/agents/domain.md +35 -0
  32. magirunes-0.3.0/docs/agents/issue-tracker.md +56 -0
  33. magirunes-0.3.0/docs/agents/triage-labels.md +15 -0
  34. magirunes-0.3.0/docs/release-notes/v0.3.0.md +37 -0
  35. magirunes-0.3.0/pyproject.toml +72 -0
  36. magirunes-0.3.0/src/magirunes/__init__.py +3 -0
  37. magirunes-0.3.0/src/magirunes/attachment/__init__.py +31 -0
  38. magirunes-0.3.0/src/magirunes/attachment/store.py +217 -0
  39. magirunes-0.3.0/src/magirunes/attachment/types.py +186 -0
  40. magirunes-0.3.0/src/magirunes/attachment_local/__init__.py +7 -0
  41. magirunes-0.3.0/src/magirunes/attachment_local/component.py +15 -0
  42. magirunes-0.3.0/src/magirunes/attachment_local/compression.py +42 -0
  43. magirunes-0.3.0/src/magirunes/attachment_local/encoding.py +97 -0
  44. magirunes-0.3.0/src/magirunes/attachment_local/file_store.py +213 -0
  45. magirunes-0.3.0/src/magirunes/attachment_local/image.py +147 -0
  46. magirunes-0.3.0/src/magirunes/attachment_local/manifest.json +8 -0
  47. magirunes-0.3.0/src/magirunes/attachment_local/normalization.py +156 -0
  48. magirunes-0.3.0/src/magirunes/attachment_local/request_image.py +314 -0
  49. magirunes-0.3.0/src/magirunes/attachment_local/service.py +324 -0
  50. magirunes-0.3.0/src/magirunes/attachment_local/store.py +302 -0
  51. magirunes-0.3.0/src/magirunes/authorization/__init__.py +17 -0
  52. magirunes-0.3.0/src/magirunes/authorization/component.py +19 -0
  53. magirunes-0.3.0/src/magirunes/authorization/manifest.json +8 -0
  54. magirunes-0.3.0/src/magirunes/authorization/service.py +342 -0
  55. magirunes-0.3.0/src/magirunes/bridges/__init__.py +3 -0
  56. magirunes-0.3.0/src/magirunes/bridges/lsp/__init__.py +11 -0
  57. magirunes-0.3.0/src/magirunes/bridges/lsp/client.py +262 -0
  58. magirunes-0.3.0/src/magirunes/bridges/lsp/component.py +148 -0
  59. magirunes-0.3.0/src/magirunes/bridges/lsp/manifest.json +17 -0
  60. magirunes-0.3.0/src/magirunes/bridges/lsp/service.py +137 -0
  61. magirunes-0.3.0/src/magirunes/bridges/mcp/__init__.py +31 -0
  62. magirunes-0.3.0/src/magirunes/bridges/mcp/client.py +147 -0
  63. magirunes-0.3.0/src/magirunes/bridges/mcp/component.py +24 -0
  64. magirunes-0.3.0/src/magirunes/bridges/mcp/manifest.json +10 -0
  65. magirunes-0.3.0/src/magirunes/bridges/mcp/protocol.py +102 -0
  66. magirunes-0.3.0/src/magirunes/bridges/mcp/service.py +138 -0
  67. magirunes-0.3.0/src/magirunes/bridges/mcp/transport.py +188 -0
  68. magirunes-0.3.0/src/magirunes/bridges/okf_filesystem/__init__.py +1 -0
  69. magirunes-0.3.0/src/magirunes/bridges/okf_filesystem/component.py +35 -0
  70. magirunes-0.3.0/src/magirunes/bridges/okf_filesystem/manifest.json +11 -0
  71. magirunes-0.3.0/src/magirunes/bridges/okf_filesystem/service.py +119 -0
  72. magirunes-0.3.0/src/magirunes/bridges/okf_loader/__init__.py +1 -0
  73. magirunes-0.3.0/src/magirunes/bridges/okf_loader/component.py +32 -0
  74. magirunes-0.3.0/src/magirunes/bridges/okf_loader/manifest.json +12 -0
  75. magirunes-0.3.0/src/magirunes/bridges/okf_loader/service.py +227 -0
  76. magirunes-0.3.0/src/magirunes/bridges/okf_loader/trust.py +238 -0
  77. magirunes-0.3.0/src/magirunes/bridges/okf_registry/__init__.py +1 -0
  78. magirunes-0.3.0/src/magirunes/bridges/okf_registry/component.py +25 -0
  79. magirunes-0.3.0/src/magirunes/bridges/okf_registry/manifest.json +11 -0
  80. magirunes-0.3.0/src/magirunes/bridges/okf_registry/service.py +62 -0
  81. magirunes-0.3.0/src/magirunes/bridges/otel/__init__.py +10 -0
  82. magirunes-0.3.0/src/magirunes/bridges/otel/component.py +76 -0
  83. magirunes-0.3.0/src/magirunes/bridges/otel/manifest.json +15 -0
  84. magirunes-0.3.0/src/magirunes/bridges/otel/tracer.py +126 -0
  85. magirunes-0.3.0/src/magirunes/bridges/skills_filesystem/__init__.py +1 -0
  86. magirunes-0.3.0/src/magirunes/bridges/skills_filesystem/component.py +40 -0
  87. magirunes-0.3.0/src/magirunes/bridges/skills_filesystem/manifest.json +10 -0
  88. magirunes-0.3.0/src/magirunes/bridges/skills_filesystem/service.py +157 -0
  89. magirunes-0.3.0/src/magirunes/bridges/skills_loader/__init__.py +1 -0
  90. magirunes-0.3.0/src/magirunes/bridges/skills_loader/component.py +34 -0
  91. magirunes-0.3.0/src/magirunes/bridges/skills_loader/manifest.json +11 -0
  92. magirunes-0.3.0/src/magirunes/bridges/skills_loader/service.py +143 -0
  93. magirunes-0.3.0/src/magirunes/bridges/skills_registry/__init__.py +1 -0
  94. magirunes-0.3.0/src/magirunes/bridges/skills_registry/component.py +25 -0
  95. magirunes-0.3.0/src/magirunes/bridges/skills_registry/manifest.json +10 -0
  96. magirunes-0.3.0/src/magirunes/bridges/skills_registry/service.py +86 -0
  97. magirunes-0.3.0/src/magirunes/bridges/steering/__init__.py +17 -0
  98. magirunes-0.3.0/src/magirunes/bridges/steering/collector.py +73 -0
  99. magirunes-0.3.0/src/magirunes/bridges/steering/component.py +31 -0
  100. magirunes-0.3.0/src/magirunes/bridges/steering/manifest.json +10 -0
  101. magirunes-0.3.0/src/magirunes/bridges/steering/service.py +66 -0
  102. magirunes-0.3.0/src/magirunes/bridges/workspace_snapshot/__init__.py +13 -0
  103. magirunes-0.3.0/src/magirunes/bridges/workspace_snapshot/component.py +99 -0
  104. magirunes-0.3.0/src/magirunes/bridges/workspace_snapshot/git.py +230 -0
  105. magirunes-0.3.0/src/magirunes/bridges/workspace_snapshot/manifest.json +14 -0
  106. magirunes-0.3.0/src/magirunes/bridges/workspace_snapshot/scanner.py +191 -0
  107. magirunes-0.3.0/src/magirunes/bridges/workspace_snapshot/service.py +53 -0
  108. magirunes-0.3.0/src/magirunes/compaction/jev_compaction_relevance/__init__.py +1 -0
  109. magirunes-0.3.0/src/magirunes/compaction/jev_compaction_relevance/component.py +45 -0
  110. magirunes-0.3.0/src/magirunes/compaction/jev_compaction_relevance/manifest.json +14 -0
  111. magirunes-0.3.0/src/magirunes/compaction/jev_compaction_relevance/relevance.py +164 -0
  112. magirunes-0.3.0/src/magirunes/config_editor/__init__.py +7 -0
  113. magirunes-0.3.0/src/magirunes/config_editor/component.py +18 -0
  114. magirunes-0.3.0/src/magirunes/config_editor/manifest.json +8 -0
  115. magirunes-0.3.0/src/magirunes/config_editor/service.py +254 -0
  116. magirunes-0.3.0/src/magirunes/credentials_local/__init__.py +25 -0
  117. magirunes-0.3.0/src/magirunes/credentials_local/component.py +101 -0
  118. magirunes-0.3.0/src/magirunes/credentials_local/document.py +369 -0
  119. magirunes-0.3.0/src/magirunes/credentials_local/lock.py +82 -0
  120. magirunes-0.3.0/src/magirunes/credentials_local/manifest.json +8 -0
  121. magirunes-0.3.0/src/magirunes/credentials_local/provider.py +290 -0
  122. magirunes-0.3.0/src/magirunes/credentials_local/watch.py +91 -0
  123. magirunes-0.3.0/src/magirunes/guards/approval/__init__.py +25 -0
  124. magirunes-0.3.0/src/magirunes/guards/approval/component.py +54 -0
  125. magirunes-0.3.0/src/magirunes/guards/approval/guard.py +143 -0
  126. magirunes-0.3.0/src/magirunes/guards/approval/manifest.json +18 -0
  127. magirunes-0.3.0/src/magirunes/guards/approval/policy.py +129 -0
  128. magirunes-0.3.0/src/magirunes/guards/approval/types.py +57 -0
  129. magirunes-0.3.0/src/magirunes/guards/compaction/__init__.py +31 -0
  130. magirunes-0.3.0/src/magirunes/guards/compaction/compaction.py +282 -0
  131. magirunes-0.3.0/src/magirunes/guards/compaction/component.py +136 -0
  132. magirunes-0.3.0/src/magirunes/guards/compaction/config.py +127 -0
  133. magirunes-0.3.0/src/magirunes/guards/compaction/manifest.json +10 -0
  134. magirunes-0.3.0/src/magirunes/guards/compaction/pruner.py +79 -0
  135. magirunes-0.3.0/src/magirunes/guards/jev_goal_verifier/__init__.py +1 -0
  136. magirunes-0.3.0/src/magirunes/guards/jev_goal_verifier/component.py +39 -0
  137. magirunes-0.3.0/src/magirunes/guards/jev_goal_verifier/manifest.json +16 -0
  138. magirunes-0.3.0/src/magirunes/guards/jev_goal_verifier/verifier.py +141 -0
  139. magirunes-0.3.0/src/magirunes/guards/jev_injection_screen/__init__.py +1 -0
  140. magirunes-0.3.0/src/magirunes/guards/jev_injection_screen/component.py +37 -0
  141. magirunes-0.3.0/src/magirunes/guards/jev_injection_screen/manifest.json +16 -0
  142. magirunes-0.3.0/src/magirunes/guards/jev_injection_screen/screen.py +101 -0
  143. magirunes-0.3.0/src/magirunes/guards/jev_loop_detector/__init__.py +1 -0
  144. magirunes-0.3.0/src/magirunes/guards/jev_loop_detector/component.py +43 -0
  145. magirunes-0.3.0/src/magirunes/guards/jev_loop_detector/detector.py +125 -0
  146. magirunes-0.3.0/src/magirunes/guards/jev_loop_detector/manifest.json +16 -0
  147. magirunes-0.3.0/src/magirunes/guards/jev_safety_gate/__init__.py +21 -0
  148. magirunes-0.3.0/src/magirunes/guards/jev_safety_gate/component.py +37 -0
  149. magirunes-0.3.0/src/magirunes/guards/jev_safety_gate/gate.py +104 -0
  150. magirunes-0.3.0/src/magirunes/guards/jev_safety_gate/manifest.json +16 -0
  151. magirunes-0.3.0/src/magirunes/guards/redaction/__init__.py +17 -0
  152. magirunes-0.3.0/src/magirunes/guards/redaction/component.py +60 -0
  153. magirunes-0.3.0/src/magirunes/guards/redaction/manifest.json +10 -0
  154. magirunes-0.3.0/src/magirunes/guards/redaction/redaction.py +34 -0
  155. magirunes-0.3.0/src/magirunes/guards/repeat_tool_reminder/__init__.py +15 -0
  156. magirunes-0.3.0/src/magirunes/guards/repeat_tool_reminder/component.py +81 -0
  157. magirunes-0.3.0/src/magirunes/guards/repeat_tool_reminder/guard.py +131 -0
  158. magirunes-0.3.0/src/magirunes/guards/repeat_tool_reminder/manifest.json +17 -0
  159. magirunes-0.3.0/src/magirunes/guards/timeout_policy/__init__.py +12 -0
  160. magirunes-0.3.0/src/magirunes/guards/timeout_policy/component.py +35 -0
  161. magirunes-0.3.0/src/magirunes/guards/timeout_policy/manifest.json +16 -0
  162. magirunes-0.3.0/src/magirunes/guards/timeout_policy/policy.py +95 -0
  163. magirunes-0.3.0/src/magirunes/guards/truncation/__init__.py +17 -0
  164. magirunes-0.3.0/src/magirunes/guards/truncation/component.py +105 -0
  165. magirunes-0.3.0/src/magirunes/guards/truncation/manifest.json +10 -0
  166. magirunes-0.3.0/src/magirunes/guards/truncation/truncation.py +160 -0
  167. magirunes-0.3.0/src/magirunes/guards/trust/__init__.py +14 -0
  168. magirunes-0.3.0/src/magirunes/guards/trust/component.py +83 -0
  169. magirunes-0.3.0/src/magirunes/guards/trust/gate.py +88 -0
  170. magirunes-0.3.0/src/magirunes/guards/trust/hasher.py +68 -0
  171. magirunes-0.3.0/src/magirunes/guards/trust/manifest.json +10 -0
  172. magirunes-0.3.0/src/magirunes/guards/trust/store.py +111 -0
  173. magirunes-0.3.0/src/magirunes/hmr/__init__.py +7 -0
  174. magirunes-0.3.0/src/magirunes/hmr/component.py +19 -0
  175. magirunes-0.3.0/src/magirunes/hmr/config.py +53 -0
  176. magirunes-0.3.0/src/magirunes/hmr/manifest.json +8 -0
  177. magirunes-0.3.0/src/magirunes/index.json +577 -0
  178. magirunes-0.3.0/src/magirunes/index.py +208 -0
  179. magirunes-0.3.0/src/magirunes/jev_service/__init__.py +19 -0
  180. magirunes-0.3.0/src/magirunes/jev_service/component.py +35 -0
  181. magirunes-0.3.0/src/magirunes/jev_service/manifest.json +10 -0
  182. magirunes-0.3.0/src/magirunes/jev_service/service.py +158 -0
  183. magirunes-0.3.0/src/magirunes/liveshare/__init__.py +29 -0
  184. magirunes-0.3.0/src/magirunes/liveshare/bundle.yaml +14 -0
  185. magirunes-0.3.0/src/magirunes/liveshare/fork_policy.py +245 -0
  186. magirunes-0.3.0/src/magirunes/liveshare/fork_registry.py +246 -0
  187. magirunes-0.3.0/src/magirunes/liveshare/manifest.json +8 -0
  188. magirunes-0.3.0/src/magirunes/liveshare/owner_types.py +127 -0
  189. magirunes-0.3.0/src/magirunes/liveshare/relay_authority.py +509 -0
  190. magirunes-0.3.0/src/magirunes/liveshare/relay_fetch.py +144 -0
  191. magirunes-0.3.0/src/magirunes/liveshare/share_types.py +111 -0
  192. magirunes-0.3.0/src/magirunes/liveshare/shared_tools.py +252 -0
  193. magirunes-0.3.0/src/magirunes/liveshare/viewer_capabilities.py +54 -0
  194. magirunes-0.3.0/src/magirunes/liveshare/viewer_capability_types.py +21 -0
  195. magirunes-0.3.0/src/magirunes/liveshare/viewer_read.py +51 -0
  196. magirunes-0.3.0/src/magirunes/liveshare/viewer_read_model.py +84 -0
  197. magirunes-0.3.0/src/magirunes/liveshare/wire_json.py +39 -0
  198. magirunes-0.3.0/src/magirunes/liveshare_owner/__init__.py +38 -0
  199. magirunes-0.3.0/src/magirunes/liveshare_owner/component.py +38 -0
  200. magirunes-0.3.0/src/magirunes/liveshare_owner/manifest.json +8 -0
  201. magirunes-0.3.0/src/magirunes/liveshare_owner/operations.py +172 -0
  202. magirunes-0.3.0/src/magirunes/liveshare_owner/persistence.py +343 -0
  203. magirunes-0.3.0/src/magirunes/liveshare_owner/relay_client.py +124 -0
  204. magirunes-0.3.0/src/magirunes/liveshare_protocol/__init__.py +71 -0
  205. magirunes-0.3.0/src/magirunes/liveshare_protocol/identity.py +122 -0
  206. magirunes-0.3.0/src/magirunes/liveshare_protocol/manifest.json +8 -0
  207. magirunes-0.3.0/src/magirunes/liveshare_protocol/mock.py +79 -0
  208. magirunes-0.3.0/src/magirunes/liveshare_protocol/read_budgets.py +47 -0
  209. magirunes-0.3.0/src/magirunes/liveshare_protocol/share_access.py +125 -0
  210. magirunes-0.3.0/src/magirunes/liveshare_protocol/viewer_channel.py +234 -0
  211. magirunes-0.3.0/src/magirunes/liveshare_protocol/viewer_states.py +19 -0
  212. magirunes-0.3.0/src/magirunes/liveshare_relay/__init__.py +39 -0
  213. magirunes-0.3.0/src/magirunes/liveshare_relay/app.py +312 -0
  214. magirunes-0.3.0/src/magirunes/liveshare_relay/auth.py +71 -0
  215. magirunes-0.3.0/src/magirunes/liveshare_relay/component.py +7 -0
  216. magirunes-0.3.0/src/magirunes/liveshare_relay/manifest.json +8 -0
  217. magirunes-0.3.0/src/magirunes/liveshare_relay/service.py +205 -0
  218. magirunes-0.3.0/src/magirunes/liveshare_relay/storage.py +121 -0
  219. magirunes-0.3.0/src/magirunes/liveshare_relay/types.py +231 -0
  220. magirunes-0.3.0/src/magirunes/mcp_manager/__init__.py +32 -0
  221. magirunes-0.3.0/src/magirunes/mcp_manager/component.py +55 -0
  222. magirunes-0.3.0/src/magirunes/mcp_manager/manifest.json +8 -0
  223. magirunes-0.3.0/src/magirunes/mcp_manager/oauth.py +153 -0
  224. magirunes-0.3.0/src/magirunes/mcp_manager/registry.py +183 -0
  225. magirunes-0.3.0/src/magirunes/oidc_account/__init__.py +7 -0
  226. magirunes-0.3.0/src/magirunes/oidc_account/component.py +54 -0
  227. magirunes-0.3.0/src/magirunes/oidc_account/manifest.json +8 -0
  228. magirunes-0.3.0/src/magirunes/oidc_account/service.py +252 -0
  229. magirunes-0.3.0/src/magirunes/otel/__init__.py +22 -0
  230. magirunes-0.3.0/src/magirunes/otel/component.py +16 -0
  231. magirunes-0.3.0/src/magirunes/otel/event_log.py +182 -0
  232. magirunes-0.3.0/src/magirunes/otel/manifest.json +8 -0
  233. magirunes-0.3.0/src/magirunes/otel/service.py +42 -0
  234. magirunes-0.3.0/src/magirunes/otel/session_log.py +307 -0
  235. magirunes-0.3.0/src/magirunes/otel/transport.py +300 -0
  236. magirunes-0.3.0/src/magirunes/plugin_manager/__init__.py +49 -0
  237. magirunes-0.3.0/src/magirunes/plugin_manager/catalog.py +173 -0
  238. magirunes-0.3.0/src/magirunes/plugin_manager/component.py +15 -0
  239. magirunes-0.3.0/src/magirunes/plugin_manager/manifest.json +8 -0
  240. magirunes-0.3.0/src/magirunes/plugin_manager/service.py +754 -0
  241. magirunes-0.3.0/src/magirunes/plugin_manager/types.py +149 -0
  242. magirunes-0.3.0/src/magirunes/plugin_manager/uv_runner.py +141 -0
  243. magirunes-0.3.0/src/magirunes/plugin_market_generator/__init__.py +32 -0
  244. magirunes-0.3.0/src/magirunes/plugin_market_generator/cli.py +200 -0
  245. magirunes-0.3.0/src/magirunes/plugin_market_generator/component.py +16 -0
  246. magirunes-0.3.0/src/magirunes/plugin_market_generator/files.py +139 -0
  247. magirunes-0.3.0/src/magirunes/plugin_market_generator/generate.py +657 -0
  248. magirunes-0.3.0/src/magirunes/plugin_market_generator/manifest.json +8 -0
  249. magirunes-0.3.0/src/magirunes/plugin_market_generator/market_index.py +355 -0
  250. magirunes-0.3.0/src/magirunes/plugin_market_generator/metadata.py +305 -0
  251. magirunes-0.3.0/src/magirunes/plugin_market_generator/metrics.py +129 -0
  252. magirunes-0.3.0/src/magirunes/plugin_market_generator/packages.py +370 -0
  253. magirunes-0.3.0/src/magirunes/plugin_market_generator/sources.py +74 -0
  254. magirunes-0.3.0/src/magirunes/providers/kilo/__init__.py +23 -0
  255. magirunes-0.3.0/src/magirunes/providers/kilo/component.py +55 -0
  256. magirunes-0.3.0/src/magirunes/providers/kilo/manifest.json +10 -0
  257. magirunes-0.3.0/src/magirunes/providers/kilo/provider.py +432 -0
  258. magirunes-0.3.0/src/magirunes/py.typed +0 -0
  259. magirunes-0.3.0/src/magirunes/sandbox/__init__.py +25 -0
  260. magirunes-0.3.0/src/magirunes/sandbox/component.py +26 -0
  261. magirunes-0.3.0/src/magirunes/sandbox/ladder.py +283 -0
  262. magirunes-0.3.0/src/magirunes/sandbox/manifest.json +10 -0
  263. magirunes-0.3.0/src/magirunes/session_telemetry_otel/__init__.py +17 -0
  264. magirunes-0.3.0/src/magirunes/session_telemetry_otel/backend.py +297 -0
  265. magirunes-0.3.0/src/magirunes/session_telemetry_otel/component.py +18 -0
  266. magirunes-0.3.0/src/magirunes/session_telemetry_otel/coordinator.py +181 -0
  267. magirunes-0.3.0/src/magirunes/session_telemetry_otel/identity.py +67 -0
  268. magirunes-0.3.0/src/magirunes/session_telemetry_otel/manifest.json +8 -0
  269. magirunes-0.3.0/src/magirunes/sessions/__init__.py +1 -0
  270. magirunes-0.3.0/src/magirunes/sessions/search/__init__.py +19 -0
  271. magirunes-0.3.0/src/magirunes/sessions/search/component.py +69 -0
  272. magirunes-0.3.0/src/magirunes/sessions/search/db.py +179 -0
  273. magirunes-0.3.0/src/magirunes/sessions/search/indexer.py +197 -0
  274. magirunes-0.3.0/src/magirunes/sessions/search/manifest.json +14 -0
  275. magirunes-0.3.0/src/magirunes/sessions/search/service.py +46 -0
  276. magirunes-0.3.0/src/magirunes/settings/__init__.py +11 -0
  277. magirunes-0.3.0/src/magirunes/settings/component.py +18 -0
  278. magirunes-0.3.0/src/magirunes/settings/manifest.json +8 -0
  279. magirunes-0.3.0/src/magirunes/settings/service.py +430 -0
  280. magirunes-0.3.0/src/magirunes/storage/__init__.py +29 -0
  281. magirunes-0.3.0/src/magirunes/storage/component.py +16 -0
  282. magirunes-0.3.0/src/magirunes/storage/manifest.json +8 -0
  283. magirunes-0.3.0/src/magirunes/storage/service.py +206 -0
  284. magirunes-0.3.0/src/magirunes/storage_domain/__init__.py +27 -0
  285. magirunes-0.3.0/src/magirunes/storage_domain/component.py +18 -0
  286. magirunes-0.3.0/src/magirunes/storage_domain/domain.py +262 -0
  287. magirunes-0.3.0/src/magirunes/storage_domain/error.py +32 -0
  288. magirunes-0.3.0/src/magirunes/storage_domain/facility.py +160 -0
  289. magirunes-0.3.0/src/magirunes/storage_domain/manifest.json +8 -0
  290. magirunes-0.3.0/src/magirunes/storage_domain/spec.py +134 -0
  291. magirunes-0.3.0/src/magirunes/storage_json/__init__.py +34 -0
  292. magirunes-0.3.0/src/magirunes/storage_json/atomic.py +48 -0
  293. magirunes-0.3.0/src/magirunes/storage_json/backend.py +111 -0
  294. magirunes-0.3.0/src/magirunes/storage_json/component.py +26 -0
  295. magirunes-0.3.0/src/magirunes/storage_json/format.py +121 -0
  296. magirunes-0.3.0/src/magirunes/storage_json/manifest.json +8 -0
  297. magirunes-0.3.0/src/magirunes/storage_json/per_record.py +300 -0
  298. magirunes-0.3.0/src/magirunes/storage_json/single.py +147 -0
  299. magirunes-0.3.0/src/magirunes/tools/code_analysis/__init__.py +15 -0
  300. magirunes-0.3.0/src/magirunes/tools/code_analysis/component.py +49 -0
  301. magirunes-0.3.0/src/magirunes/tools/code_analysis/handlers.py +133 -0
  302. magirunes-0.3.0/src/magirunes/tools/code_analysis/manifest.json +10 -0
  303. magirunes-0.3.0/src/magirunes/tools/codeact/__init__.py +22 -0
  304. magirunes-0.3.0/src/magirunes/tools/codeact/codeact.py +245 -0
  305. magirunes-0.3.0/src/magirunes/tools/codeact/component.py +49 -0
  306. magirunes-0.3.0/src/magirunes/tools/codeact/manifest.json +17 -0
  307. magirunes-0.3.0/src/magirunes/tools/codeact/runner.py +136 -0
  308. magirunes-0.3.0/src/magirunes/tools/codeact/transform.py +314 -0
  309. magirunes-0.3.0/src/magirunes/tools/dev_tools/__init__.py +23 -0
  310. magirunes-0.3.0/src/magirunes/tools/dev_tools/component.py +54 -0
  311. magirunes-0.3.0/src/magirunes/tools/dev_tools/handlers.py +161 -0
  312. magirunes-0.3.0/src/magirunes/tools/dev_tools/manifest.json +10 -0
  313. magirunes-0.3.0/src/magirunes/tools/dev_tools/repo_map.py +69 -0
  314. magirunes-0.3.0/src/magirunes/tools/fs/__init__.py +7 -0
  315. magirunes-0.3.0/src/magirunes/tools/fs/path_guard.py +28 -0
  316. magirunes-0.3.0/src/magirunes/tools/fs_extra/__init__.py +9 -0
  317. magirunes-0.3.0/src/magirunes/tools/fs_extra/component.py +48 -0
  318. magirunes-0.3.0/src/magirunes/tools/fs_extra/handlers.py +44 -0
  319. magirunes-0.3.0/src/magirunes/tools/fs_extra/manifest.json +10 -0
  320. magirunes-0.3.0/src/magirunes/tools/plugin_manager/component.py +334 -0
  321. magirunes-0.3.0/src/magirunes/tools/plugin_manager/manifest.json +8 -0
  322. magirunes-0.3.0/src/magirunes/tools/verify_repo/__init__.py +19 -0
  323. magirunes-0.3.0/src/magirunes/tools/verify_repo/component.py +27 -0
  324. magirunes-0.3.0/src/magirunes/tools/verify_repo/manifest.json +10 -0
  325. magirunes-0.3.0/src/magirunes/tools/verify_repo/verify.py +79 -0
  326. magirunes-0.3.0/src/magirunes/tools/web_search/__init__.py +6 -0
  327. magirunes-0.3.0/src/magirunes/tools/web_search/component.py +27 -0
  328. magirunes-0.3.0/src/magirunes/tools/web_search/handlers.py +122 -0
  329. magirunes-0.3.0/src/magirunes/tools/web_search/manifest.json +10 -0
  330. magirunes-0.3.0/src/magirunes/upstream_skills/__init__.py +8 -0
  331. magirunes-0.3.0/src/magirunes/upstream_skills/component.py +18 -0
  332. magirunes-0.3.0/src/magirunes/upstream_skills/manifest.json +8 -0
  333. magirunes-0.3.0/src/magirunes/upstream_skills/service.py +433 -0
  334. magirunes-0.3.0/src/magirunes/upstream_skills/types.py +100 -0
  335. magirunes-0.3.0/src/magirunes/web_deepseek/__init__.py +54 -0
  336. magirunes-0.3.0/src/magirunes/web_deepseek/component.py +401 -0
  337. magirunes-0.3.0/src/magirunes/web_deepseek/fetch_api.py +91 -0
  338. magirunes-0.3.0/src/magirunes/web_deepseek/manifest.json +10 -0
  339. magirunes-0.3.0/src/magirunes/web_deepseek/native_search.py +375 -0
  340. magirunes-0.3.0/src/magirunes/web_deepseek/search_api.py +223 -0
  341. magirunes-0.3.0/src/magirunes/web_deepseek/transport.py +516 -0
  342. magirunes-0.3.0/tests/__init__.py +0 -0
  343. magirunes-0.3.0/tests/e2e/test_okf_skills_integration.py +146 -0
  344. magirunes-0.3.0/tests/fixtures/kilo-tool.jsonl +6 -0
  345. magirunes-0.3.0/tests/fixtures/okf_test_bundle/expected_okf_bundle_output.txt +26 -0
  346. magirunes-0.3.0/tests/fixtures/okf_test_bundle/index.md +11 -0
  347. magirunes-0.3.0/tests/fixtures/okf_test_bundle/log.md +5 -0
  348. magirunes-0.3.0/tests/fixtures/okf_test_bundle/policies/cross-platform-path-assertions.md +19 -0
  349. magirunes-0.3.0/tests/fixtures/okf_test_bundle/policies/index.md +3 -0
  350. magirunes-0.3.0/tests/fixtures/okf_test_bundle/references/index.md +3 -0
  351. magirunes-0.3.0/tests/fixtures/okf_test_bundle/references/okf-spec-md.md +9 -0
  352. magirunes-0.3.0/tests/fixtures/plugin_market_generator/dsh_range.golden.json +19 -0
  353. magirunes-0.3.0/tests/integration/providers/__init__.py +0 -0
  354. magirunes-0.3.0/tests/integration/test_marketplace_integration.py +281 -0
  355. magirunes-0.3.0/tests/test_animas_version.py +21 -0
  356. magirunes-0.3.0/tests/unit/__init__.py +0 -0
  357. magirunes-0.3.0/tests/unit/magirunes/__init__.py +0 -0
  358. magirunes-0.3.0/tests/unit/magirunes/attachment_local/__init__.py +0 -0
  359. magirunes-0.3.0/tests/unit/magirunes/attachment_local/test_attachment_local.py +434 -0
  360. magirunes-0.3.0/tests/unit/magirunes/attachment_local/test_edges.py +329 -0
  361. magirunes-0.3.0/tests/unit/magirunes/attachment_local/test_edges2.py +499 -0
  362. magirunes-0.3.0/tests/unit/magirunes/authorization/__init__.py +0 -0
  363. magirunes-0.3.0/tests/unit/magirunes/authorization/test_service.py +427 -0
  364. magirunes-0.3.0/tests/unit/magirunes/bridges/__init__.py +1 -0
  365. magirunes-0.3.0/tests/unit/magirunes/bridges/lsp/__init__.py +0 -0
  366. magirunes-0.3.0/tests/unit/magirunes/bridges/lsp/test_client.py +349 -0
  367. magirunes-0.3.0/tests/unit/magirunes/bridges/lsp/test_component.py +163 -0
  368. magirunes-0.3.0/tests/unit/magirunes/bridges/lsp/test_init.py +9 -0
  369. magirunes-0.3.0/tests/unit/magirunes/bridges/lsp/test_service.py +177 -0
  370. magirunes-0.3.0/tests/unit/magirunes/bridges/mcp/__init__.py +1 -0
  371. magirunes-0.3.0/tests/unit/magirunes/bridges/mcp/test_client.py +287 -0
  372. magirunes-0.3.0/tests/unit/magirunes/bridges/mcp/test_component.py +35 -0
  373. magirunes-0.3.0/tests/unit/magirunes/bridges/mcp/test_init.py +17 -0
  374. magirunes-0.3.0/tests/unit/magirunes/bridges/mcp/test_protocol.py +86 -0
  375. magirunes-0.3.0/tests/unit/magirunes/bridges/mcp/test_service.py +189 -0
  376. magirunes-0.3.0/tests/unit/magirunes/bridges/mcp/test_transport.py +211 -0
  377. magirunes-0.3.0/tests/unit/magirunes/bridges/okf_filesystem/__init__.py +1 -0
  378. magirunes-0.3.0/tests/unit/magirunes/bridges/okf_filesystem/test_service.py +169 -0
  379. magirunes-0.3.0/tests/unit/magirunes/bridges/okf_loader/test_service.py +338 -0
  380. magirunes-0.3.0/tests/unit/magirunes/bridges/okf_loader/test_trust.py +258 -0
  381. magirunes-0.3.0/tests/unit/magirunes/bridges/okf_registry/__init__.py +1 -0
  382. magirunes-0.3.0/tests/unit/magirunes/bridges/okf_registry/test_service.py +80 -0
  383. magirunes-0.3.0/tests/unit/magirunes/bridges/otel/__init__.py +0 -0
  384. magirunes-0.3.0/tests/unit/magirunes/bridges/otel/test_component.py +108 -0
  385. magirunes-0.3.0/tests/unit/magirunes/bridges/otel/test_init.py +9 -0
  386. magirunes-0.3.0/tests/unit/magirunes/bridges/otel/test_tracer.py +100 -0
  387. magirunes-0.3.0/tests/unit/magirunes/bridges/skills_filesystem/__init__.py +1 -0
  388. magirunes-0.3.0/tests/unit/magirunes/bridges/skills_filesystem/test_service.py +177 -0
  389. magirunes-0.3.0/tests/unit/magirunes/bridges/skills_loader/__init__.py +1 -0
  390. magirunes-0.3.0/tests/unit/magirunes/bridges/skills_loader/test_service.py +160 -0
  391. magirunes-0.3.0/tests/unit/magirunes/bridges/skills_registry/__init__.py +1 -0
  392. magirunes-0.3.0/tests/unit/magirunes/bridges/skills_registry/test_service.py +82 -0
  393. magirunes-0.3.0/tests/unit/magirunes/bridges/steering/__init__.py +1 -0
  394. magirunes-0.3.0/tests/unit/magirunes/bridges/steering/test_collector.py +102 -0
  395. magirunes-0.3.0/tests/unit/magirunes/bridges/steering/test_component.py +35 -0
  396. magirunes-0.3.0/tests/unit/magirunes/bridges/steering/test_init.py +12 -0
  397. magirunes-0.3.0/tests/unit/magirunes/bridges/steering/test_service.py +63 -0
  398. magirunes-0.3.0/tests/unit/magirunes/bridges/test_init.py +9 -0
  399. magirunes-0.3.0/tests/unit/magirunes/bridges/test_okf_skills_components.py +90 -0
  400. magirunes-0.3.0/tests/unit/magirunes/bridges/workspace_snapshot/__init__.py +1 -0
  401. magirunes-0.3.0/tests/unit/magirunes/bridges/workspace_snapshot/test_component.py +69 -0
  402. magirunes-0.3.0/tests/unit/magirunes/bridges/workspace_snapshot/test_git.py +140 -0
  403. magirunes-0.3.0/tests/unit/magirunes/bridges/workspace_snapshot/test_init.py +10 -0
  404. magirunes-0.3.0/tests/unit/magirunes/bridges/workspace_snapshot/test_scanner.py +128 -0
  405. magirunes-0.3.0/tests/unit/magirunes/bridges/workspace_snapshot/test_service.py +37 -0
  406. magirunes-0.3.0/tests/unit/magirunes/compaction/jev_compaction_relevance/__init__.py +1 -0
  407. magirunes-0.3.0/tests/unit/magirunes/compaction/jev_compaction_relevance/test_component.py +34 -0
  408. magirunes-0.3.0/tests/unit/magirunes/compaction/jev_compaction_relevance/test_live.py +95 -0
  409. magirunes-0.3.0/tests/unit/magirunes/compaction/jev_compaction_relevance/test_relevance.py +170 -0
  410. magirunes-0.3.0/tests/unit/magirunes/config_editor/__init__.py +0 -0
  411. magirunes-0.3.0/tests/unit/magirunes/config_editor/test_component.py +336 -0
  412. magirunes-0.3.0/tests/unit/magirunes/credentials_local/test_parity_row26.py +461 -0
  413. magirunes-0.3.0/tests/unit/magirunes/credentials_local/test_provider.py +361 -0
  414. magirunes-0.3.0/tests/unit/magirunes/guards/__init__.py +0 -0
  415. magirunes-0.3.0/tests/unit/magirunes/guards/approval/__init__.py +0 -0
  416. magirunes-0.3.0/tests/unit/magirunes/guards/approval/test_component.py +88 -0
  417. magirunes-0.3.0/tests/unit/magirunes/guards/approval/test_guard.py +213 -0
  418. magirunes-0.3.0/tests/unit/magirunes/guards/approval/test_init.py +14 -0
  419. magirunes-0.3.0/tests/unit/magirunes/guards/approval/test_policy.py +177 -0
  420. magirunes-0.3.0/tests/unit/magirunes/guards/compaction/test_config.py +99 -0
  421. magirunes-0.3.0/tests/unit/magirunes/guards/jev_goal_verifier/__init__.py +1 -0
  422. magirunes-0.3.0/tests/unit/magirunes/guards/jev_goal_verifier/fixtures.json +33 -0
  423. magirunes-0.3.0/tests/unit/magirunes/guards/jev_goal_verifier/test_component.py +38 -0
  424. magirunes-0.3.0/tests/unit/magirunes/guards/jev_goal_verifier/test_live.py +69 -0
  425. magirunes-0.3.0/tests/unit/magirunes/guards/jev_goal_verifier/test_verifier.py +186 -0
  426. magirunes-0.3.0/tests/unit/magirunes/guards/jev_injection_screen/__init__.py +1 -0
  427. magirunes-0.3.0/tests/unit/magirunes/guards/jev_injection_screen/fixtures.json +40 -0
  428. magirunes-0.3.0/tests/unit/magirunes/guards/jev_injection_screen/test_component.py +52 -0
  429. magirunes-0.3.0/tests/unit/magirunes/guards/jev_injection_screen/test_live.py +70 -0
  430. magirunes-0.3.0/tests/unit/magirunes/guards/jev_injection_screen/test_screen.py +164 -0
  431. magirunes-0.3.0/tests/unit/magirunes/guards/jev_loop_detector/__init__.py +1 -0
  432. magirunes-0.3.0/tests/unit/magirunes/guards/jev_loop_detector/fixtures.json +37 -0
  433. magirunes-0.3.0/tests/unit/magirunes/guards/jev_loop_detector/test_component.py +48 -0
  434. magirunes-0.3.0/tests/unit/magirunes/guards/jev_loop_detector/test_detector.py +151 -0
  435. magirunes-0.3.0/tests/unit/magirunes/guards/jev_loop_detector/test_live.py +53 -0
  436. magirunes-0.3.0/tests/unit/magirunes/guards/jev_safety_gate/__init__.py +1 -0
  437. magirunes-0.3.0/tests/unit/magirunes/guards/jev_safety_gate/test_component.py +48 -0
  438. magirunes-0.3.0/tests/unit/magirunes/guards/jev_safety_gate/test_gate.py +103 -0
  439. magirunes-0.3.0/tests/unit/magirunes/guards/repeat_tool_reminder/test_guard.py +359 -0
  440. magirunes-0.3.0/tests/unit/magirunes/guards/test_compaction.py +821 -0
  441. magirunes-0.3.0/tests/unit/magirunes/guards/test_init.py +30 -0
  442. magirunes-0.3.0/tests/unit/magirunes/guards/test_redaction.py +161 -0
  443. magirunes-0.3.0/tests/unit/magirunes/guards/test_truncation.py +397 -0
  444. magirunes-0.3.0/tests/unit/magirunes/guards/timeout_policy/test_policy.py +215 -0
  445. magirunes-0.3.0/tests/unit/magirunes/guards/trust/__init__.py +1 -0
  446. magirunes-0.3.0/tests/unit/magirunes/guards/trust/test_component.py +210 -0
  447. magirunes-0.3.0/tests/unit/magirunes/guards/trust/test_gate.py +74 -0
  448. magirunes-0.3.0/tests/unit/magirunes/guards/trust/test_hasher.py +63 -0
  449. magirunes-0.3.0/tests/unit/magirunes/guards/trust/test_init.py +12 -0
  450. magirunes-0.3.0/tests/unit/magirunes/guards/trust/test_store.py +61 -0
  451. magirunes-0.3.0/tests/unit/magirunes/hmr/test_component.py +87 -0
  452. magirunes-0.3.0/tests/unit/magirunes/jev_service/__init__.py +1 -0
  453. magirunes-0.3.0/tests/unit/magirunes/jev_service/test_live.py +114 -0
  454. magirunes-0.3.0/tests/unit/magirunes/jev_service/test_service.py +178 -0
  455. magirunes-0.3.0/tests/unit/magirunes/liveshare/__init__.py +0 -0
  456. magirunes-0.3.0/tests/unit/magirunes/liveshare/test_fork_policy.py +157 -0
  457. magirunes-0.3.0/tests/unit/magirunes/liveshare/test_fork_registry.py +138 -0
  458. magirunes-0.3.0/tests/unit/magirunes/liveshare/test_owner_types.py +47 -0
  459. magirunes-0.3.0/tests/unit/magirunes/liveshare/test_relay_authority.py +654 -0
  460. magirunes-0.3.0/tests/unit/magirunes/liveshare/test_relay_fetch.py +98 -0
  461. magirunes-0.3.0/tests/unit/magirunes/liveshare/test_share_model.py +191 -0
  462. magirunes-0.3.0/tests/unit/magirunes/liveshare/test_shared_tools.py +143 -0
  463. magirunes-0.3.0/tests/unit/magirunes/liveshare/test_viewer_read_model.py +102 -0
  464. magirunes-0.3.0/tests/unit/magirunes/liveshare/test_wire_json.py +38 -0
  465. magirunes-0.3.0/tests/unit/magirunes/liveshare_owner/__init__.py +0 -0
  466. magirunes-0.3.0/tests/unit/magirunes/liveshare_owner/test_component.py +32 -0
  467. magirunes-0.3.0/tests/unit/magirunes/liveshare_owner/test_operations.py +205 -0
  468. magirunes-0.3.0/tests/unit/magirunes/liveshare_owner/test_persistence.py +234 -0
  469. magirunes-0.3.0/tests/unit/magirunes/liveshare_owner/test_relay_client.py +94 -0
  470. magirunes-0.3.0/tests/unit/magirunes/liveshare_protocol/__init__.py +0 -0
  471. magirunes-0.3.0/tests/unit/magirunes/liveshare_protocol/test_identity.py +149 -0
  472. magirunes-0.3.0/tests/unit/magirunes/liveshare_protocol/test_read_budgets.py +56 -0
  473. magirunes-0.3.0/tests/unit/magirunes/liveshare_protocol/test_share_access.py +93 -0
  474. magirunes-0.3.0/tests/unit/magirunes/liveshare_protocol/test_viewer_channel.py +126 -0
  475. magirunes-0.3.0/tests/unit/magirunes/liveshare_relay/__init__.py +0 -0
  476. magirunes-0.3.0/tests/unit/magirunes/liveshare_relay/test_app.py +387 -0
  477. magirunes-0.3.0/tests/unit/magirunes/liveshare_relay/test_auth.py +57 -0
  478. magirunes-0.3.0/tests/unit/magirunes/liveshare_relay/test_service.py +256 -0
  479. magirunes-0.3.0/tests/unit/magirunes/liveshare_relay/test_storage.py +87 -0
  480. magirunes-0.3.0/tests/unit/magirunes/liveshare_relay/test_types.py +198 -0
  481. magirunes-0.3.0/tests/unit/magirunes/mcp_manager/__init__.py +0 -0
  482. magirunes-0.3.0/tests/unit/magirunes/mcp_manager/test_manager.py +238 -0
  483. magirunes-0.3.0/tests/unit/magirunes/oidc_account/test_oidc_account_service.py +483 -0
  484. magirunes-0.3.0/tests/unit/magirunes/otel/__init__.py +0 -0
  485. magirunes-0.3.0/tests/unit/magirunes/otel/test_otel.py +771 -0
  486. magirunes-0.3.0/tests/unit/magirunes/plugin_manager/__init__.py +0 -0
  487. magirunes-0.3.0/tests/unit/magirunes/plugin_manager/test_uv_plugin_manager.py +463 -0
  488. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/__init__.py +0 -0
  489. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/test_coverage.py +375 -0
  490. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/test_coverage2.py +340 -0
  491. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/test_coverage3.py +183 -0
  492. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/test_coverage4.py +106 -0
  493. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/test_coverage5.py +340 -0
  494. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/test_generate.py +318 -0
  495. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/test_metadata.py +247 -0
  496. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/test_packages.py +299 -0
  497. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/test_reference_equivalence.py +33 -0
  498. magirunes-0.3.0/tests/unit/magirunes/plugin_market_generator/test_sources.py +135 -0
  499. magirunes-0.3.0/tests/unit/magirunes/providers/__init__.py +0 -0
  500. magirunes-0.3.0/tests/unit/magirunes/providers/test_init.py +9 -0
  501. magirunes-0.3.0/tests/unit/magirunes/providers/test_kilo.py +451 -0
  502. magirunes-0.3.0/tests/unit/magirunes/sandbox/__init__.py +1 -0
  503. magirunes-0.3.0/tests/unit/magirunes/sandbox/test_component.py +19 -0
  504. magirunes-0.3.0/tests/unit/magirunes/sandbox/test_init.py +14 -0
  505. magirunes-0.3.0/tests/unit/magirunes/sandbox/test_ladder.py +296 -0
  506. magirunes-0.3.0/tests/unit/magirunes/session_telemetry_otel/__init__.py +0 -0
  507. magirunes-0.3.0/tests/unit/magirunes/session_telemetry_otel/test_backend.py +512 -0
  508. magirunes-0.3.0/tests/unit/magirunes/sessions/__init__.py +1 -0
  509. magirunes-0.3.0/tests/unit/magirunes/sessions/search/__init__.py +1 -0
  510. magirunes-0.3.0/tests/unit/magirunes/sessions/search/test_component.py +60 -0
  511. magirunes-0.3.0/tests/unit/magirunes/sessions/search/test_db.py +114 -0
  512. magirunes-0.3.0/tests/unit/magirunes/sessions/search/test_indexer.py +136 -0
  513. magirunes-0.3.0/tests/unit/magirunes/sessions/search/test_init.py +12 -0
  514. magirunes-0.3.0/tests/unit/magirunes/sessions/search/test_service.py +57 -0
  515. magirunes-0.3.0/tests/unit/magirunes/settings/__init__.py +0 -0
  516. magirunes-0.3.0/tests/unit/magirunes/settings/test_service.py +413 -0
  517. magirunes-0.3.0/tests/unit/magirunes/storage/__init__.py +0 -0
  518. magirunes-0.3.0/tests/unit/magirunes/storage/test_component.py +15 -0
  519. magirunes-0.3.0/tests/unit/magirunes/storage/test_service.py +133 -0
  520. magirunes-0.3.0/tests/unit/magirunes/storage_domain/test_facility.py +413 -0
  521. magirunes-0.3.0/tests/unit/magirunes/storage_json/test_backend.py +790 -0
  522. magirunes-0.3.0/tests/unit/magirunes/test_index.py +232 -0
  523. magirunes-0.3.0/tests/unit/magirunes/test_upstream_skills.py +589 -0
  524. magirunes-0.3.0/tests/unit/magirunes/tools/__init__.py +0 -0
  525. magirunes-0.3.0/tests/unit/magirunes/tools/codeact/__init__.py +0 -0
  526. magirunes-0.3.0/tests/unit/magirunes/tools/codeact/test_codeact.py +270 -0
  527. magirunes-0.3.0/tests/unit/magirunes/tools/codeact/test_component.py +52 -0
  528. magirunes-0.3.0/tests/unit/magirunes/tools/codeact/test_init.py +13 -0
  529. magirunes-0.3.0/tests/unit/magirunes/tools/codeact/test_safety.py +109 -0
  530. magirunes-0.3.0/tests/unit/magirunes/tools/codeact/test_sandbox_escape.py +95 -0
  531. magirunes-0.3.0/tests/unit/magirunes/tools/codeact/test_transform.py +155 -0
  532. magirunes-0.3.0/tests/unit/magirunes/tools/plugin_manager/__init__.py +0 -0
  533. magirunes-0.3.0/tests/unit/magirunes/tools/plugin_manager/test_component.py +302 -0
  534. magirunes-0.3.0/tests/unit/magirunes/tools/test_init.py +9 -0
  535. magirunes-0.3.0/tests/unit/magirunes/tools/test_path_confinement.py +36 -0
  536. magirunes-0.3.0/tests/unit/magirunes/tools/test_ported_components.py +84 -0
  537. magirunes-0.3.0/tests/unit/magirunes/tools/test_ported_tools.py +520 -0
  538. magirunes-0.3.0/tests/unit/magirunes/web_deepseek/__init__.py +0 -0
  539. magirunes-0.3.0/tests/unit/magirunes/web_deepseek/conftest.py +140 -0
  540. magirunes-0.3.0/tests/unit/magirunes/web_deepseek/test_component.py +192 -0
  541. magirunes-0.3.0/tests/unit/magirunes/web_deepseek/test_edges.py +882 -0
  542. magirunes-0.3.0/tests/unit/magirunes/web_deepseek/test_fetch_api.py +135 -0
  543. magirunes-0.3.0/tests/unit/magirunes/web_deepseek/test_native_search.py +330 -0
  544. magirunes-0.3.0/tests/unit/magirunes/web_deepseek/test_search_api.py +344 -0
  545. magirunes-0.3.0/tests/unit/magirunes/web_deepseek/test_transport.py +460 -0
  546. magirunes-0.3.0/uv.lock +907 -0
@@ -0,0 +1,26 @@
1
+ name: CI
2
+
3
+ permissions:
4
+ contents: read
5
+
6
+ on:
7
+ push:
8
+ branches: [main]
9
+ pull_request:
10
+ branches: [main]
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ test:
18
+ name: Test & Lint
19
+ uses: magitech-ai/.github/.github/workflows/python-ci.yml@main
20
+ with:
21
+ python-version: "3.12"
22
+ checkout-path: "magirunes"
23
+ working-directory: "magirunes"
24
+ pre-commands: |
25
+ git clone --depth 1 https://github.com/magitech-ai/animas.git animas
26
+ git clone --depth 1 https://github.com/magitech-ai/magimoire.git magimoire
@@ -0,0 +1,26 @@
1
+ name: Cross-OS CI
2
+
3
+ # Weekly cross-platform validation. Windows bills at 2x and macOS at 10x, so
4
+ # the full os matrix runs on a schedule instead of every push/PR
5
+ # (see magitech-ai/.github#12).
6
+
7
+ on:
8
+ schedule:
9
+ - cron: "0 5 * * 1"
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ test:
17
+ name: Test & Lint (cross-OS)
18
+ uses: magitech-ai/.github/.github/workflows/python-ci.yml@main
19
+ with:
20
+ python-version: "3.12"
21
+ checkout-path: "magirunes"
22
+ working-directory: "magirunes"
23
+ pre-commands: |
24
+ git clone --depth 1 https://github.com/magitech-ai/animas.git animas
25
+ git clone --depth 1 https://github.com/magitech-ai/magimoire.git magimoire
26
+ os-matrix-json: '["ubuntu-latest", "windows-latest", "macos-latest"]'
@@ -0,0 +1,32 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
+ environment: pypi
15
+ permissions:
16
+ contents: read
17
+ id-token: write
18
+ steps:
19
+ - uses: actions/checkout@v5
20
+ - uses: astral-sh/setup-uv@v7
21
+ with:
22
+ version: "0.13.10"
23
+ - name: Install Python
24
+ run: uv python install 3.12
25
+ - name: Prepare sibling checkouts
26
+ run: |
27
+ git clone --depth 1 https://github.com/magitech-ai/animas.git ../animas
28
+ git clone --depth 1 https://github.com/magitech-ai/magimoire.git ../magimoire
29
+ - name: Build distributions
30
+ run: uv build
31
+ - name: Publish with OIDC
32
+ run: uv publish --trusted-publishing always
@@ -0,0 +1,27 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+ *.so
5
+ .Python
6
+ env/
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+ .pytest_cache/
23
+ .coverage
24
+ htmlcov/
25
+ .mypy_cache/
26
+ .ruff_cache/
27
+ .venv/
@@ -0,0 +1,46 @@
1
+ # Agent Guidelines
2
+
3
+ ## Plugin Architecture & Invariants
4
+
5
+ - **Repository Role & Marketplace Structure**:
6
+ - `magirunes` is the official extensible component marketplace for `magimoire`.
7
+ - Owns **optional, on-demand, and third-party** capabilities only. Anything mounted by the reference's `packages/bundle/base/cordis.patch.yml` belongs to `magimoire` (ADR 0022), not here.
8
+ - Implements non-HTTP/CLI model providers (`kilo-provider`), extra tools (`codeact-tool`, `code-analysis-tools`, `fs-extra-tools`, `web-search-tool`, `verify-repo-tool`, `dev-tools`), and marketplace guardrails (`redaction-guard`, `truncation-guard`, `workspace-trust-gate`). Standard HTTP API providers (OpenRouter, Pollinations, OpenAI, Anthropic, Google, Groq, xAI, custom endpoints) live in `magimoire.llm.conduit`.
9
+ - Relocated: `bash-tool`, `read-file-tool`, `write-file-tool`, `edit-file-tool`, `fs-search-tool`, and `subagent-tool` now live in `magimoire` (`tools/{bash_tool,fs,fs_search}.py`, `subagent/`) and are mounted by its `base.yaml`; they are no longer sold here.
10
+ - Every component ships with a `manifest.json` describing its metadata, type, and entrypoints, registered in `index.json`.
11
+ - **Component Integration**: Components mount into `animas` context through an `apply(ctx)` entry point and register capabilities on explicit services such as `ctx.llm` and `ctx.tools`. Tool definitions on `ctx.tools` use the canonical `magimoire.tools.schema.define_tool`; the legacy `Tool`/`tools.definition` module no longer exists.
12
+ - **Component discovery** — catalog: `src/magirunes/index.py`; Agent Skills activation: `bridges/skills_registry`, `bridges/skills_filesystem`, `bridges/skills_loader`; OKF knowledge activation: `bridges/okf_registry`, `bridges/okf_filesystem`, `bridges/okf_loader`; safeguards: `docs/adr/0012-0014`.
13
+ - **No Hardcoded Tunables**: Provider endpoints, default models, and token pressure thresholds must be configurable parameters, not hidden hardcoded constants.
14
+
15
+ ## Shared Development Guidance
16
+
17
+ Shared standards, workflow and quality gates:
18
+ [agents-home AGENTS](../agents-home/AGENTS.md) → `knowledge/engineering-standards/index.md`,
19
+ `docs/WORKFLOWS.md`, `knowledge/coding-standards/index.md`, and `scripts/check_all.py`.
20
+
21
+ ### Local checks
22
+ Run `python3 ../agents-home/scripts/check_all.py --fast` before committing;
23
+ CI runs the full gate.
24
+
25
+ ## Plugin-Specific References
26
+
27
+ ### Issue tracker
28
+ GitHub Issues via `gh` CLI (`magitech-ai` organization). See `docs/agents/issue-tracker.md`.
29
+
30
+ ### Triage labels
31
+ Canonical five-role triage vocabulary. See `docs/agents/triage-labels.md`.
32
+
33
+ ### Domain docs
34
+ Single-context layout (`CONTEXT.md` + `docs/adr/`). See `docs/agents/domain.md`.
35
+
36
+ ## Agent skills
37
+
38
+ ### Issue tracker
39
+ GitHub Issues via `gh` CLI (`magitech-ai` organization). See `docs/agents/issue-tracker.md`.
40
+
41
+ ### Triage labels
42
+ Canonical five-role triage vocabulary. See `docs/agents/triage-labels.md`.
43
+
44
+ ### Domain docs
45
+ Single-context layout (`CONTEXT.md` + `docs/adr/`). See `docs/agents/domain.md`.
46
+
@@ -0,0 +1,159 @@
1
+ # Magirunes
2
+
3
+ The official extensible marketplace containing pluggable model providers, domain tools, guardrails, and compaction policies for the Magimoire.
4
+
5
+ ## Language
6
+
7
+ ### Marketplace & Distribution
8
+
9
+ **Component**:
10
+ A packaged Python module adhering to the manifest specification that mounts capabilities onto an Animas context.
11
+ _Avoid_: Extension, addon, module
12
+
13
+ **Manifest**:
14
+ A JSON document (`manifest.json`) declaring a component's identity, version, classification types, entry point, and dependencies.
15
+ _Avoid_: Spec, descriptor, config
16
+
17
+ **Catalog**:
18
+ The centralized index (`index.json`) mapping component names to their manifest locations and metadata.
19
+ _Avoid_: Registry, marketplace database, store, session catalog
20
+
21
+ ### Capability Seams
22
+
23
+ **Provider**:
24
+ A component that supplies a capability to a consumer through a registered seam: a model provider (`LLMProvider`) for completions, or a bundle provider for discoverable content.
25
+ _Avoid_: Adapter, backend, driver
26
+
27
+ **Bundle Provider**:
28
+ A provider that supplies discoverable bundles (Agent Skills or OKF knowledge bundles) to a session catalog, as distinct from a model provider.
29
+ _Avoid_: Model provider, content source
30
+
31
+ **Tool**:
32
+ A callable capability exposed to language models with JSON schema definitions and typed execution handlers.
33
+ _Avoid_: Function, spell, action
34
+
35
+ **Tool Definition**:
36
+ The data structure declaring a tool's name, description, JSON schema parameters, and execution callable.
37
+ _Avoid_: Tool spec, tool signature, function metadata
38
+
39
+ **Execution Backend**:
40
+ The abstraction mediating subprocess execution and filesystem operations across local, containerized, or sandboxed environments.
41
+ _Avoid_: Shell runner, execution environment, runner
42
+
43
+ **Tool Context**:
44
+ The internal runtime parameters injected into a tool handler at execution time and hidden from model schemas.
45
+ _Avoid_: Tool state, execution payload
46
+
47
+ **Service Dependency**:
48
+ A required capability contract declared by a component via `inject` and `requires_services`, decoupled from concrete vendor package IDs.
49
+ _Avoid_: Component requirement, package import
50
+
51
+ **CodeAct**:
52
+ Direct execution of model-synthesized Python snippets with AST write-protection for registered tools, auto-`await` dispatching, and persistent session locals.
53
+ _Avoid_: Python tool, eval script, REPL runner
54
+
55
+ ### Progressive Discovery & Knowledge
56
+
57
+ **Skill**:
58
+ A portable package of instructions and supporting files that is discovered progressively and activated on demand.
59
+ _Avoid_: Slash command, prompt snippet
60
+
61
+ **Knowledge Bundle**:
62
+ A directory of Markdown documents with YAML frontmatter that can be catalogued and loaded into a session.
63
+ _Avoid_: Knowledge base, doc set
64
+
65
+ **OKF Bundle**:
66
+ A knowledge bundle conforming to the Open Knowledge Format, carrying provenance, trust, lifecycle and attestation metadata.
67
+ _Avoid_: OKF repository, knowledge graph
68
+
69
+ **Session Catalog**:
70
+ A session-scoped, name-and-description-only view of discovered bundles or skills used to decide what to load.
71
+ _Avoid_: Marketplace catalog, full-text index
72
+
73
+ ### Security & Human-in-the-Loop
74
+
75
+ **Approval Policy**:
76
+ A declarative TOML document (`policy.toml`) in global or workspace layers mapping tool identifiers and argument regex patterns to `allow` or `deny` outcomes.
77
+ _Avoid_: Permission list, authorization config
78
+
79
+ **Approval Request**:
80
+ An immutable question containing engine-derived tool identity, normalized arguments, and a cryptographic argument digest (`sha256:...`).
81
+ _Avoid_: Permission prompt, authorization ticket
82
+
83
+ **Approval Decision**:
84
+ An immutable verdict bound by cryptographic argument digest carrying an outcome (`allow`, `deny`), reason code (`rule`, `user`, `read_only`, `failure`), and grant scope (`once`, `session`, `project`).
85
+ _Avoid_: User confirmation, auth response
86
+
87
+ **Approval Scope**:
88
+ The temporal lifetime of an authorization: `once` for single-shot execution, `session` for the active conversation, or `project` persisted to workspace policy.
89
+ _Avoid_: Grant duration, timeout
90
+
91
+ ### Diagnostics & Observability
92
+
93
+ **Language Server Bridge**:
94
+ A background JSON-RPC 2.0 stdio client translating file mutations (`edit`, `write`) into debounced compiler diagnostics and providing semantic definition/reference lookup.
95
+ _Avoid_: Linter component, compiler checker
96
+
97
+ **Distributed Tracing Bridge**:
98
+ An OpenTelemetry instrumentation layer capturing turn lifecycles, provider requests, and tool executions as hierarchical trace spans.
99
+ _Avoid_: Logging component, APM hook
100
+
101
+ ### Delegation & Multi-Agent
102
+
103
+ **Sub-Agent**:
104
+ A scoped, delegated agent execution instance that performs tasks and communicates with a parent agent.
105
+ _Avoid_: Child agent, slave agent, worker
106
+
107
+ **Sub-Session**:
108
+ A durable, append-only session log recorded under `subsessions/` dedicated to a sub-agent's execution history.
109
+ _Avoid_: Child thread, sub-log, child session
110
+
111
+ **Sub-Agent Triad** (historical):
112
+ The former marketplace tools `invoke_subagent`, `send_message`, and
113
+ `manage_subagents`. The dsh-named surface now lives in `magimoire` under
114
+ ADR 0022; the dsh-named surface is now the only one (ADR 0024); the old names were retired.
115
+ _Avoid_: Child toolset, delegation api
116
+
117
+ ### Interception & Transformations
118
+
119
+ **Guard**:
120
+ A component that intercepts turns or messages via Animas event waterfalls to enforce boundaries, safety, or token limits.
121
+ _Avoid_: Middleware, filter, interceptor
122
+
123
+ **Compaction Guard**:
124
+ A guard component that monitors token pressure and triggers conversational history summarization at balanced cut points.
125
+ _Avoid_: Pruning component, context reducer
126
+
127
+ **Truncation**:
128
+ The deterministic clipping of oversized prompt context or tool output text to protect token budgets.
129
+ _Avoid_: Compaction, pruning, slicing
130
+
131
+ **Deliberation**:
132
+ Raw reasoning or thought-chain text emitted by reasoning models prior to user-visible response tokens.
133
+ _Avoid_: Thinking process, internal monologue, reasoning trace
134
+
135
+ **Model Slug**:
136
+ A standardized model identifier formatted with a namespace prefix and model name, e.g. `openrouter/auto`.
137
+ _Avoid_: Model tag, model string, model ID
138
+
139
+ ### Session Persistence & Versioning
140
+
141
+ **Session Index**:
142
+ A SQLite full-text search database indexing conversations and messages from session JSONL event logs.
143
+ _Avoid_: Message catalog, chat index, search cache
144
+
145
+ **Session Title**:
146
+ An autonomous titling service combining heuristic fallbacks with background LLM summarization.
147
+ _Avoid_: Auto namer, session header, conversation label
148
+
149
+ **Shadow Git Repository**:
150
+ A bare Git repository isolated under user cache that tracks turn snapshots without touching primary Git tracking.
151
+ _Avoid_: Hidden repo, secondary git, backup repo
152
+
153
+ **Alternates Object Sharing**:
154
+ A Git storage optimization linking a shadow repository to primary Git objects via `objects/info/alternates`.
155
+ _Avoid_: Object symlink, shared blob pool
156
+
157
+ **Turn Snapshot**:
158
+ An immutable Git tree object hash representing the exact workspace filesystem state at a turn completion.
159
+ _Avoid_: Checkpoint commit, file backup, disk dump
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Magitech
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.
@@ -0,0 +1,50 @@
1
+ # Parity
2
+
3
+ The authoritative parity map lives in the harness repo:
4
+ [`magimoire/PARITY.md`](../magimoire/PARITY.md). It is the
5
+ evidence-backed map against the pinned reference, DeepSeek Harness
6
+ `4b399c39a6d1479cd84ca591b4d7c88e24d38a96` (v0.2.3-alpha.2), and it supersedes
7
+ the earlier `fcc0ad46` (0.2.2-rc.1) record.
8
+
9
+ ## What belongs here
10
+
11
+ Ownership is mechanical ([ADR 0022](../magimoire/docs/adr/0022-supersede-zero-builtin-domain-tools-base-bundle-in-harness.md)):
12
+
13
+ - **`magimoire`** owns every tool and service mounted by the reference's
14
+ `packages/bundle/base/cordis.patch.yml`.
15
+ - **`magirunes`** owns optional, on-demand, and third-party capabilities:
16
+ single-vendor providers, extra tools, marketplace guards, bridges.
17
+
18
+ So this repository holds:
19
+
20
+ - Providers: `kilo-provider` (404 models, 12 free variants, zero credentials
21
+ required; verified live with `cost: 0`). Standard HTTP API providers
22
+ (OpenRouter, Pollinations, and similar) now live in
23
+ `magimoire.llm.conduit`.
24
+ - Extra tools: `codeact-tool`, `code-analysis-tools`, `fs-extra-tools`,
25
+ `web-search-tool`, `verify-repo-tool`, `dev-tools`.
26
+ - Marketplace guards: `redaction-guard`, `truncation-guard`,
27
+ `workspace-trust-gate`, plus the historical duplicate guard rows.
28
+ - Bridges: LSP, MCP, OpenTelemetry, Agent Skills (registry/filesystem/loader),
29
+ OKF (registry/filesystem/loader), steering, workspace snapshot.
30
+ - Sandboxes and sessions: `sandbox-ladder`, `session-search`.
31
+
32
+ ## Relocated
33
+
34
+ Base-bundle capabilities moved to `magimoire` under ADR 0022, with their
35
+ tests and `base.yaml` rows: `bash`, `read_file`, `write_file`, `edit_file`,
36
+ `glob`, `grep` (`tool-bash`, `tool-fs`, `tool-fs-search`), and the subagent
37
+ domain plus its six tools (`subagent`, `subagent_fork`, `send_message`,
38
+ `list_agents`, `interrupt_agent`, `wait_agent`). They are DONE in the
39
+ authoritative map. This repository no longer ships or catalogues them.
40
+
41
+ ## Historical pins
42
+
43
+ The frozen 1.0 audit numbers below are kept as history and are deliberately not
44
+ rewritten:
45
+
46
+ - Version `0.3.0`, audited at the C6-fix merge on `main`.
47
+ - Suite at that audit: 402 tests, 100% statement + branch coverage.
48
+ - Reference frozen at `fcc0ad46…` (0.2.2-rc.1) for that audit.
49
+
50
+ Current local verification is the repository's own gate; CI is the authority.
@@ -0,0 +1,93 @@
1
+ Metadata-Version: 2.5
2
+ Name: magirunes
3
+ Version: 0.3.0
4
+ Summary: Official portable components and marketplace catalog for Magimoire
5
+ Author-email: Magitech <dev@magitech.ai>
6
+ License-File: LICENSE
7
+ Requires-Python: >=3.12
8
+ Requires-Dist: animas<3,>=2.1
9
+ Requires-Dist: httpx>=0.27.0
10
+ Requires-Dist: magimoire
11
+ Requires-Dist: pillow>=13.0.0
12
+ Requires-Dist: pydantic>=2.0.0
13
+ Requires-Dist: pyyaml>=6.0.0
14
+ Description-Content-Type: text/markdown
15
+
16
+ <p align="center">
17
+ <picture>
18
+ <source
19
+ media="(prefers-color-scheme: dark)"
20
+ srcset="https://raw.githubusercontent.com/magitech-ai/.github/main/brand/collateral/readme-banner-dark.svg"
21
+ />
22
+ <source
23
+ media="(prefers-color-scheme: light)"
24
+ srcset="https://raw.githubusercontent.com/magitech-ai/.github/main/brand/collateral/readme-banner-light.svg"
25
+ />
26
+ <img
27
+ alt="Magitech"
28
+ src="https://raw.githubusercontent.com/magitech-ai/.github/main/brand/collateral/readme-banner-light.svg"
29
+ width="100%"
30
+ />
31
+ </picture>
32
+ </p>
33
+
34
+ # magirunes
35
+
36
+ Official portable components and marketplace catalog for [Magimoire](https://github.com/magitech-ai/magimoire).
37
+
38
+ ## Overview
39
+
40
+ `magirunes` contains the **optional, on-demand, and third-party** model
41
+ providers, tools, guards, bridges, and session services that round out the
42
+ runtime. Everything mounted by the reference's base bundle — `bash`, the
43
+ filesystem tools, `glob`/`grep`, jobs, todo, and goals — ships in
44
+ `magimoire` instead ([ADR 0022](../magimoire/docs/adr/0022-supersede-zero-builtin-domain-tools-base-bundle-in-harness.md)).
45
+ Each component ships a `manifest.json` and is registered in the marketplace
46
+ catalog (`src/magirunes/index.json`). Components mount into an `animas`
47
+ context through `apply(ctx)` and register capabilities on explicit services
48
+ such as `ctx.llm` and `ctx.tools`.
49
+
50
+ ## Structure
51
+
52
+ | Category | Components | Source |
53
+ | :--------- | :--------- | :----- |
54
+ | Providers | `kilo-provider` | `src/magirunes/providers/` |
55
+ | Tools | `codeact-tool`, `fs-extra-tools`, `code-analysis-tools`, `web-search-tool`, `verify-repo-tool`, `dev-tools` | `src/magirunes/tools/` |
56
+ | Guards | `approval-guard`, `compaction-guard`, `redaction-guard`, `repeat-tool-reminder`, `timeout-policy`, `truncation-guard`, `workspace-trust-gate` | `src/magirunes/guards/` |
57
+ | Bridges | `lsp-bridge`, `mcp-bridge`, `opentelemetry-bridge`, `skills-registry`, `skills-filesystem`, `skills-loader`, `okf-registry`, `okf-filesystem`, `okf-loader`, `steering-bridge`, `workspace-snapshot` | `src/magirunes/bridges/` |
58
+ | Sandboxes | `sandbox-ladder` | `src/magirunes/sandbox/` |
59
+ | Sessions | `session-search` | `src/magirunes/sessions/` |
60
+
61
+ (*) The Agent Skills and OKF bridges are Magitech extensions. Neither is
62
+ parity; see
63
+ [PARITY.md](PARITY.md) for the ownership rule and the relocation record.
64
+
65
+ ## Discovery and installation
66
+
67
+ The installed wheel advertises the shipped catalog through the
68
+ `magitech.components` entry point, so `magi component discover` and
69
+ `magi component install` work without a source checkout. Catalog lookup and
70
+ discovery live in `src/magirunes/index.py`.
71
+
72
+ ## Development
73
+
74
+ ```sh
75
+ uv sync
76
+ python3 ../agents-home/scripts/check_all.py --fast # local pre-commit gate
77
+ uv run pytest -q # full suite, 100% floor
78
+ ```
79
+
80
+ CI runs the full shared gate — lint, format, strict mypy, tests, and a 100%
81
+ statement-and-branch coverage floor — on Linux, macOS and Windows.
82
+
83
+ ## Documentation
84
+
85
+ - [CONTEXT.md](CONTEXT.md) — domain vocabulary.
86
+ - [docs/adr/](docs/adr/) — architecture decision records.
87
+ - [PARITY.md](PARITY.md) — 1.0 parity pins and current status.
88
+ - [AGENTS.md](AGENTS.md) — agent guidance and shared standards.
89
+ - [Release notes](docs/release-notes/).
90
+
91
+ ## License
92
+
93
+ Apache-2.0
@@ -0,0 +1,78 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source
4
+ media="(prefers-color-scheme: dark)"
5
+ srcset="https://raw.githubusercontent.com/magitech-ai/.github/main/brand/collateral/readme-banner-dark.svg"
6
+ />
7
+ <source
8
+ media="(prefers-color-scheme: light)"
9
+ srcset="https://raw.githubusercontent.com/magitech-ai/.github/main/brand/collateral/readme-banner-light.svg"
10
+ />
11
+ <img
12
+ alt="Magitech"
13
+ src="https://raw.githubusercontent.com/magitech-ai/.github/main/brand/collateral/readme-banner-light.svg"
14
+ width="100%"
15
+ />
16
+ </picture>
17
+ </p>
18
+
19
+ # magirunes
20
+
21
+ Official portable components and marketplace catalog for [Magimoire](https://github.com/magitech-ai/magimoire).
22
+
23
+ ## Overview
24
+
25
+ `magirunes` contains the **optional, on-demand, and third-party** model
26
+ providers, tools, guards, bridges, and session services that round out the
27
+ runtime. Everything mounted by the reference's base bundle — `bash`, the
28
+ filesystem tools, `glob`/`grep`, jobs, todo, and goals — ships in
29
+ `magimoire` instead ([ADR 0022](../magimoire/docs/adr/0022-supersede-zero-builtin-domain-tools-base-bundle-in-harness.md)).
30
+ Each component ships a `manifest.json` and is registered in the marketplace
31
+ catalog (`src/magirunes/index.json`). Components mount into an `animas`
32
+ context through `apply(ctx)` and register capabilities on explicit services
33
+ such as `ctx.llm` and `ctx.tools`.
34
+
35
+ ## Structure
36
+
37
+ | Category | Components | Source |
38
+ | :--------- | :--------- | :----- |
39
+ | Providers | `kilo-provider` | `src/magirunes/providers/` |
40
+ | Tools | `codeact-tool`, `fs-extra-tools`, `code-analysis-tools`, `web-search-tool`, `verify-repo-tool`, `dev-tools` | `src/magirunes/tools/` |
41
+ | Guards | `approval-guard`, `compaction-guard`, `redaction-guard`, `repeat-tool-reminder`, `timeout-policy`, `truncation-guard`, `workspace-trust-gate` | `src/magirunes/guards/` |
42
+ | Bridges | `lsp-bridge`, `mcp-bridge`, `opentelemetry-bridge`, `skills-registry`, `skills-filesystem`, `skills-loader`, `okf-registry`, `okf-filesystem`, `okf-loader`, `steering-bridge`, `workspace-snapshot` | `src/magirunes/bridges/` |
43
+ | Sandboxes | `sandbox-ladder` | `src/magirunes/sandbox/` |
44
+ | Sessions | `session-search` | `src/magirunes/sessions/` |
45
+
46
+ (*) The Agent Skills and OKF bridges are Magitech extensions. Neither is
47
+ parity; see
48
+ [PARITY.md](PARITY.md) for the ownership rule and the relocation record.
49
+
50
+ ## Discovery and installation
51
+
52
+ The installed wheel advertises the shipped catalog through the
53
+ `magitech.components` entry point, so `magi component discover` and
54
+ `magi component install` work without a source checkout. Catalog lookup and
55
+ discovery live in `src/magirunes/index.py`.
56
+
57
+ ## Development
58
+
59
+ ```sh
60
+ uv sync
61
+ python3 ../agents-home/scripts/check_all.py --fast # local pre-commit gate
62
+ uv run pytest -q # full suite, 100% floor
63
+ ```
64
+
65
+ CI runs the full shared gate — lint, format, strict mypy, tests, and a 100%
66
+ statement-and-branch coverage floor — on Linux, macOS and Windows.
67
+
68
+ ## Documentation
69
+
70
+ - [CONTEXT.md](CONTEXT.md) — domain vocabulary.
71
+ - [docs/adr/](docs/adr/) — architecture decision records.
72
+ - [PARITY.md](PARITY.md) — 1.0 parity pins and current status.
73
+ - [AGENTS.md](AGENTS.md) — agent guidance and shared standards.
74
+ - [Release notes](docs/release-notes/).
75
+
76
+ ## License
77
+
78
+ Apache-2.0
@@ -0,0 +1,22 @@
1
+ # 0001. Independent Plugin Manifest Packaging
2
+
3
+ Date: 2026-11-07
4
+ Status: accepted
5
+
6
+ ## Context
7
+
8
+ The plugin marketplace needs to support diverse capability types (model providers, domain tools, guardrails, profiles) developed, versioned, and tested independently without tightly coupling the core harness engine to specific plugin implementations.
9
+
10
+ ## Decision
11
+
12
+ We establish an explicit manifest packaging format for all marketplace plugins:
13
+ 1. Every plugin is isolated in its own directory (e.g. `src/mth_components/providers/openrouter/`) containing a declarative `manifest.json`.
14
+ 2. The manifest declares `name`, `version`, `description`, `types` (`Provider`, `Tool`, `Guard`), `author`, and `entrypoint`.
15
+ 3. The entrypoint defines an `apply(ctx)` callable that mounts the plugin's capabilities directly onto the host Animas context.
16
+ 4. A root `index.json` acts as the discoverable catalog, mapping plugin IDs to their manifest relative paths.
17
+
18
+ ## Consequences
19
+
20
+ - Plugins are self-describing, modular, and can be individually verified and loaded by the harness plugin service.
21
+ - New plugins can be introduced into the catalog without requiring code changes to the core runtime or other plugins.
22
+ - Central discovery requires keeping `index.json` synchronized when adding or moving plugins.
@@ -0,0 +1,22 @@
1
+ # 0002. Context Compaction as a Guard Plugin
2
+
3
+ Date: 2026-11-07
4
+ Status: accepted
5
+
6
+ ## Context
7
+
8
+ Conversations in multi-turn agent sessions grow over time, eventually exceeding model context windows. We must summarize history to fit within context limits without baking domain prompt opinions, token pressure heuristics, or slash command handling into the core runtime engine.
9
+
10
+ ## Decision
11
+
12
+ We implement context compaction as an extensible guard plugin (`compaction-guard`):
13
+ 1. The compaction plugin registers an interceptor on the Animas waterfall event `turn/stream`.
14
+ 2. When prompt token pressure exceeds a configured threshold (or upon receiving an explicit `/compact` slash command), the plugin determines a balanced cut point using `is_tool_pairing_balanced`.
15
+ 3. The plugin prompts the active LLM provider (`ctx.llm.generate`) with a structured summarization instruction covering goals, findings, and ongoing tasks.
16
+ 4. The resulting summary is appended to the session log as an immutable `session/compaction` event, allowing the core projection engine to fold previous events for subsequent model calls.
17
+
18
+ ## Consequences
19
+
20
+ - The core harness engine provides only the neutral projection seam, keeping the runtime clean and unopinionated.
21
+ - Token pressure thresholds, summarization prompts, and trigger conditions can be customized or replaced per profile.
22
+ - Compaction operations remain fully recorded and transparent within the session event history.
@@ -0,0 +1,21 @@
1
+ # 0003. Anonymous Keyless Model Provider Architecture
2
+
3
+ Date: 2026-11-07
4
+ Status: accepted
5
+
6
+ ## Context
7
+
8
+ Developers and automated CI pipelines need the ability to run functional agent tests, evaluation suites, and interactive sessions without requiring paid API keys, account registration, or manual credential provisioning.
9
+
10
+ ## Decision
11
+
12
+ We implement a dedicated anonymous model provider plugin (`pollinations-provider`):
13
+ 1. **Keyless Anonymous Access**: When no API key is configured or an empty string is provided, the provider completely omits the HTTP `Authorization` header rather than transmitting an empty bearer token.
14
+ 2. **Wire Model ID Normalization**: The provider normalizes model slugs by stripping namespace prefixes (`pollinations/openai` -> `openai`) before dispatching to the wire.
15
+ 3. **Full Protocol Support**: Implements both `generate` and `stream` methods of the `LLMProvider` protocol, parsing server-sent events (SSE), extracting reasoning/deliberation deltas, relaying OpenAI tool calls, and honoring `AbortSignal` cancellation.
16
+
17
+ ## Consequences
18
+
19
+ - Users can immediately test, run, and evaluate the full harness out of the box with zero credentials.
20
+ - Test suites can verify real end-to-end model turns anonymously without leaking secrets in CI environments.
21
+ - Relies on external public anonymous service availability and rate limits.
@@ -0,0 +1,22 @@
1
+ # 0004. Standard Tool Schema and Execution Contract
2
+
3
+ Date: 2026-11-07
4
+ Status: accepted
5
+
6
+ ## Context
7
+
8
+ Pluggable domain tools need a consistent interface for schema discovery by language models, input validation, and execution. Divergent tool formats or proprietary schemas complicate tool registration, prevent cross-model compatibility, and risk unconstrained execution environments.
9
+
10
+ ## Decision
11
+
12
+ We enforce a unified `ToolDefinition` specification across all marketplace tools:
13
+ 1. Every tool exports a `ToolDefinition` instance specifying its `name`, human-readable `description`, standard JSON Schema `parameters` dictionary, and an executable handler (`handler`).
14
+ 2. Tools support both synchronous and asynchronous execution handlers; the tool service normalizes execution asynchronously.
15
+ 3. System tools that interact with the host environment enforce safe execution boundaries (e.g. `read-file-tool` and filesystem tools enforce base path sandboxing to prevent directory traversal outside allowed roots).
16
+ 4. Tool results return standardized string outputs or raise explicit execution errors that are formatted into model-visible tool result events without crashing the harness.
17
+
18
+ ## Consequences
19
+
20
+ - All marketplace tools seamlessly map to standard OpenAI-compatible function calling schemas without model-specific shims.
21
+ - Tool schemas are verified during unit testing with 100% statement and branch coverage.
22
+ - Authors must define explicit JSON Schema parameter dictionaries for each exposed tool.