mova_agent 0.1.1

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 (287) hide show
  1. package/README.md +94 -0
  2. package/build/scripts/check_docs.d.ts +2 -0
  3. package/build/scripts/check_docs.d.ts.map +1 -0
  4. package/build/scripts/check_docs.js +48 -0
  5. package/build/scripts/check_docs.js.map +1 -0
  6. package/build/scripts/check_schema_paths.d.ts +3 -0
  7. package/build/scripts/check_schema_paths.d.ts.map +1 -0
  8. package/build/scripts/check_schema_paths.js +15 -0
  9. package/build/scripts/check_schema_paths.js.map +1 -0
  10. package/build/scripts/check_schema_paths_dist.d.ts +3 -0
  11. package/build/scripts/check_schema_paths_dist.d.ts.map +1 -0
  12. package/build/scripts/check_schema_paths_dist.js +16 -0
  13. package/build/scripts/check_schema_paths_dist.js.map +1 -0
  14. package/build/scripts/check_structure.d.ts +2 -0
  15. package/build/scripts/check_structure.d.ts.map +1 -0
  16. package/build/scripts/check_structure.js +59 -0
  17. package/build/scripts/check_structure.js.map +1 -0
  18. package/build/scripts/debug_validate.d.ts +3 -0
  19. package/build/scripts/debug_validate.d.ts.map +1 -0
  20. package/build/scripts/debug_validate.js +39 -0
  21. package/build/scripts/debug_validate.js.map +1 -0
  22. package/build/scripts/debug_validate2.d.ts +3 -0
  23. package/build/scripts/debug_validate2.d.ts.map +1 -0
  24. package/build/scripts/debug_validate2.js +18 -0
  25. package/build/scripts/debug_validate2.js.map +1 -0
  26. package/build/scripts/debug_validate_runtime.d.ts +3 -0
  27. package/build/scripts/debug_validate_runtime.d.ts.map +1 -0
  28. package/build/scripts/debug_validate_runtime.js +39 -0
  29. package/build/scripts/debug_validate_runtime.js.map +1 -0
  30. package/build/scripts/dump_ajv_schemas.d.ts +2 -0
  31. package/build/scripts/dump_ajv_schemas.d.ts.map +1 -0
  32. package/build/scripts/dump_ajv_schemas.js +22 -0
  33. package/build/scripts/dump_ajv_schemas.js.map +1 -0
  34. package/build/scripts/dump_resolved_schema.d.ts +3 -0
  35. package/build/scripts/dump_resolved_schema.d.ts.map +1 -0
  36. package/build/scripts/dump_resolved_schema.js +22 -0
  37. package/build/scripts/dump_resolved_schema.js.map +1 -0
  38. package/build/scripts/gen_types.d.ts +2 -0
  39. package/build/scripts/gen_types.d.ts.map +1 -0
  40. package/build/scripts/gen_types.js +133 -0
  41. package/build/scripts/gen_types.js.map +1 -0
  42. package/build/scripts/inspect_validation.d.ts +3 -0
  43. package/build/scripts/inspect_validation.d.ts.map +1 -0
  44. package/build/scripts/inspect_validation.js +36 -0
  45. package/build/scripts/inspect_validation.js.map +1 -0
  46. package/build/scripts/legacy/check_errors.d.ts +3 -0
  47. package/build/scripts/legacy/check_errors.d.ts.map +1 -0
  48. package/build/scripts/legacy/check_errors.js +14 -0
  49. package/build/scripts/legacy/check_errors.js.map +1 -0
  50. package/build/scripts/legacy/compile_test.d.ts +5 -0
  51. package/build/scripts/legacy/compile_test.d.ts.map +1 -0
  52. package/build/scripts/legacy/compile_test.js +25 -0
  53. package/build/scripts/legacy/compile_test.js.map +1 -0
  54. package/build/scripts/legacy/debug_neg.d.ts +6 -0
  55. package/build/scripts/legacy/debug_neg.d.ts.map +1 -0
  56. package/build/scripts/legacy/debug_neg.js +230 -0
  57. package/build/scripts/legacy/debug_neg.js.map +1 -0
  58. package/build/scripts/legacy/debug_quality_pos.d.ts +5 -0
  59. package/build/scripts/legacy/debug_quality_pos.d.ts.map +1 -0
  60. package/build/scripts/legacy/debug_quality_pos.js +195 -0
  61. package/build/scripts/legacy/debug_quality_pos.js.map +1 -0
  62. package/build/scripts/legacy/debug_test.d.ts +1 -0
  63. package/build/scripts/legacy/debug_test.d.ts.map +1 -0
  64. package/build/scripts/legacy/debug_test.js +51 -0
  65. package/build/scripts/legacy/debug_test.js.map +1 -0
  66. package/build/scripts/legacy/hello_test.d.ts +1 -0
  67. package/build/scripts/legacy/hello_test.d.ts.map +1 -0
  68. package/build/scripts/legacy/hello_test.js +3 -0
  69. package/build/scripts/legacy/hello_test.js.map +1 -0
  70. package/build/scripts/legacy/import_test.d.ts +2 -0
  71. package/build/scripts/legacy/import_test.d.ts.map +1 -0
  72. package/build/scripts/legacy/import_test.js +4 -0
  73. package/build/scripts/legacy/import_test.js.map +1 -0
  74. package/build/scripts/legacy/quality_neg.d.ts +6 -0
  75. package/build/scripts/legacy/quality_neg.d.ts.map +1 -0
  76. package/build/scripts/legacy/quality_neg.js +362 -0
  77. package/build/scripts/legacy/quality_neg.js.map +1 -0
  78. package/build/scripts/legacy/quality_pos.d.ts +7 -0
  79. package/build/scripts/legacy/quality_pos.d.ts.map +1 -0
  80. package/build/scripts/legacy/quality_pos.js +345 -0
  81. package/build/scripts/legacy/quality_pos.js.map +1 -0
  82. package/build/scripts/legacy/simple_test.d.ts +2 -0
  83. package/build/scripts/legacy/simple_test.d.ts.map +1 -0
  84. package/build/scripts/legacy/simple_test.js +4 -0
  85. package/build/scripts/legacy/simple_test.js.map +1 -0
  86. package/build/scripts/legacy/test.d.ts +1 -0
  87. package/build/scripts/legacy/test.d.ts.map +1 -0
  88. package/build/scripts/legacy/test.js +3 -0
  89. package/build/scripts/legacy/test.js.map +1 -0
  90. package/build/scripts/legacy/test_additional_props.d.ts +6 -0
  91. package/build/scripts/legacy/test_additional_props.d.ts.map +1 -0
  92. package/build/scripts/legacy/test_additional_props.js +45 -0
  93. package/build/scripts/legacy/test_additional_props.js.map +1 -0
  94. package/build/scripts/legacy/test_ajv_validation.d.ts +2 -0
  95. package/build/scripts/legacy/test_ajv_validation.d.ts.map +1 -0
  96. package/build/scripts/legacy/test_ajv_validation.js +35 -0
  97. package/build/scripts/legacy/test_ajv_validation.js.map +1 -0
  98. package/build/scripts/legacy/test_build.d.ts +2 -0
  99. package/build/scripts/legacy/test_build.d.ts.map +1 -0
  100. package/build/scripts/legacy/test_build.js +14 -0
  101. package/build/scripts/legacy/test_build.js.map +1 -0
  102. package/build/scripts/legacy/test_direct.d.ts +3 -0
  103. package/build/scripts/legacy/test_direct.d.ts.map +1 -0
  104. package/build/scripts/legacy/test_direct.js +24 -0
  105. package/build/scripts/legacy/test_direct.js.map +1 -0
  106. package/build/scripts/legacy/test_import.d.ts +2 -0
  107. package/build/scripts/legacy/test_import.d.ts.map +1 -0
  108. package/build/scripts/legacy/test_import.js +7 -0
  109. package/build/scripts/legacy/test_import.js.map +1 -0
  110. package/build/scripts/legacy/test_mova_schemas.d.ts +2 -0
  111. package/build/scripts/legacy/test_mova_schemas.d.ts.map +1 -0
  112. package/build/scripts/legacy/test_mova_schemas.js +37 -0
  113. package/build/scripts/legacy/test_mova_schemas.js.map +1 -0
  114. package/build/scripts/legacy/test_scenario_integration.d.ts +13 -0
  115. package/build/scripts/legacy/test_scenario_integration.d.ts.map +1 -0
  116. package/build/scripts/legacy/test_scenario_integration.js +156 -0
  117. package/build/scripts/legacy/test_scenario_integration.js.map +1 -0
  118. package/build/scripts/legacy/test_schemas.d.ts +2 -0
  119. package/build/scripts/legacy/test_schemas.d.ts.map +1 -0
  120. package/build/scripts/legacy/test_schemas.js +48 -0
  121. package/build/scripts/legacy/test_schemas.js.map +1 -0
  122. package/build/scripts/legacy/test_schemas_simple.d.ts +2 -0
  123. package/build/scripts/legacy/test_schemas_simple.d.ts.map +1 -0
  124. package/build/scripts/legacy/test_schemas_simple.js +36 -0
  125. package/build/scripts/legacy/test_schemas_simple.js.map +1 -0
  126. package/build/scripts/legacy/test_simple.d.ts +4 -0
  127. package/build/scripts/legacy/test_simple.d.ts.map +1 -0
  128. package/build/scripts/legacy/test_simple.js +17 -0
  129. package/build/scripts/legacy/test_simple.js.map +1 -0
  130. package/build/scripts/legacy/test_warnings.d.ts +6 -0
  131. package/build/scripts/legacy/test_warnings.d.ts.map +1 -0
  132. package/build/scripts/legacy/test_warnings.js +48 -0
  133. package/build/scripts/legacy/test_warnings.js.map +1 -0
  134. package/build/scripts/legacy/very_simple_test.d.ts +1 -0
  135. package/build/scripts/legacy/very_simple_test.d.ts.map +1 -0
  136. package/build/scripts/legacy/very_simple_test.js +3 -0
  137. package/build/scripts/legacy/very_simple_test.js.map +1 -0
  138. package/build/scripts/merge_and_validate.d.ts +6 -0
  139. package/build/scripts/merge_and_validate.d.ts.map +1 -0
  140. package/build/scripts/merge_and_validate.js +53 -0
  141. package/build/scripts/merge_and_validate.js.map +1 -0
  142. package/build/src/ajv/ajv_loader.d.ts +47 -0
  143. package/build/src/ajv/ajv_loader.d.ts.map +1 -0
  144. package/build/src/ajv/ajv_loader.js +274 -0
  145. package/build/src/ajv/ajv_loader.js.map +1 -0
  146. package/build/src/ajv/schema_registry.d.ts +19 -0
  147. package/build/src/ajv/schema_registry.d.ts.map +1 -0
  148. package/build/src/ajv/schema_registry.js +121 -0
  149. package/build/src/ajv/schema_registry.js.map +1 -0
  150. package/build/src/drivers/__tests__/registry.test.d.ts +2 -0
  151. package/build/src/drivers/__tests__/registry.test.d.ts.map +1 -0
  152. package/build/src/drivers/__tests__/registry.test.js +100 -0
  153. package/build/src/drivers/__tests__/registry.test.js.map +1 -0
  154. package/build/src/drivers/httpDriver.d.ts +3 -0
  155. package/build/src/drivers/httpDriver.d.ts.map +1 -0
  156. package/build/src/drivers/httpDriver.js +76 -0
  157. package/build/src/drivers/httpDriver.js.map +1 -0
  158. package/build/src/drivers/index.d.ts +20 -0
  159. package/build/src/drivers/index.d.ts.map +1 -0
  160. package/build/src/drivers/index.js +33 -0
  161. package/build/src/drivers/index.js.map +1 -0
  162. package/build/src/drivers/restrictedShellDriver.d.ts +12 -0
  163. package/build/src/drivers/restrictedShellDriver.d.ts.map +1 -0
  164. package/build/src/drivers/restrictedShellDriver.js +88 -0
  165. package/build/src/drivers/restrictedShellDriver.js.map +1 -0
  166. package/build/src/episodes/__tests__/episode_writer_atomic.test.d.ts +2 -0
  167. package/build/src/episodes/__tests__/episode_writer_atomic.test.d.ts.map +1 -0
  168. package/build/src/episodes/__tests__/episode_writer_atomic.test.js +86 -0
  169. package/build/src/episodes/__tests__/episode_writer_atomic.test.js.map +1 -0
  170. package/build/src/episodes/episode_writer.d.ts +100 -0
  171. package/build/src/episodes/episode_writer.d.ts.map +1 -0
  172. package/build/src/episodes/episode_writer.js +503 -0
  173. package/build/src/episodes/episode_writer.js.map +1 -0
  174. package/build/src/episodes/episode_writer_atomic.d.ts +10 -0
  175. package/build/src/episodes/episode_writer_atomic.d.ts.map +1 -0
  176. package/build/src/episodes/episode_writer_atomic.js +46 -0
  177. package/build/src/episodes/episode_writer_atomic.js.map +1 -0
  178. package/build/src/evidence/evidence_writer.d.ts +16 -0
  179. package/build/src/evidence/evidence_writer.d.ts.map +1 -0
  180. package/build/src/evidence/evidence_writer.js +78 -0
  181. package/build/src/evidence/evidence_writer.js.map +1 -0
  182. package/build/src/handlers/registry.d.ts +20 -0
  183. package/build/src/handlers/registry.d.ts.map +1 -0
  184. package/build/src/handlers/registry.js +38 -0
  185. package/build/src/handlers/registry.js.map +1 -0
  186. package/build/src/interpreter/interpreter.d.ts +90 -0
  187. package/build/src/interpreter/interpreter.d.ts.map +1 -0
  188. package/build/src/interpreter/interpreter.js +732 -0
  189. package/build/src/interpreter/interpreter.js.map +1 -0
  190. package/build/src/interpreter/interpreter_with_budget.d.ts +92 -0
  191. package/build/src/interpreter/interpreter_with_budget.d.ts.map +1 -0
  192. package/build/src/interpreter/interpreter_with_budget.js +678 -0
  193. package/build/src/interpreter/interpreter_with_budget.js.map +1 -0
  194. package/build/src/logging/logger.d.ts +83 -0
  195. package/build/src/logging/logger.d.ts.map +1 -0
  196. package/build/src/logging/logger.js +226 -0
  197. package/build/src/logging/logger.js.map +1 -0
  198. package/build/src/policy/policy_engine.d.ts +116 -0
  199. package/build/src/policy/policy_engine.d.ts.map +1 -0
  200. package/build/src/policy/policy_engine.js +296 -0
  201. package/build/src/policy/policy_engine.js.map +1 -0
  202. package/build/src/skills/skills_layer.d.ts +94 -0
  203. package/build/src/skills/skills_layer.d.ts.map +1 -0
  204. package/build/src/skills/skills_layer.js +405 -0
  205. package/build/src/skills/skills_layer.js.map +1 -0
  206. package/build/src/telemetry/token_budget_enforcer.d.ts +113 -0
  207. package/build/src/telemetry/token_budget_enforcer.d.ts.map +1 -0
  208. package/build/src/telemetry/token_budget_enforcer.js +253 -0
  209. package/build/src/telemetry/token_budget_enforcer.js.map +1 -0
  210. package/build/src/telemetry/token_budget_loader.d.ts +29 -0
  211. package/build/src/telemetry/token_budget_loader.d.ts.map +1 -0
  212. package/build/src/telemetry/token_budget_loader.js +112 -0
  213. package/build/src/telemetry/token_budget_loader.js.map +1 -0
  214. package/build/src/telemetry/token_meter.d.ts +65 -0
  215. package/build/src/telemetry/token_meter.d.ts.map +1 -0
  216. package/build/src/telemetry/token_meter.js +153 -0
  217. package/build/src/telemetry/token_meter.js.map +1 -0
  218. package/build/src/ux/cli_interface.d.ts +85 -0
  219. package/build/src/ux/cli_interface.d.ts.map +1 -0
  220. package/build/src/ux/cli_interface.js +651 -0
  221. package/build/src/ux/cli_interface.js.map +1 -0
  222. package/build/test/drivers/registry.test.d.ts +2 -0
  223. package/build/test/drivers/registry.test.d.ts.map +1 -0
  224. package/build/test/drivers/registry.test.js +100 -0
  225. package/build/test/drivers/registry.test.js.map +1 -0
  226. package/build/test/episodes/episode_writer_atomic.test.d.ts +2 -0
  227. package/build/test/episodes/episode_writer_atomic.test.d.ts.map +1 -0
  228. package/build/test/episodes/episode_writer_atomic.test.js +86 -0
  229. package/build/test/episodes/episode_writer_atomic.test.js.map +1 -0
  230. package/build/tests/ajv/check_schemas.d.ts +4 -0
  231. package/build/tests/ajv/check_schemas.d.ts.map +1 -0
  232. package/build/tests/ajv/check_schemas.js +27 -0
  233. package/build/tests/ajv/check_schemas.js.map +1 -0
  234. package/build/tests/ajv/final_test.d.ts +2 -0
  235. package/build/tests/ajv/final_test.d.ts.map +1 -0
  236. package/build/tests/ajv/final_test.js +42 -0
  237. package/build/tests/ajv/final_test.js.map +1 -0
  238. package/build/tests/ajv/simple_test.d.ts +2 -0
  239. package/build/tests/ajv/simple_test.d.ts.map +1 -0
  240. package/build/tests/ajv/simple_test.js +40 -0
  241. package/build/tests/ajv/simple_test.js.map +1 -0
  242. package/build/tests/ajv/test_schema_loading.d.ts +2 -0
  243. package/build/tests/ajv/test_schema_loading.d.ts.map +1 -0
  244. package/build/tests/ajv/test_schema_loading.js +39 -0
  245. package/build/tests/ajv/test_schema_loading.js.map +1 -0
  246. package/build/tools/mova-agent.d.ts +2 -0
  247. package/build/tools/mova-agent.d.ts.map +1 -0
  248. package/build/tools/mova-agent.js +15 -0
  249. package/build/tools/mova-agent.js.map +1 -0
  250. package/package.json +63 -0
  251. package/src/ajv/ajv_loader.ts +311 -0
  252. package/src/ajv/schema_registry.ts +92 -0
  253. package/src/drivers/httpDriver.ts +90 -0
  254. package/src/drivers/index.ts +48 -0
  255. package/src/drivers/restrictedShellDriver.ts +68 -0
  256. package/src/episodes/episode_writer.ts +675 -0
  257. package/src/episodes/episode_writer_atomic.ts +44 -0
  258. package/src/evidence/evidence_writer.ts +74 -0
  259. package/src/handlers/registry.ts +53 -0
  260. package/src/interpreter/interpreter.ts +1009 -0
  261. package/src/interpreter/interpreter_with_budget.ts +923 -0
  262. package/src/logging/logger.ts +269 -0
  263. package/src/policy/policy_engine.ts +395 -0
  264. package/src/skills/skills_layer.ts +510 -0
  265. package/src/telemetry/token_budget_enforcer.ts +338 -0
  266. package/src/telemetry/token_budget_loader.ts +133 -0
  267. package/src/telemetry/token_meter.ts +185 -0
  268. package/src/types/generated/ds.connector_core_v1.d.ts +116 -0
  269. package/src/types/generated/ds.instruction_profile_core_v1.d.ts +141 -0
  270. package/src/types/generated/ds.mova4_core_catalog_v1.d.ts +80 -0
  271. package/src/types/generated/ds.mova_agent_run_summary_v1.d.ts +120 -0
  272. package/src/types/generated/ds.mova_agent_step_v1.d.ts +53 -0
  273. package/src/types/generated/ds.mova_agent_tool_pool_v1.d.ts +152 -0
  274. package/src/types/generated/ds.mova_agent_validation_report_v1.d.ts +43 -0
  275. package/src/types/generated/ds.mova_episode_core_v1.d.ts +56 -0
  276. package/src/types/generated/ds.mova_schema_core_v1.d.ts +49 -0
  277. package/src/types/generated/ds.mova_token_budget_contract_v0.d.ts +140 -0
  278. package/src/types/generated/ds.runtime_binding_core_v1.d.ts +112 -0
  279. package/src/types/generated/ds.security_event_episode_core_v1.d.ts +138 -0
  280. package/src/types/generated/ds.ui_text_bundle_core_v1.d.ts +118 -0
  281. package/src/types/generated/env.instruction_profile_publish_v1.d.ts +159 -0
  282. package/src/types/generated/env.mova4_core_catalog_publish_v1.d.ts +25 -0
  283. package/src/types/generated/env.mova_agent_plan_v1.d.ts +40 -0
  284. package/src/types/generated/env.mova_agent_request_v1.d.ts +43 -0
  285. package/src/types/generated/env.security_event_store_v1.d.ts +191 -0
  286. package/src/types/generated/index.d.ts +25 -0
  287. package/src/ux/cli_interface.ts +719 -0
