dokime-sdk 0.1.9__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 (338) hide show
  1. dokime_sdk-0.1.9/.gitignore +101 -0
  2. dokime_sdk-0.1.9/LICENSE +202 -0
  3. dokime_sdk-0.1.9/NOTICE +10 -0
  4. dokime_sdk-0.1.9/PKG-INFO +13 -0
  5. dokime_sdk-0.1.9/README.md +316 -0
  6. dokime_sdk-0.1.9/hatch_build.py +29 -0
  7. dokime_sdk-0.1.9/proto/dokime/host/v1/access/certificates.proto +34 -0
  8. dokime_sdk-0.1.9/proto/dokime/host/v1/access/listener.proto +38 -0
  9. dokime_sdk-0.1.9/proto/dokime/host/v1/access/pairings.proto +42 -0
  10. dokime_sdk-0.1.9/proto/dokime/host/v1/aggregates.proto +104 -0
  11. dokime_sdk-0.1.9/proto/dokime/host/v1/backend/overview.proto +91 -0
  12. dokime_sdk-0.1.9/proto/dokime/host/v1/backend.proto +99 -0
  13. dokime_sdk-0.1.9/proto/dokime/host/v1/cases.proto +249 -0
  14. dokime_sdk-0.1.9/proto/dokime/host/v1/content/artifacts.proto +114 -0
  15. dokime_sdk-0.1.9/proto/dokime/host/v1/content/execution_files.proto +118 -0
  16. dokime_sdk-0.1.9/proto/dokime/host/v1/cycles.proto +280 -0
  17. dokime_sdk-0.1.9/proto/dokime/host/v1/documents.proto +530 -0
  18. dokime_sdk-0.1.9/proto/dokime/host/v1/evidence/health_events.proto +84 -0
  19. dokime_sdk-0.1.9/proto/dokime/host/v1/evidence/logs.proto +52 -0
  20. dokime_sdk-0.1.9/proto/dokime/host/v1/evidence/notes.proto +175 -0
  21. dokime_sdk-0.1.9/proto/dokime/host/v1/evidence/records.proto +177 -0
  22. dokime_sdk-0.1.9/proto/dokime/host/v1/evidence/samples.proto +153 -0
  23. dokime_sdk-0.1.9/proto/dokime/host/v1/evidence/traceability.proto +111 -0
  24. dokime_sdk-0.1.9/proto/dokime/host/v1/evidence.proto +106 -0
  25. dokime_sdk-0.1.9/proto/dokime/host/v1/executions/commands.proto +104 -0
  26. dokime_sdk-0.1.9/proto/dokime/host/v1/executions/progress.proto +98 -0
  27. dokime_sdk-0.1.9/proto/dokime/host/v1/executions/schemas.proto +57 -0
  28. dokime_sdk-0.1.9/proto/dokime/host/v1/executions.proto +528 -0
  29. dokime_sdk-0.1.9/proto/dokime/host/v1/files/captures.proto +102 -0
  30. dokime_sdk-0.1.9/proto/dokime/host/v1/files/uploads.proto +141 -0
  31. dokime_sdk-0.1.9/proto/dokime/host/v1/files.proto +137 -0
  32. dokime_sdk-0.1.9/proto/dokime/host/v1/invocations.proto +34 -0
  33. dokime_sdk-0.1.9/proto/dokime/host/v1/media/captures.proto +139 -0
  34. dokime_sdk-0.1.9/proto/dokime/host/v1/operations.proto +38 -0
  35. dokime_sdk-0.1.9/proto/dokime/host/v1/plots/settings.proto +81 -0
  36. dokime_sdk-0.1.9/proto/dokime/host/v1/plots/snapshots.proto +388 -0
  37. dokime_sdk-0.1.9/proto/dokime/host/v1/plugins/secrets.proto +56 -0
  38. dokime_sdk-0.1.9/proto/dokime/host/v1/plugins/settings.proto +73 -0
  39. dokime_sdk-0.1.9/proto/dokime/host/v1/plugins.proto +298 -0
  40. dokime_sdk-0.1.9/proto/dokime/host/v1/prompt_definitions.proto +67 -0
  41. dokime_sdk-0.1.9/proto/dokime/host/v1/prompts/answers.proto +53 -0
  42. dokime_sdk-0.1.9/proto/dokime/host/v1/prompts.proto +157 -0
  43. dokime_sdk-0.1.9/proto/dokime/host/v1/record_schemas.proto +306 -0
  44. dokime_sdk-0.1.9/proto/dokime/host/v1/reports.proto +179 -0
  45. dokime_sdk-0.1.9/proto/dokime/host/v1/secrets.proto +215 -0
  46. dokime_sdk-0.1.9/proto/dokime/host/v1/settings.proto +291 -0
  47. dokime_sdk-0.1.9/proto/dokime/host/v1/status/diagnostics.proto +34 -0
  48. dokime_sdk-0.1.9/proto/dokime/host/v1/status/logs.proto +38 -0
  49. dokime_sdk-0.1.9/proto/dokime/host/v1/status/trace_events.proto +38 -0
  50. dokime_sdk-0.1.9/proto/dokime/host/v1/status.proto +65 -0
  51. dokime_sdk-0.1.9/proto/dokime/host/v1/storage/sources.proto +80 -0
  52. dokime_sdk-0.1.9/proto/dokime/host/v1/stream_schemas.proto +67 -0
  53. dokime_sdk-0.1.9/proto/dokime/host/v1/suites.proto +67 -0
  54. dokime_sdk-0.1.9/proto/dokime/model/v1/documents.proto +104 -0
  55. dokime_sdk-0.1.9/proto/dokime/model/v1/evidence.proto +139 -0
  56. dokime_sdk-0.1.9/proto/dokime/model/v1/execution.proto +119 -0
  57. dokime_sdk-0.1.9/proto/dokime/model/v1/expressions.proto +108 -0
  58. dokime_sdk-0.1.9/proto/dokime/model/v1/files.proto +85 -0
  59. dokime_sdk-0.1.9/proto/dokime/model/v1/metadata.proto +35 -0
  60. dokime_sdk-0.1.9/proto/dokime/model/v1/parameters.proto +141 -0
  61. dokime_sdk-0.1.9/proto/dokime/model/v1/plots.proto +238 -0
  62. dokime_sdk-0.1.9/proto/dokime/model/v1/prompts.proto +147 -0
  63. dokime_sdk-0.1.9/proto/dokime/model/v1/record_contracts.proto +46 -0
  64. dokime_sdk-0.1.9/proto/dokime/model/v1/scalar.proto +74 -0
  65. dokime_sdk-0.1.9/proto/dokime/model/v1/secrets.proto +34 -0
  66. dokime_sdk-0.1.9/proto/dokime/model/v1/suites.proto +57 -0
  67. dokime_sdk-0.1.9/proto/dokime/model/v1/traceability.proto +32 -0
  68. dokime_sdk-0.1.9/proto/dokime/plugin/v1/criteria.proto +44 -0
  69. dokime_sdk-0.1.9/proto/dokime/plugin/v1/executions.proto +53 -0
  70. dokime_sdk-0.1.9/proto/dokime/plugin/v1/steps.proto +43 -0
  71. dokime_sdk-0.1.9/proto/dokime/plugin/v1/test_cases.proto +43 -0
  72. dokime_sdk-0.1.9/proto/harmos/host/v1/access/certificates.proto +33 -0
  73. dokime_sdk-0.1.9/proto/harmos/host/v1/access/listener.proto +64 -0
  74. dokime_sdk-0.1.9/proto/harmos/host/v1/access/pairings.proto +76 -0
  75. dokime_sdk-0.1.9/proto/harmos/host/v1/invocations.proto +84 -0
  76. dokime_sdk-0.1.9/proto/harmos/host/v1/operations.proto +45 -0
  77. dokime_sdk-0.1.9/proto/harmos/host/v1/plugins/settings.proto +65 -0
  78. dokime_sdk-0.1.9/proto/harmos/host/v1/plugins/state.proto +43 -0
  79. dokime_sdk-0.1.9/proto/harmos/host/v1/plugins.proto +272 -0
  80. dokime_sdk-0.1.9/proto/harmos/host/v1/schema.proto +114 -0
  81. dokime_sdk-0.1.9/proto/harmos/host/v1/schemas.proto +44 -0
  82. dokime_sdk-0.1.9/proto/harmos/host/v1/status/diagnostics.proto +45 -0
  83. dokime_sdk-0.1.9/proto/harmos/host/v1/status/logs.proto +77 -0
  84. dokime_sdk-0.1.9/proto/harmos/host/v1/status/trace_events.proto +65 -0
  85. dokime_sdk-0.1.9/proto/harmos/host/v1/status.proto +85 -0
  86. dokime_sdk-0.1.9/proto/harmos/host/v1/streams.proto +48 -0
  87. dokime_sdk-0.1.9/proto/harmos/host/v1/time.proto +46 -0
  88. dokime_sdk-0.1.9/proto/harmos/model/v1/callers.proto +36 -0
  89. dokime_sdk-0.1.9/proto/harmos/model/v1/description.proto +66 -0
  90. dokime_sdk-0.1.9/proto/harmos/model/v1/failure.proto +68 -0
  91. dokime_sdk-0.1.9/proto/harmos/model/v1/file.proto +94 -0
  92. dokime_sdk-0.1.9/proto/harmos/model/v1/invocation.proto +29 -0
  93. dokime_sdk-0.1.9/proto/harmos/model/v1/operation.proto +121 -0
  94. dokime_sdk-0.1.9/proto/harmos/model/v1/page.proto +31 -0
  95. dokime_sdk-0.1.9/proto/harmos/model/v1/policy.proto +45 -0
  96. dokime_sdk-0.1.9/proto/harmos/model/v1/position.proto +53 -0
  97. dokime_sdk-0.1.9/proto/harmos/model/v1/receipt.proto +35 -0
  98. dokime_sdk-0.1.9/proto/harmos/model/v1/setting.proto +62 -0
  99. dokime_sdk-0.1.9/proto/harmos/model/v1/stream.proto +43 -0
  100. dokime_sdk-0.1.9/proto/harmos/model/v1/transfer.proto +39 -0
  101. dokime_sdk-0.1.9/proto/harmos/plugin/v1/behaviour.md +557 -0
  102. dokime_sdk-0.1.9/proto/harmos/plugin/v1/guest.proto +162 -0
  103. dokime_sdk-0.1.9/proto/harmos/plugin/v1/instance.proto +166 -0
  104. dokime_sdk-0.1.9/proto/harmos/plugin/v1/invocation.proto +97 -0
  105. dokime_sdk-0.1.9/proto/harmos/plugin/v1/invocations.proto +40 -0
  106. dokime_sdk-0.1.9/proto/harmos/plugin/v1/launches.proto +38 -0
  107. dokime_sdk-0.1.9/proto/harmos/plugin/v1/operation.proto +35 -0
  108. dokime_sdk-0.1.9/proto/harmos/plugin/v1/operations.proto +36 -0
  109. dokime_sdk-0.1.9/proto/harmos/plugin/v1/plugins/settings.proto +32 -0
  110. dokime_sdk-0.1.9/proto/harmos/plugin/v1/plugins/state.proto +36 -0
  111. dokime_sdk-0.1.9/proto/harmos/plugin/v1/stream.proto +90 -0
  112. dokime_sdk-0.1.9/proto/harmos/plugin/v1/subscriptions.proto +57 -0
  113. dokime_sdk-0.1.9/proto/harmos/plugin/v1/time.proto +36 -0
  114. dokime_sdk-0.1.9/pyproject.toml +72 -0
  115. dokime_sdk-0.1.9/ruff.toml +18 -0
  116. dokime_sdk-0.1.9/src/dokime_sdk/__init__.py +27 -0
  117. dokime_sdk-0.1.9/src/dokime_sdk/_authoring.py +528 -0
  118. dokime_sdk-0.1.9/src/dokime_sdk/_client.py +980 -0
  119. dokime_sdk-0.1.9/src/dokime_sdk/_configuration.py +98 -0
  120. dokime_sdk-0.1.9/src/dokime_sdk/_connection.py +272 -0
  121. dokime_sdk-0.1.9/src/dokime_sdk/_context.py +160 -0
  122. dokime_sdk-0.1.9/src/dokime_sdk/_evidence.py +499 -0
  123. dokime_sdk-0.1.9/src/dokime_sdk/_generated/client.py +4092 -0
  124. dokime_sdk-0.1.9/src/dokime_sdk/_generated/host.py +846 -0
  125. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/access/certificates_pb2.py +41 -0
  126. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/access/certificates_pb2.pyi +9 -0
  127. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/access/certificates_pb2_grpc.py +108 -0
  128. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/access/listener_pb2.py +43 -0
  129. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/access/listener_pb2.pyi +9 -0
  130. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/access/listener_pb2_grpc.py +152 -0
  131. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/access/pairings_pb2.py +45 -0
  132. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/access/pairings_pb2.pyi +9 -0
  133. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/access/pairings_pb2_grpc.py +196 -0
  134. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/aggregates_pb2.py +59 -0
  135. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/aggregates_pb2.pyi +119 -0
  136. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/aggregates_pb2_grpc.py +120 -0
  137. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/backend/overview_pb2.py +58 -0
  138. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/backend/overview_pb2.pyi +93 -0
  139. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/backend/overview_pb2_grpc.py +164 -0
  140. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/backend_pb2.py +59 -0
  141. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/backend_pb2.pyi +95 -0
  142. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/backend_pb2_grpc.py +164 -0
  143. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/cases_pb2.py +107 -0
  144. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/cases_pb2.pyi +312 -0
  145. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/cases_pb2_grpc.py +340 -0
  146. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/content/artifacts_pb2.py +69 -0
  147. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/content/artifacts_pb2.pyi +110 -0
  148. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/content/artifacts_pb2_grpc.py +252 -0
  149. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/content/execution_files_pb2.py +67 -0
  150. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/content/execution_files_pb2.pyi +128 -0
  151. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/content/execution_files_pb2_grpc.py +208 -0
  152. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/cycles_pb2.py +107 -0
  153. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/cycles_pb2.pyi +369 -0
  154. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/cycles_pb2_grpc.py +340 -0
  155. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/documents_pb2.py +161 -0
  156. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/documents_pb2.pyi +768 -0
  157. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/documents_pb2_grpc.py +208 -0
  158. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/health_events_pb2.py +58 -0
  159. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/health_events_pb2.pyi +82 -0
  160. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/health_events_pb2_grpc.py +164 -0
  161. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/logs_pb2.py +47 -0
  162. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/logs_pb2.pyi +37 -0
  163. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/logs_pb2_grpc.py +120 -0
  164. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/notes_pb2.py +88 -0
  165. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/notes_pb2.pyi +200 -0
  166. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/notes_pb2_grpc.py +296 -0
  167. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/records_pb2.py +76 -0
  168. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/records_pb2.pyi +219 -0
  169. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/records_pb2_grpc.py +208 -0
  170. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/samples_pb2.py +70 -0
  171. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/samples_pb2.pyi +195 -0
  172. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/samples_pb2_grpc.py +164 -0
  173. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/traceability_pb2.py +65 -0
  174. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/traceability_pb2.pyi +115 -0
  175. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence/traceability_pb2_grpc.py +208 -0
  176. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence_pb2.py +60 -0
  177. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence_pb2.pyi +110 -0
  178. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/evidence_pb2_grpc.py +164 -0
  179. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions/commands_pb2.py +59 -0
  180. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions/commands_pb2.pyi +115 -0
  181. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions/commands_pb2_grpc.py +164 -0
  182. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions/progress_pb2.py +60 -0
  183. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions/progress_pb2.pyi +84 -0
  184. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions/progress_pb2_grpc.py +210 -0
  185. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions/schemas_pb2.py +48 -0
  186. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions/schemas_pb2.pyi +43 -0
  187. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions/schemas_pb2_grpc.py +120 -0
  188. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions_pb2.py +177 -0
  189. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions_pb2.pyi +715 -0
  190. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/executions_pb2_grpc.py +605 -0
  191. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/files/captures_pb2.py +64 -0
  192. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/files/captures_pb2.pyi +101 -0
  193. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/files/captures_pb2_grpc.py +164 -0
  194. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/files/uploads_pb2.py +77 -0
  195. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/files/uploads_pb2.pyi +141 -0
  196. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/files/uploads_pb2_grpc.py +340 -0
  197. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/files_pb2.py +76 -0
  198. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/files_pb2.pyi +137 -0
  199. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/files_pb2_grpc.py +296 -0
  200. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/invocations_pb2.py +41 -0
  201. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/invocations_pb2.pyi +9 -0
  202. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/invocations_pb2_grpc.py +108 -0
  203. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/media/captures_pb2.py +74 -0
  204. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/media/captures_pb2.pyi +153 -0
  205. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/media/captures_pb2_grpc.py +252 -0
  206. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/operations_pb2.py +43 -0
  207. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/operations_pb2.pyi +9 -0
  208. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/operations_pb2_grpc.py +152 -0
  209. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plots/settings_pb2.py +56 -0
  210. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plots/settings_pb2.pyi +75 -0
  211. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plots/settings_pb2_grpc.py +164 -0
  212. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plots/snapshots_pb2.py +120 -0
  213. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plots/snapshots_pb2.pyi +578 -0
  214. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plots/snapshots_pb2_grpc.py +164 -0
  215. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plugins/secrets_pb2.py +48 -0
  216. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plugins/secrets_pb2.pyi +40 -0
  217. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plugins/secrets_pb2_grpc.py +120 -0
  218. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plugins/settings_pb2.py +53 -0
  219. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plugins/settings_pb2.pyi +60 -0
  220. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plugins/settings_pb2_grpc.py +152 -0
  221. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plugins_pb2.py +114 -0
  222. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plugins_pb2.pyi +305 -0
  223. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/plugins_pb2_grpc.py +416 -0
  224. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/prompt_definitions_pb2.py +52 -0
  225. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/prompt_definitions_pb2.pyi +53 -0
  226. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/prompt_definitions_pb2_grpc.py +164 -0
  227. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/prompts/answers_pb2.py +47 -0
  228. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/prompts/answers_pb2.pyi +37 -0
  229. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/prompts/answers_pb2_grpc.py +120 -0
  230. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/prompts_pb2.py +85 -0
  231. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/prompts_pb2.pyi +203 -0
  232. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/prompts_pb2_grpc.py +252 -0
  233. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/record_schemas_pb2.py +102 -0
  234. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/record_schemas_pb2.pyi +436 -0
  235. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/record_schemas_pb2_grpc.py +164 -0
  236. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/reports_pb2.py +91 -0
  237. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/reports_pb2.pyi +214 -0
  238. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/reports_pb2_grpc.py +208 -0
  239. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/secrets_pb2.py +100 -0
  240. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/secrets_pb2.pyi +248 -0
  241. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/secrets_pb2_grpc.py +384 -0
  242. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/settings_pb2.py +115 -0
  243. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/settings_pb2.pyi +377 -0
  244. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/settings_pb2_grpc.py +208 -0
  245. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status/diagnostics_pb2.py +41 -0
  246. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status/diagnostics_pb2.pyi +9 -0
  247. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status/diagnostics_pb2_grpc.py +108 -0
  248. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status/logs_pb2.py +43 -0
  249. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status/logs_pb2.pyi +9 -0
  250. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status/logs_pb2_grpc.py +152 -0
  251. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status/trace_events_pb2.py +43 -0
  252. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status/trace_events_pb2.pyi +9 -0
  253. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status/trace_events_pb2_grpc.py +152 -0
  254. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status_pb2.py +50 -0
  255. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status_pb2.pyi +43 -0
  256. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/status_pb2_grpc.py +153 -0
  257. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/storage/sources_pb2.py +56 -0
  258. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/storage/sources_pb2.pyi +73 -0
  259. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/storage/sources_pb2_grpc.py +164 -0
  260. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/stream_schemas_pb2.py +52 -0
  261. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/stream_schemas_pb2.pyi +53 -0
  262. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/stream_schemas_pb2_grpc.py +164 -0
  263. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/suites_pb2.py +52 -0
  264. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/suites_pb2.pyi +53 -0
  265. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/host/v1/suites_pb2_grpc.py +164 -0
  266. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/documents_pb2.py +63 -0
  267. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/documents_pb2.pyi +143 -0
  268. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/documents_pb2_grpc.py +24 -0
  269. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/evidence_pb2.py +67 -0
  270. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/evidence_pb2.pyi +200 -0
  271. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/evidence_pb2_grpc.py +24 -0
  272. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/execution_pb2.py +60 -0
  273. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/execution_pb2.pyi +140 -0
  274. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/execution_pb2_grpc.py +24 -0
  275. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/expressions_pb2.py +52 -0
  276. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/expressions_pb2.pyi +141 -0
  277. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/expressions_pb2_grpc.py +24 -0
  278. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/files_pb2.py +53 -0
  279. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/files_pb2.pyi +100 -0
  280. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/files_pb2_grpc.py +24 -0
  281. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/metadata_pb2.py +43 -0
  282. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/metadata_pb2.pyi +41 -0
  283. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/metadata_pb2_grpc.py +24 -0
  284. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/parameters_pb2.py +65 -0
  285. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/parameters_pb2.pyi +191 -0
  286. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/parameters_pb2_grpc.py +24 -0
  287. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/plots_pb2.py +82 -0
  288. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/plots_pb2.pyi +342 -0
  289. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/plots_pb2_grpc.py +24 -0
  290. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/prompts_pb2.py +68 -0
  291. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/prompts_pb2.pyi +214 -0
  292. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/prompts_pb2_grpc.py +24 -0
  293. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/record_contracts_pb2.py +44 -0
  294. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/record_contracts_pb2.pyi +43 -0
  295. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/record_contracts_pb2_grpc.py +24 -0
  296. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/scalar_pb2.py +52 -0
  297. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/scalar_pb2.pyi +98 -0
  298. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/scalar_pb2_grpc.py +24 -0
  299. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/secrets_pb2.py +40 -0
  300. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/secrets_pb2.pyi +27 -0
  301. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/secrets_pb2_grpc.py +24 -0
  302. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/suites_pb2.py +45 -0
  303. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/suites_pb2.pyi +61 -0
  304. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/suites_pb2_grpc.py +24 -0
  305. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/traceability_pb2.py +39 -0
  306. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/traceability_pb2.pyi +24 -0
  307. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/model/v1/traceability_pb2_grpc.py +24 -0
  308. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/criteria_pb2.py +42 -0
  309. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/criteria_pb2.pyi +30 -0
  310. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/criteria_pb2_grpc.py +111 -0
  311. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/executions_pb2.py +46 -0
  312. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/executions_pb2.pyi +44 -0
  313. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/executions_pb2_grpc.py +155 -0
  314. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/steps_pb2.py +42 -0
  315. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/steps_pb2.pyi +28 -0
  316. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/steps_pb2_grpc.py +111 -0
  317. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/test_cases_pb2.py +47 -0
  318. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/test_cases_pb2.pyi +36 -0
  319. dokime_sdk-0.1.9/src/dokime_sdk/_generated/proto/plugin/v1/test_cases_pb2_grpc.py +111 -0
  320. dokime_sdk-0.1.9/src/dokime_sdk/_generated/sources.json +1 -0
  321. dokime_sdk-0.1.9/src/dokime_sdk/_generated/surface.pb +0 -0
  322. dokime_sdk-0.1.9/src/dokime_sdk/_logs.py +167 -0
  323. dokime_sdk-0.1.9/src/dokime_sdk/_messages.py +42 -0
  324. dokime_sdk-0.1.9/src/dokime_sdk/_parameters.py +223 -0
  325. dokime_sdk-0.1.9/src/dokime_sdk/_payloads.py +67 -0
  326. dokime_sdk-0.1.9/src/dokime_sdk/_plugin.py +543 -0
  327. dokime_sdk-0.1.9/src/dokime_sdk/_schemas.py +135 -0
  328. dokime_sdk-0.1.9/src/dokime_sdk/_transfers.py +209 -0
  329. dokime_sdk-0.1.9/src/dokime_sdk/_transport.py +149 -0
  330. dokime_sdk-0.1.9/src/dokime_sdk/_values.py +227 -0
  331. dokime_sdk-0.1.9/src/dokime_sdk/operations.py +363 -0
  332. dokime_sdk-0.1.9/src/dokime_sdk/py.typed +0 -0
  333. dokime_sdk-0.1.9/src/dokime_sdk/templates/__init__.py +113 -0
  334. dokime_sdk-0.1.9/src/dokime_sdk/templates/_captures.py +210 -0
  335. dokime_sdk-0.1.9/src/dokime_sdk/templates/_context.py +223 -0
  336. dokime_sdk-0.1.9/src/dokime_sdk/templates/_documents.py +154 -0
  337. dokime_sdk-0.1.9/src/dokime_sdk/templates/_plots.py +432 -0
  338. dokime_sdk-0.1.9/tools/generate.py +216 -0