@@ -0,0 +1,116 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * This file was automatically generated by scripts/gen_types.ts.
5
+ * Do not edit manually. Update JSON Schemas and rerun npm run gen:types.
6
+ */
7
+
8
+ /**
9
+ * Core neutral schema for describing a connector to an external system (API, service, data source) without vendor-locked details.
10
+ */
11
+ export type DsConnectorCoreV1 = DsMovaSchemaCoreV1 & {
12
+ /**
13
+ * Canonical id of the connector, e.g. connector_core:http_generic, connector_openai:chat.
14
+ */
15
+ connector_id: string;
16
+ /**
17
+ * Provider name or domain, e.g. openai, google, anthrophic, internal.
18
+ */
19
+ provider: string;
20
+ /**
21
+ * Target resource or service name, e.g. chat, embeddings, calendar, sheets.
22
+ */
23
+ resource: string;
24
+ /**
25
+ * Underlying protocol, e.g. http, https, grpc, custom.
26
+ */
27
+ protocol: string;
28
+ /**
29
+ * Supported authentication methods for this connector.
30
+ */
31
+ auth_methods?: {
32
+ /**
33
+ * Auth type.
34
+ */
35
+ type: 'none' | 'api_key' | 'oauth2' | 'jwt' | 'basic' | 'other';
36
+ /**
37
+ * Human-readable description of how this auth method is used.
38
+ */
39
+ description?: string;
40
+ [k: string]: unknown;
41
+ }[];
42
+ /**
43
+ * Optional description of rate limiting behavior for this connector.
44
+ */
45
+ rate_limits?: {
46
+ /**
47
+ * Human-readable hint, e.g. 60 rpm per API key.
48
+ */
49
+ global_limit_hint?: string;
50
+ /**
51
+ * Optional per-user/per-token hint.
52
+ */
53
+ per_user_limit_hint?: string;
54
+ [k: string]: unknown;
55
+ };
56
+ /**
57
+ * Optional description of pagination behavior.
58
+ */
59
+ pagination?: {
60
+ /**
61
+ * Pagination style, e.g. cursor, offset, token, none.
62
+ */
63
+ style?: string;
64
+ [k: string]: unknown;
65
+ };
66
+ /**
67
+ * Optional description of error shape or mapping for this connector.
68
+ */
69
+ error_contract?: {
70
+ [k: string]: unknown;
71
+ };
72
+ [k: string]: unknown;
73
+ };
74
+
75
+ /**
76
+ * Core form for MOVA data schemas (ds.*) instances: common service fields schema_id, schema_version, meta, ext.
77
+ */
78
+ export interface DsMovaSchemaCoreV1 {
79
+ /**
80
+ * Canonical schema id for this data record, e.g. ds.smartlink_config_v1. Recommended but optional.
81
+ */
82
+ schema_id?: string;
83
+ /**
84
+ * Version of the schema used when this record was produced, e.g. 1 or 1.0.0.
85
+ */
86
+ schema_version?: string;
87
+ /**
88
+ * Human- and operator-oriented metadata: title, description, tags, notes. Must not contain execution instructions for LLMs.
89
+ */
90
+ meta?: {
91
+ /**
92
+ * Short human-readable title of this record.
93
+ */
94
+ title?: string;
95
+ /**
96
+ * Longer human-readable description or notes.
97
+ */
98
+ description?: string;
99
+ /**
100
+ * Optional list of tags for searching and grouping.
101
+ */
102
+ tags?: string[];
103
+ /**
104
+ * IETF language tag describing primary human language of title/description, e.g. uk, en, de.
105
+ */
106
+ lang?: string;
107
+ [k: string]: unknown;
108
+ };
109
+ /**
110
+ * Machine-oriented extensions: technical flags, computed hints, links to external systems. Must not contain LLM instructions.
111
+ */
112
+ ext?: {
113
+ [k: string]: unknown;
114
+ };
115
+ [k: string]: unknown;
116
+ }
@@ -0,0 +1,141 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * This file was automatically generated by scripts/gen_types.ts.
5
+ * Do not edit manually. Update JSON Schemas and rerun npm run gen:types.
6
+ */
7
+
8
+ /**
9
+ * Core schema for MOVA instruction profiles: describes how instructions and guardrails apply to executors, roles and envelopes.
10
+ */
11
+ export type DsInstructionProfileCoreV1 = DsMovaSchemaCoreV1 & {
12
+ /**
13
+ * Canonical id of this instruction profile, e.g. mova_security_default_v1. For security profiles, should match an id from global.security_catalog_v1.security_policy_profile[*].id.
14
+ */
15
+ profile_id: string;
16
+ /**
17
+ * Version of this instruction profile, e.g. 1.0.0.
18
+ */
19
+ profile_version?: string;
20
+ /**
21
+ * Short human-readable label for this profile.
22
+ */
23
+ label?: string;
24
+ /**
25
+ * Version of the MOVA security model this profile was authored for, e.g. 1.0.0. Should match the security_model_version from the corresponding security policy profile in global.security_catalog_v1.
26
+ */
27
+ security_model_version: string;
28
+ /**
29
+ * Lifecycle status of this profile.
30
+ */
31
+ status: 'draft' | 'active' | 'deprecated';
32
+ /**
33
+ * Scope where this instruction profile should be applied.
34
+ */
35
+ applies_to?: {
36
+ /**
37
+ * Kinds of executors this profile targets.
38
+ */
39
+ executor_kinds?: ('human' | 'ai_model' | 'service' | 'tool' | 'hybrid' | 'other')[];
40
+ /**
41
+ * Executor roles this profile applies to (e.g. agent, reviewer, router).
42
+ */
43
+ roles?: string[];
44
+ /**
45
+ * Envelope ids (env.*) this profile applies to.
46
+ */
47
+ envelope_ids?: string[];
48
+ /**
49
+ * Data type ids (ds.*) this profile applies to.
50
+ */
51
+ data_types?: string[];
52
+ /**
53
+ * Free-form tags for grouping and routing.
54
+ */
55
+ tags?: string[];
56
+ };
57
+ /**
58
+ * Guardrail rules describing allowed/denied behaviours. Rules describe policy; they must not contain direct execution prompts for LLMs.
59
+ */
60
+ rules?: {
61
+ /**
62
+ * Identifier of the rule within this profile.
63
+ */
64
+ rule_id: string;
65
+ /**
66
+ * Human-readable description of the rule (policy statement, not an executable prompt).
67
+ */
68
+ description?: string;
69
+ /**
70
+ * Intended effect of this rule.
71
+ */
72
+ effect: 'allow' | 'deny' | 'warn' | 'log_only' | 'transform';
73
+ /**
74
+ * What this rule applies to.
75
+ */
76
+ target?: {
77
+ /**
78
+ * Target kind, e.g. instruction, tool, endpoint, data_scope, conversation, code_exec, network.
79
+ */
80
+ kind: string;
81
+ /**
82
+ * Selector expression used by the runtime (e.g. tag, pattern or other domain-specific reference).
83
+ */
84
+ selector?: string;
85
+ [k: string]: unknown;
86
+ };
87
+ /**
88
+ * Severity if this rule is violated.
89
+ */
90
+ severity?: 'info' | 'low' | 'medium' | 'high' | 'critical';
91
+ /**
92
+ * Recommended actions when this rule is violated.
93
+ */
94
+ on_violation?: string[];
95
+ [k: string]: unknown;
96
+ }[];
97
+ [k: string]: unknown;
98
+ };
99
+
100
+ /**
101
+ * Core form for MOVA data schemas (ds.*) instances: common service fields schema_id, schema_version, meta, ext.
102
+ */
103
+ export interface DsMovaSchemaCoreV1 {
104
+ /**
105
+ * Canonical schema id for this data record, e.g. ds.smartlink_config_v1. Recommended but optional.
106
+ */
107
+ schema_id?: string;
108
+ /**
109
+ * Version of the schema used when this record was produced, e.g. 1 or 1.0.0.
110
+ */
111
+ schema_version?: string;
112
+ /**
113
+ * Human- and operator-oriented metadata: title, description, tags, notes. Must not contain execution instructions for LLMs.
114
+ */
115
+ meta?: {
116
+ /**
117
+ * Short human-readable title of this record.
118
+ */
119
+ title?: string;
120
+ /**
121
+ * Longer human-readable description or notes.
122
+ */
123
+ description?: string;
124
+ /**
125
+ * Optional list of tags for searching and grouping.
126
+ */
127
+ tags?: string[];
128
+ /**
129
+ * IETF language tag describing primary human language of title/description, e.g. uk, en, de.
130
+ */
131
+ lang?: string;
132
+ [k: string]: unknown;
133
+ };
134
+ /**
135
+ * Machine-oriented extensions: technical flags, computed hints, links to external systems. Must not contain LLM instructions.
136
+ */
137
+ ext?: {
138
+ [k: string]: unknown;
139
+ };
140
+ [k: string]: unknown;
141
+ }
@@ -0,0 +1,80 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * This file was automatically generated by scripts/gen_types.ts.
5
+ * Do not edit manually. Update JSON Schemas and rerun npm run gen:types.
6
+ */
7
+
8
+ /**
9
+ * Meta-schema for describing MOVA red-core data types, verbs, envelopes and episode types in a single catalog document (no domain-specific schemas).
10
+ */
11
+ export interface MOVA411CoreCatalogMetaSchema {
12
+ /**
13
+ * Version of this MOVA core catalog document.
14
+ */
15
+ version: string;
16
+ /**
17
+ * List of MOVA data type definitions (ds.*).
18
+ */
19
+ data_types?: {
20
+ /**
21
+ * Canonical id, e.g. ds.mova_schema_core_v1
22
+ */
23
+ id: string;
24
+ title?: string;
25
+ description?: string;
26
+ /**
27
+ * URL or path to the JSON Schema implementing this data type.
28
+ */
29
+ schema_ref: string;
30
+ [k: string]: unknown;
31
+ }[];
32
+ /**
33
+ * Canonical verb definitions.
34
+ */
35
+ verbs?: {
36
+ /**
37
+ * Verb id, e.g. create, update, route
38
+ */
39
+ id: string;
40
+ description?: string;
41
+ }[];
42
+ /**
43
+ * Envelope definitions (env.*).
44
+ */
45
+ envelopes?: {
46
+ /**
47
+ * Canonical id, e.g. env.mova4_core_catalog_publish_v1
48
+ */
49
+ id: string;
50
+ /**
51
+ * Referenced verb id.
52
+ */
53
+ verb: string;
54
+ description?: string;
55
+ /**
56
+ * Referenced data type ids used as inputs.
57
+ */
58
+ input_types?: string[];
59
+ /**
60
+ * Referenced data type ids used as outputs.
61
+ */
62
+ output_types?: string[];
63
+ [k: string]: unknown;
64
+ }[];
65
+ /**
66
+ * Episode type definitions.
67
+ */
68
+ episode_types?: {
69
+ /**
70
+ * Canonical id, e.g. ds.security_event_episode_core_v1
71
+ */
72
+ id: string;
73
+ description?: string;
74
+ /**
75
+ * URL or path to the JSON Schema implementing this episode type.
76
+ */
77
+ schema_ref: string;
78
+ [k: string]: unknown;
79
+ }[];
80
+ }
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * This file was automatically generated by scripts/gen_types.ts.
5
+ * Do not edit manually. Update JSON Schemas and rerun npm run gen:types.
6
+ */
7
+
8
+ /**
9
+ * Summary of a MOVA agent run execution
10
+ */
11
+ export interface DsMovaAgentRunSummaryV1 {
12
+ /**
13
+ * Unique identifier for this run
14
+ */
15
+ run_id: string;
16
+ /**
17
+ * Identifier of the original request
18
+ */
19
+ request_id: string;
20
+ /**
21
+ * Overall execution status
22
+ */
23
+ status: 'success' | 'failure' | 'partial_success' | 'cancelled' | 'timeout';
24
+ /**
25
+ * Start time of the run
26
+ */
27
+ timestamp_start: string;
28
+ /**
29
+ * End time of the run
30
+ */
31
+ timestamp_end: string;
32
+ /**
33
+ * Number of steps executed
34
+ */
35
+ steps_executed: number;
36
+ /**
37
+ * Number of successful steps
38
+ */
39
+ steps_successful?: number;
40
+ /**
41
+ * Number of failed steps
42
+ */
43
+ steps_failed?: number;
44
+ /**
45
+ * Total duration in milliseconds
46
+ */
47
+ total_duration_ms?: number;
48
+ /**
49
+ * Brief summary of any errors that occurred
50
+ */
51
+ error_summary?: string;
52
+ /**
53
+ * Token budget contract applied to this run
54
+ */
55
+ token_budget?: {
56
+ /**
57
+ * Version of the token budget contract
58
+ */
59
+ contract_version?: string;
60
+ /**
61
+ * Policy for handling budget exceedances
62
+ */
63
+ policy?: 'fail' | 'warn' | 'truncate_and_continue';
64
+ /**
65
+ * Token and resource limits
66
+ */
67
+ limits?: {
68
+ max_model_calls?: number;
69
+ max_input_tokens?: number;
70
+ max_output_tokens?: number;
71
+ max_total_tokens?: number;
72
+ max_output_tokens_per_call?: number;
73
+ max_total_cost_usd?: number;
74
+ max_tool_calls?: number;
75
+ max_tool_output_bytes_total?: number;
76
+ max_stdout_bytes?: number;
77
+ max_stderr_bytes?: number;
78
+ [k: string]: unknown;
79
+ };
80
+ [k: string]: unknown;
81
+ };
82
+ /**
83
+ * Token usage summary for this run
84
+ */
85
+ token_usage?: {
86
+ total_input_tokens?: number;
87
+ total_output_tokens?: number;
88
+ total_tokens?: number;
89
+ total_cost_usd?: number;
90
+ call_count?: number;
91
+ usage_available?: boolean;
92
+ per_call_summary?: {
93
+ input_tokens?: number;
94
+ output_tokens?: number;
95
+ total_tokens?: number;
96
+ cost_usd?: number;
97
+ provider?: string;
98
+ model?: string;
99
+ timestamp?: string;
100
+ note?: string;
101
+ [k: string]: unknown;
102
+ }[];
103
+ [k: string]: unknown;
104
+ };
105
+ /**
106
+ * Overall budget compliance status
107
+ */
108
+ budget_status?: 'passed' | 'warned' | 'failed';
109
+ /**
110
+ * List of budget violations
111
+ */
112
+ budget_violations?: {
113
+ type?: string;
114
+ limit?: number | string;
115
+ actual?: number | string;
116
+ message?: string;
117
+ [k: string]: unknown;
118
+ }[];
119
+ [k: string]: unknown;
120
+ }
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * This file was automatically generated by scripts/gen_types.ts.
5
+ * Do not edit manually. Update JSON Schemas and rerun npm run gen:types.
6
+ */
7
+
8
+ /**
9
+ * A single step in a MOVA agent plan
10
+ */
11
+ export interface DsMovaAgentStepV1 {
12
+ /**
13
+ * Unique identifier for this step
14
+ */
15
+ id: string;
16
+ /**
17
+ * Canonical MOVA verb type
18
+ */
19
+ verb: string;
20
+ /**
21
+ * ID of the connector to use
22
+ */
23
+ connector_id: string;
24
+ /**
25
+ * Input data for the step
26
+ */
27
+ input?: {
28
+ [k: string]: unknown;
29
+ };
30
+ /**
31
+ * Reference to output from a prior step
32
+ */
33
+ input_from?: {
34
+ /**
35
+ * ID of the step to get input from
36
+ */
37
+ step_id?: string;
38
+ /**
39
+ * Path to extract data from the referenced step's output
40
+ */
41
+ path?: string;
42
+ [k: string]: unknown;
43
+ };
44
+ /**
45
+ * Reference to expected output schema
46
+ */
47
+ expected_output_schema_ref?: string;
48
+ /**
49
+ * Error handling strategy for this step
50
+ */
51
+ on_error?: 'fatal' | 'soft';
52
+ [k: string]: unknown;
53
+ }
@@ -0,0 +1,152 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * This file was automatically generated by scripts/gen_types.ts.
5
+ * Do not edit manually. Update JSON Schemas and rerun npm run gen:types.
6
+ */
7
+
8
+ /**
9
+ * Core neutral schema for describing a connector to an external system (API, service, data source) without vendor-locked details.
10
+ */
11
+ export type DsConnectorCoreV1 = DsMovaSchemaCoreV1 & {
12
+ /**
13
+ * Canonical id of the connector, e.g. connector_core:http_generic, connector_openai:chat.
14
+ */
15
+ connector_id: string;
16
+ /**
17
+ * Provider name or domain, e.g. openai, google, anthrophic, internal.
18
+ */
19
+ provider: string;
20
+ /**
21
+ * Target resource or service name, e.g. chat, embeddings, calendar, sheets.
22
+ */
23
+ resource: string;
24
+ /**
25
+ * Underlying protocol, e.g. http, https, grpc, custom.
26
+ */
27
+ protocol: string;
28
+ /**
29
+ * Supported authentication methods for this connector.
30
+ */
31
+ auth_methods?: {
32
+ /**
33
+ * Auth type.
34
+ */
35
+ type: 'none' | 'api_key' | 'oauth2' | 'jwt' | 'basic' | 'other';
36
+ /**
37
+ * Human-readable description of how this auth method is used.
38
+ */
39
+ description?: string;
40
+ [k: string]: unknown;
41
+ }[];
42
+ /**
43
+ * Optional description of rate limiting behavior for this connector.
44
+ */
45
+ rate_limits?: {
46
+ /**
47
+ * Human-readable hint, e.g. 60 rpm per API key.
48
+ */
49
+ global_limit_hint?: string;
50
+ /**
51
+ * Optional per-user/per-token hint.
52
+ */
53
+ per_user_limit_hint?: string;
54
+ [k: string]: unknown;
55
+ };
56
+ /**
57
+ * Optional description of pagination behavior.
58
+ */
59
+ pagination?: {
60
+ /**
61
+ * Pagination style, e.g. cursor, offset, token, none.
62
+ */
63
+ style?: string;
64
+ [k: string]: unknown;
65
+ };
66
+ /**
67
+ * Optional description of error shape or mapping for this connector.
68
+ */
69
+ error_contract?: {
70
+ [k: string]: unknown;
71
+ };
72
+ [k: string]: unknown;
73
+ };
74
+
75
+ /**
76
+ * Allowlist menu of tools with connector contracts and infra bindings
77
+ */
78
+ export interface DsMovaAgentToolPoolV1 {
79
+ tools: {
80
+ /**
81
+ * Unique identifier for this tool
82
+ */
83
+ id: string;
84
+ connector: DsConnectorCoreV1;
85
+ binding: {
86
+ /**
87
+ * Type of handler to use
88
+ */
89
+ driver_kind: 'noop' | 'http' | 'restricted_shell' | 'mcp_proxy';
90
+ /**
91
+ * List of allowed destinations for this binding
92
+ */
93
+ destination_allowlist?: string[];
94
+ limits?: {
95
+ timeout_ms?: number;
96
+ max_data_size?: number;
97
+ [k: string]: unknown;
98
+ };
99
+ /**
100
+ * References to input/output schemas for validation
101
+ */
102
+ schema_refs?: {
103
+ [k: string]: unknown;
104
+ };
105
+ [k: string]: unknown;
106
+ };
107
+ [k: string]: unknown;
108
+ }[];
109
+ [k: string]: unknown;
110
+ }
111
+ /**
112
+ * Core form for MOVA data schemas (ds.*) instances: common service fields schema_id, schema_version, meta, ext.
113
+ */
114
+ export interface DsMovaSchemaCoreV1 {
115
+ /**
116
+ * Canonical schema id for this data record, e.g. ds.smartlink_config_v1. Recommended but optional.
117
+ */
118
+ schema_id?: string;
119
+ /**
120
+ * Version of the schema used when this record was produced, e.g. 1 or 1.0.0.
121
+ */
122
+ schema_version?: string;
123
+ /**
124
+ * Human- and operator-oriented metadata: title, description, tags, notes. Must not contain execution instructions for LLMs.
125
+ */
126
+ meta?: {
127
+ /**
128
+ * Short human-readable title of this record.
129
+ */
130
+ title?: string;
131
+ /**
132
+ * Longer human-readable description or notes.
133
+ */
134
+ description?: string;
135
+ /**
136
+ * Optional list of tags for searching and grouping.
137
+ */
138
+ tags?: string[];
139
+ /**
140
+ * IETF language tag describing primary human language of title/description, e.g. uk, en, de.
141
+ */
142
+ lang?: string;
143
+ [k: string]: unknown;
144
+ };
145
+ /**
146
+ * Machine-oriented extensions: technical flags, computed hints, links to external systems. Must not contain LLM instructions.
147
+ */
148
+ ext?: {
149
+ [k: string]: unknown;
150
+ };
151
+ [k: string]: unknown;
152
+ }
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * This file was automatically generated by scripts/gen_types.ts.
5
+ * Do not edit manually. Update JSON Schemas and rerun npm run gen:types.
6
+ */
7
+
8
+ /**
9
+ * Report of validation results for a plan or other artifact
10
+ */
11
+ export interface DsMovaAgentValidationReportV1 {
12
+ /**
13
+ * Reference to the validated artifact
14
+ */
15
+ artifact_ref: string;
16
+ /**
17
+ * Time when validation was performed
18
+ */
19
+ validation_timestamp: string;
20
+ /**
21
+ * Whether the artifact passed validation
22
+ */
23
+ valid: boolean;
24
+ results: {
25
+ type: 'error' | 'warning' | 'info';
26
+ /**
27
+ * Description of the validation result
28
+ */
29
+ message: string;
30
+ /**
31
+ * JSON path to the element that generated this result
32
+ */
33
+ path?: string;
34
+ /**
35
+ * Additional context about the validation result
36
+ */
37
+ context?: {
38
+ [k: string]: unknown;
39
+ };
40
+ [k: string]: unknown;
41
+ }[];
42
+ [k: string]: unknown;
43
+ }