@@ -0,0 +1,101 @@
1
+ # Rust
2
+ .stkr-cargo-*.lock
3
+ .stkr-cargo-*.json
4
+ .stkr-cargo-*.pending
5
+ /target/
6
+ **/*.rs.bk
7
+
8
+ # Runtime outputs from dev stacks, exercises, and e2e runs
9
+ /.run/
10
+ .env
11
+
12
+ # Python
13
+ /.cache/
14
+ /.venv/
15
+ /tools/python/.venv/
16
+ /dist/
17
+ __pycache__/
18
+ *.py[cod]
19
+ *.so
20
+ *.pyd
21
+ *.pdb
22
+ .pytest_cache/
23
+ .coverage
24
+ .ruff_cache/
25
+ .mypy_cache/
26
+ .pyright/
27
+
28
+ # Web and Tauri
29
+ **/node_modules/
30
+ /crates/dokime-gui/dist/
31
+ /crates/dokime-gui/dist-report/
32
+ /crates/dokime-gui/.run/
33
+ /crates/dokime-gui/test-results/
34
+ /crates/dokime-gui/playwright-report/
35
+ /crates/dokime-gui/src-tauri/gen/
36
+
37
+ /crates/dokime-gui/src-tauri/target/
38
+ /examples/*/dist/
39
+
40
+ # Local editor and OS noise
41
+ .DS_Store
42
+ Thumbs.db
43
+ .env
44
+ .env.local
45
+ .env.*.local
46
+ .mise.local.toml
47
+
48
+ # Local AI and agent metadata
49
+ .claude/settings.local.json
50
+ .playwright-mcp/
51
+
52
+ # Local validation artifacts
53
+ /.tmp/
54
+ /reports/
55
+ /execution-tablet-controls.png
56
+ /report-evidence-view.png
57
+ /report-summary-view.png
58
+ /report-timeline-view.png
59
+
60
+ # Local git worktrees container
61
+ .worktrees/
62
+
63
+ # Ralph Wiggum loop state (session-local; must survive `git clean -fd` recovery)
64
+ .claude/ralph-loop.local.md
65
+
66
+ # Default local output root for `dokime-cli serve`
67
+ /dokime-data/
68
+
69
+ # Key material never belongs in the repository; tests generate throwaway identities.
70
+ *.pem
71
+ *.key
72
+
73
+ # Plugin bundles are build outputs of the plugin build system, never sources.
74
+ # They are tens of megabytes each and must never enter history; `mise run
75
+ # check` refuses a tracked one.
76
+ *.dokime
77
+
78
+ # Private Agent Artifacts
79
+ /.stkr/state/
80
+ /.stkr/task/
81
+ /.stkr/specifications/
82
+
83
+ # Local Machine State
84
+ /.stkr/generated/
85
+
86
+ # Core dumps left by an aborted WebView under the e2e gate.
87
+ /core
88
+ /core.*
89
+
90
+ # Retired Private Namespace Must Never Enter History
91
+ /.stkr/agents/
92
+
93
+ # Local Machine State
94
+ /.stkr/tests/
95
+ /.stkr/benchmarks/
96
+
97
+ # BEGIN CI
98
+ /.cache/
99
+ .mise/
100
+ # END CI
101
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,10 @@
1
+ Dokime
2
+ Copyright Stokker Technologies
3
+
4
+ Licensed under the Apache License, Version 2.0. See LICENSE.
5
+
6
+ Dokime and the Stokker Technologies names and logos are trademarks of
7
+ Stokker Technologies. The Apache License does not grant permission to use
8
+ these trade names, trademarks or product names beyond its stated terms.
9
+
10
+ Third-party copyright and license notices are in THIRD-PARTY-NOTICES.
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.5
2
+ Name: dokime-sdk
3
+ Version: 0.1.9
4
+ Summary: Remote Dokime plugin authoring and generated gRPC clients.
5
+ License-Expression: Apache-2.0
6
+ Requires-Python: >=3.13
7
+ Requires-Dist: grpcio<2,>=1.85.1
8
+ Requires-Dist: harmos-sdk~=0.1.15
9
+ Requires-Dist: protobuf<8,>=7.35.1
10
+ Provides-Extra: pandas
11
+ Requires-Dist: pandas<4,>=3; extra == 'pandas'
12
+ Provides-Extra: polars
13
+ Requires-Dist: polars<3,>=2.1; extra == 'polars'
@@ -0,0 +1,316 @@
1
+ # Dokime Python SDK
2
+
3
+ `dokime-sdk` provides typed plugin declarations and async clients for a running
4
+ Dokime host. It requires Python 3.13 or later. Resources close explicitly.
5
+
6
+ ## Operation Lanes
7
+
8
+ `Lane` is re-exported by `dokime_sdk`. Declare `instrument = Lane("instrument", serial=True)`, list it in the plugin class's `lanes = [instrument]`, and select it with `@operation("example.measure", lane=instrument)`. `Lane("workers", concurrent=4)` bounds concurrency; `Lane("independent")` is unbounded. The library validates declarations and rejects an operation whose lane the plugin does not declare.
9
+
10
+ ## Public Homes
11
+
12
+ ```python
13
+ from dokime_sdk import Plugin, ResultStatus, Suite, connect
14
+ from dokime_sdk.operations import Context, Visibility, operation
15
+ from dokime_sdk.templates import TestTemplate, criterion, record, step
16
+ ```
17
+
18
+ The operation and template modules each own a distinct `Context`. Import a
19
+ context from its module when authoring that kind of handler. Plugin handlers
20
+ reach shared plugin state through `ctx.plugin`.
21
+
22
+ `ExamplePlugin().identifier` is `example` before and after registration. A class
23
+ `identifier` overrides the class-derived identity. The plugin binds every local
24
+ registration below its identifier: `LayoutSuite` / `TrackingTestTemplate.status`
25
+ in `ExamplePlugin` registers `example.layout.tracking.status`. Explicit local
26
+ identifiers follow the same rule; `example.status` stays `example.status`.
27
+ `uses_streams` and qualified document queries
28
+ keep their identifiers as written.
29
+
30
+ ## Operation Calls
31
+
32
+ Operation declarations use the library's `Operation` contract. Host-clock waits
33
+ and reads delegate to the library context; the SDK converts durations and timestamps.
34
+
35
+ Call operations by identifier with an optional dict using protobuf's standard JSON
36
+ mapping. The host owns JSON conversion, schema validation, operation admission and
37
+ failure wording. Unknown fields are rejected.
38
+
39
+ ```python
40
+ @step("Measure")
41
+ async def measure(self, ctx):
42
+ reply = await ctx.operation("example.measure", {"channel": 1}, policy=None)
43
+ ```
44
+
45
+ An omitted request sends an empty object. Replies are dicts. No peer binding or
46
+ request declaration is required. Catch `dokime_sdk.operations.OperationError` and read `error.kind`, `error.code`,
47
+ `error.message`, `error.action`, `error.operation` and `error.retry`; `error.to_dict()`
48
+ returns the same structured evidence, including host retry decisions. The callee's operation policy applies unless the call supplies
49
+ an override.
50
+
51
+ Declare `failure = remote_failure` on the plugin class to map an exception to an
52
+ `OperationError` or return `None`. The library applies this mapper once at its
53
+ invocation boundary. Unmapped exceptions become permanent failures containing
54
+ the exception text and the handler's operation identity.
55
+
56
+ ## Standard Logging
57
+
58
+ Use `log = logging.getLogger(__name__)` and ordinary synchronous `log.debug(...)`,
59
+ `log.info(...)`, `log.warning(...)` or `log.error(...)` calls. While a handler runs,
60
+ records flush to execution evidence before awaited SDK host calls and on return.
61
+ Outside execution scopes, records are written to plugin stderr for host diagnostics.
62
+
63
+ ## Secrets and Resources
64
+
65
+ Declare resource classes in `resources`, settings classes in `settings`, and secret
66
+ names in `secrets`. Handlers look up resources and settings by type without importing
67
+ the plugin class. Secrets return UTF-8 text and name the recovery action when missing.
68
+
69
+ ```python
70
+ from datetime import timedelta
71
+ from dokime_sdk.operations import Context, Resource, Secret, Setting, Settings
72
+
73
+
74
+ class ConnectionSettings(Settings):
75
+ api_address: str = Setting.text("Remote API Address", default="127.0.0.1:30059")
76
+ dll_timeout: timedelta = Setting.duration("DLL Host Timeout", default=timedelta(seconds=5), max=timedelta(seconds=30))
77
+
78
+
79
+ class RemoteApi(Resource):
80
+ async def open(self, ctx: Context) -> None:
81
+ address = ctx.settings(ConnectionSettings).api_address
82
+ token = await ctx.secret("api_token")
83
+ self.remote = await Remote.connect(address, token)
84
+
85
+ async def close(self) -> None:
86
+ await self.remote.close()
87
+
88
+
89
+ class ConnectionPlugin(Plugin):
90
+ resources = (RemoteApi,)
91
+ settings = (ConnectionSettings,)
92
+ secrets = (Secret("api_token", "Remote API Token"),)
93
+ ```
94
+
95
+ Use `api = await ctx.resource(RemoteApi)` and
96
+ `timeout = ctx.settings(ConnectionSettings).dll_timeout`. A resource opens lazily
97
+ under a lock, once per activation. Resources close in reverse opening order when
98
+ activation ends, including failed initialization or finalization. An unsuccessful
99
+ `open` owns the cleanup of its partially initialized state.
100
+
101
+ Settings are synchronous, read-only activation snapshots loaded before initialization
102
+ and refreshed on Retry or restart. Field names are the host setting names, so names
103
+ across declared settings classes must be unique. `Setting.flag`, `integer`, `number`,
104
+ `text`, and `duration` use the library's typed defaults and inclusive numeric/duration
105
+ bounds. `choices=(...)` and `required=True` project into the library declaration and are enforced by the host.
106
+
107
+ ## Declarations
108
+
109
+ ```python
110
+ class ConnectionTestTemplate(TestTemplate):
111
+ serial = Parameter.text("Serial", required=True)
112
+ channels = Parameter.list("Channels", int, default=[1, 2], min_items=1, max_items=8)
113
+ mode = Parameter.text("Mode", choices=("fast", "slow"), default="fast")
114
+
115
+ @step("Connect")
116
+ async def connect(self, ctx):
117
+ serial = ctx.parameter(ConnectionTestTemplate.serial)
118
+
119
+
120
+ reading = record(int, identifier="reading")
121
+ Section("Readings").repeat(reading.field(), order_by=reading.field().max()).traceability()
122
+ time_series(field("measurement.samples", "value")).markers("reading")
123
+ ```
124
+
125
+ Import these authoring values from `dokime_sdk.templates`. Document record fields
126
+ require an explicit record identifier; the plugin qualifies record references and markers. Observer and window payloads preserve proto3 optional field presence, including explicit zero values.
127
+ Observers are plugin-owned classes. The library starts a fresh instance when sampling demand
128
+ begins and calls its optional `close()` when the last sampling scope stops. Templates select
129
+ classes in `uses_streams`; optional observer `plots` are placed explicitly in template documents.
130
+ An observer uses an operation context and may publish plugin records to the call's capturing executions.
131
+
132
+ ```python
133
+ from dokime_sdk.operations import Context
134
+ from dokime_sdk.templates import Observer, TestTemplate
135
+
136
+
137
+ class Temperature(Observer[float]):
138
+ row = float
139
+ interval_ms = 100
140
+
141
+ def sample(self, ctx: Context) -> float:
142
+ return 21.5
143
+
144
+
145
+ class Capture(TestTemplate):
146
+ uses_streams = (Temperature,)
147
+
148
+
149
+ class MeasurementsPlugin(Plugin):
150
+ observers = (Temperature,)
151
+ ```
152
+
153
+ The thermal example observer starts each sampling period at 23 °C and approaches
154
+ 84 °C with each granted sample, retaining its simulated temperature between calls.
155
+
156
+ For window sampling, declare `columns` on the observer and implement
157
+ `sample(self, ctx, window)`. Plugin publishers use `@stream` on plugin methods.
158
+ Typed subscriptions use `await ctx.subscribe(declaration, max_item_bytes=...)`.
159
+
160
+
161
+ Use `ended.time_since(began)` for elapsed-time document expressions between record
162
+ declarations. Binding qualifies both identifiers in the expression. Reference
163
+ lines and bands use the existing `plot.reference_line(...)` and
164
+ `plot.reference_band(...)` builders and are placed explicitly in sections.
165
+
166
+ Stop releases execution-scoped host waits normally. The current step finishes,
167
+ criteria evaluate, cleanup runs and the execution seals with `Termination.STOPPED`,
168
+ retaining streams and records. Author loops read `ctx.stop_requested`:
169
+
170
+ ```python
171
+ while not ctx.stop_requested:
172
+ await ctx.sleep(10)
173
+ ```
174
+
175
+ Cancel still aborts active work.
176
+
177
+ Handler exceptions become Permanent failures carrying their identity and exception text.
178
+ Declare a plugin-level failure mapper for application exceptions:
179
+
180
+ ```python
181
+ from dokime_sdk.operations import OperationError
182
+
183
+
184
+ def remote_failure(error: Exception) -> OperationError | None:
185
+ if isinstance(error, ConnectionError):
186
+ return OperationError("transient", message=str(error), action="Reconnect the Device")
187
+ return None
188
+
189
+
190
+ class ExamplePlugin(Plugin):
191
+ failure = remote_failure
192
+ ```
193
+
194
+ Structured `OperationError` values retain their classification and recovery action.
195
+ Declare shared records with `records = (EVENT,)`, where `EVENT = record(int, identifier="event")`.
196
+ Templates and observers write the same contract with `await ctx.record(EVENT, value)`.
197
+ An observer write reaches every execution capturing that call and no other execution.
198
+
199
+ Setting bounds are inclusive and use the default's value type. The library
200
+ validates defaults at host admission and every saved write:
201
+
202
+ ```python
203
+ from dokime_sdk.operations import Setting, Settings
204
+
205
+
206
+ class CaptureSettings(Settings):
207
+ sample_count: int = Setting.integer("Sample Count", default=10, min=0, max=100, description="Samples per Capture")
208
+ ```
209
+
210
+ ## Starter
211
+
212
+ [The starter](examples/starter/) contains one uv project with an installed
213
+ `src/starter_project/` package. `dokime new <name> --lang python` substitutes the
214
+ project name and its normalized Python package name. There are no root entry
215
+ scripts, argument parsing or shipped lockfile. The user's first `uv sync`
216
+ creates the lock.
217
+
218
+ ```sh
219
+ uv sync
220
+ uv run python -m unittest
221
+ uv run python -m starter_project.plugin
222
+ uv run python -m starter_project
223
+ ```
224
+
225
+ The starter calls `await plugin.serve()`. Launch credentials
226
+ (`HARMOS_HOST_ENDPOINT` and `HARMOS_LAUNCH_TOKEN`) select the library's authenticated
227
+ announcement; otherwise `DOKIME_REMOTE` selects self-registration, and an absent
228
+ remote selects standalone serving. These paths do not print readiness output.
229
+ Programmatic `client.plugins.register(plugin, address=...)` owns the listener.
230
+ Closing that client stops its listener and retains the host entry. Use
231
+ `unregister()` explicitly to remove an entry.
232
+
233
+ The plugin version comes from its
234
+ owning installed distribution, including editable installs; a class `version`
235
+ overrides that metadata. Source-only plugins must declare a class version.
236
+ The package module connects to the host,
237
+ registers the plugin, creates a cycle, materializes its template classes and runs
238
+ each execution. It prints progress and sealed outcomes, seals the cycle and
239
+ writes its evidence archive under `_output/`. Operator questions remain pending
240
+ until answered or the execution is stopped. Answer them in the desktop or with
241
+ `dokime execution prompt answer EXECUTION --action 0 --accepted`.
242
+ `dokime execution list --json` lists all cycles; each execution ID is at
243
+ `executions[i].summary.execution_id`. Add `--cycle CYCLE` to narrow the list.
244
+ `mise run test` checks the declared suites, template, steps, criterion
245
+ and operations without starting a product host.
246
+
247
+ Set `DOKIME_REMOTE` to an HTTP origin or `.pair` file in the process environment
248
+ or working-directory `.env`. Explicit connection arguments take precedence, then
249
+ the process environment, then `.env`. Listeners bind `127.0.0.1:0` unless a
250
+ programmatic registration call supplies an address. Keep secrets in Secret Storage.
251
+
252
+ ## Bound Client Flow
253
+
254
+ ```python
255
+ client = await connect(connect_timeout=30.0)
256
+ try:
257
+ await client.plugins.register(ExamplePlugin())
258
+ cycle = await client.cycle(label="Capture")
259
+ cases = await client.cases.materialize(ConfirmationTestTemplate)
260
+ for case in cases:
261
+ execution = await cycle.execution(case)
262
+ async for progress in execution.run():
263
+ print(progress.phase)
264
+ outcome = await execution.seal()
265
+ print(outcome.status == ResultStatus.PASSED)
266
+ await cycle.seal()
267
+ evidence = await cycle.evidence()
268
+ finally:
269
+ await client.close()
270
+ ```
271
+
272
+ A remote client holds no plugin classes: `await client.cases.templates()` lists the
273
+ host's catalog, and `client.cases.materialize(template.identifier, suite=template.suite)`
274
+ materializes one entry. [`examples/remote/rehearse.py`](examples/remote/rehearse.py)
275
+ runs one execution through a `.pair` file and saves its report and evidence:
276
+ `python rehearse.py lab.pair example.capture.confirmation --answer Yes`.
277
+ `await client.operation("example.echo", {"text": "Hello"})` calls any client-visible
278
+ operation by identifier with a dict in proto field names and returns its reply as a
279
+ dict; failures raise `OperationError`.
280
+
281
+ `execution.start()` and `execution.watch()` also remain available separately.
282
+ Closing a client stops its listeners, retains their host entries and closes its connection.
283
+ Registration waits for Ready and refuses unavailable or offline entries while releasing its listener.
284
+ Execution sealing and sealed progress require the corresponding host contract;
285
+ the SDK reports unsupported contracts explicitly.
286
+
287
+ ## Examples and Repository Proof
288
+
289
+ - [Starter](examples/starter/): confirmation suite, public echo operation and client flow.
290
+ - [Thermal](examples/thermal/): parameterized procedure, records, observers and window sampling.
291
+ - [Client](examples/client/src/client_example/__main__.py): browse bound cycle handles.
292
+
293
+ ```sh
294
+ mise -C sdk/python run prepare
295
+ mise -C sdk/python run format
296
+ mise -C sdk/python run check
297
+ mise -C sdk/python run test -- --layer unit
298
+ mise -C sdk/python run example-test
299
+ ```
300
+
301
+ The check task verifies formatting, lint, types, strict authored/generated stubs
302
+ and the three intentional public homes. Generated wire modules remain private
303
+ and tracked. Regenerate through the generation tasks; never edit them by hand.
304
+ Repository host stories live in `tests/system/`; their shared host support lives
305
+ in `tests/support/`. They require prepared host fixtures and are not shipped in
306
+ the starter. Fixture lookup reads the exported build artifacts for `TEST_PROFILE`,
307
+ using `dev` when unset; `DOKIME_TEST_HOST` selects a prepared host explicitly.
308
+ Installed-wheel and cross-language stories remain repository proof.
309
+
310
+ ## Plugin Lifecycle
311
+
312
+ Override `async def initialize(self, ctx: dokime_sdk.operations.Context) -> None`
313
+ and `async def finalize(self, ctx: dokime_sdk.operations.Context) -> None` on the
314
+ plugin class. The SDK encodes protected `<plugin>.initialize` and
315
+ `<plugin>.finalize` operations with empty payloads. Both contexts expose the author
316
+ instance through `ctx.plugin`; template initialize/cleanup retain execution scope.
@@ -0,0 +1,29 @@
1
+ # ***
2
+ #
3
+ # Dokime
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0
6
+ #
7
+ # ***
8
+
9
+ """Include the SDK License and Notice in Wheels."""
10
+
11
+ # === Imports === #
12
+
13
+ from pathlib import Path
14
+ from typing import Any
15
+
16
+ from hatchling.builders.hooks.plugin.interface import BuildHookInterface
17
+
18
+ # === Classes === #
19
+
20
+
21
+ class CustomBuildHook(BuildHookInterface):
22
+ def initialize(self, version: str, build_data: dict[str, Any]) -> None:
23
+ root = Path(self.root)
24
+ for name in ("LICENSE", "NOTICE"):
25
+ source = root / name if (root / name).is_file() else root.parents[1] / name
26
+ build_data["force_include"][str(source)] = f"dokime_sdk/{name}"
27
+
28
+
29
+ # === Entry Point === #