@dharta/cli 0.6.77 → 0.6.78

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 (293) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +215 -11
  3. package/dist/agent.js +3 -2
  4. package/dist/agent.js.map +1 -1
  5. package/dist/api-error.js +6 -6
  6. package/dist/api-error.js.map +1 -1
  7. package/dist/cli.d.ts +3 -0
  8. package/dist/cli.js +860 -149
  9. package/dist/cli.js.map +1 -1
  10. package/dist/command-tree.d.ts +3 -0
  11. package/dist/command-tree.js +10 -0
  12. package/dist/command-tree.js.map +1 -0
  13. package/dist/commands/agents.d.ts +54 -17
  14. package/dist/commands/agents.js +246 -136
  15. package/dist/commands/agents.js.map +1 -1
  16. package/dist/commands/analytics.js +6 -5
  17. package/dist/commands/analytics.js.map +1 -1
  18. package/dist/commands/api.js +71 -86
  19. package/dist/commands/api.js.map +1 -1
  20. package/dist/commands/appearance.js +5 -6
  21. package/dist/commands/appearance.js.map +1 -1
  22. package/dist/commands/artifact.js +7 -6
  23. package/dist/commands/artifact.js.map +1 -1
  24. package/dist/commands/audit-log.js +2 -1
  25. package/dist/commands/audit-log.js.map +1 -1
  26. package/dist/commands/auth.js +26 -6
  27. package/dist/commands/auth.js.map +1 -1
  28. package/dist/commands/caps.js +11 -15
  29. package/dist/commands/caps.js.map +1 -1
  30. package/dist/commands/deploy.js +25 -10
  31. package/dist/commands/deploy.js.map +1 -1
  32. package/dist/commands/dev.d.ts +10 -1
  33. package/dist/commands/dev.js +56 -25
  34. package/dist/commands/dev.js.map +1 -1
  35. package/dist/commands/doctor.d.ts +2 -0
  36. package/dist/commands/doctor.js +60 -0
  37. package/dist/commands/doctor.js.map +1 -1
  38. package/dist/commands/embed-keys.js +4 -13
  39. package/dist/commands/embed-keys.js.map +1 -1
  40. package/dist/commands/env.js +4 -7
  41. package/dist/commands/env.js.map +1 -1
  42. package/dist/commands/files.js +3 -4
  43. package/dist/commands/files.js.map +1 -1
  44. package/dist/commands/fleet.d.ts +129 -0
  45. package/dist/commands/fleet.js +408 -0
  46. package/dist/commands/fleet.js.map +1 -0
  47. package/dist/commands/genui.d.ts +2 -0
  48. package/dist/commands/genui.js +53 -0
  49. package/dist/commands/genui.js.map +1 -0
  50. package/dist/commands/git-credential.js +2 -3
  51. package/dist/commands/git-credential.js.map +1 -1
  52. package/dist/commands/kartas.d.ts +9 -0
  53. package/dist/commands/kartas.js +33 -11
  54. package/dist/commands/kartas.js.map +1 -1
  55. package/dist/commands/keys.d.ts +17 -18
  56. package/dist/commands/keys.js +108 -19
  57. package/dist/commands/keys.js.map +1 -1
  58. package/dist/commands/login.js +2 -1
  59. package/dist/commands/login.js.map +1 -1
  60. package/dist/commands/members.d.ts +10 -0
  61. package/dist/commands/members.js +20 -6
  62. package/dist/commands/members.js.map +1 -1
  63. package/dist/commands/model-connections.d.ts +44 -0
  64. package/dist/commands/model-connections.js +435 -0
  65. package/dist/commands/model-connections.js.map +1 -0
  66. package/dist/commands/open.d.ts +2 -2
  67. package/dist/commands/open.js +4 -3
  68. package/dist/commands/open.js.map +1 -1
  69. package/dist/commands/org.d.ts +9 -0
  70. package/dist/commands/org.js +42 -0
  71. package/dist/commands/org.js.map +1 -0
  72. package/dist/commands/organization.d.ts +16 -0
  73. package/dist/commands/organization.js +118 -0
  74. package/dist/commands/organization.js.map +1 -0
  75. package/dist/commands/parity.js +1 -3
  76. package/dist/commands/parity.js.map +1 -1
  77. package/dist/commands/repos.d.ts +4 -0
  78. package/dist/commands/repos.js +17 -0
  79. package/dist/commands/repos.js.map +1 -0
  80. package/dist/commands/rollback.js +2 -3
  81. package/dist/commands/rollback.js.map +1 -1
  82. package/dist/commands/schedules.js +26 -21
  83. package/dist/commands/schedules.js.map +1 -1
  84. package/dist/commands/scopes.js +8 -1
  85. package/dist/commands/scopes.js.map +1 -1
  86. package/dist/commands/sessions.js +9 -3
  87. package/dist/commands/sessions.js.map +1 -1
  88. package/dist/commands/setup.js +5 -4
  89. package/dist/commands/setup.js.map +1 -1
  90. package/dist/commands/update.d.ts +1 -0
  91. package/dist/commands/update.js +24 -11
  92. package/dist/commands/update.js.map +1 -1
  93. package/dist/commands/webhooks.d.ts +4 -1
  94. package/dist/commands/webhooks.js +21 -16
  95. package/dist/commands/webhooks.js.map +1 -1
  96. package/dist/completions.js +24 -13
  97. package/dist/completions.js.map +1 -1
  98. package/dist/config.d.ts +12 -0
  99. package/dist/config.js +121 -7
  100. package/dist/config.js.map +1 -1
  101. package/dist/context.d.ts +2 -0
  102. package/dist/context.js +23 -7
  103. package/dist/context.js.map +1 -1
  104. package/dist/docs/cli-reference.d.ts +2 -0
  105. package/dist/docs/cli-reference.js +191 -0
  106. package/dist/docs/cli-reference.js.map +1 -0
  107. package/dist/exit-codes.d.ts +25 -0
  108. package/dist/exit-codes.js +107 -0
  109. package/dist/exit-codes.js.map +1 -0
  110. package/dist/genui.d.ts +178 -0
  111. package/dist/genui.js +1130 -0
  112. package/dist/genui.js.map +1 -0
  113. package/dist/harnesses.js +2 -1
  114. package/dist/harnesses.js.map +1 -1
  115. package/dist/jq.d.ts +4 -0
  116. package/dist/jq.js +91 -0
  117. package/dist/jq.js.map +1 -0
  118. package/dist/login-offer.js +6 -2
  119. package/dist/login-offer.js.map +1 -1
  120. package/dist/manifest.d.ts +12 -0
  121. package/dist/manifest.js +126 -0
  122. package/dist/manifest.js.map +1 -1
  123. package/dist/model-auth.d.ts +29 -0
  124. package/dist/model-auth.js +117 -0
  125. package/dist/model-auth.js.map +1 -0
  126. package/dist/model-settings.d.ts +23 -0
  127. package/dist/model-settings.js +186 -0
  128. package/dist/model-settings.js.map +1 -0
  129. package/dist/money.js +2 -1
  130. package/dist/money.js.map +1 -1
  131. package/dist/output.d.ts +6 -0
  132. package/dist/output.js +54 -0
  133. package/dist/output.js.map +1 -1
  134. package/dist/runtime.d.ts +1 -1
  135. package/dist/runtime.js +1 -1
  136. package/dist/scaffold.js +2 -1
  137. package/dist/scaffold.js.map +1 -1
  138. package/dist/validators.js +17 -11
  139. package/dist/validators.js.map +1 -1
  140. package/dist/version-check.d.ts +1 -1
  141. package/dist/version-check.js +1 -1
  142. package/dist/version-check.js.map +1 -1
  143. package/node_modules/@dharta/contracts/LICENSE +21 -0
  144. package/node_modules/@dharta/contracts/README.md +45 -0
  145. package/node_modules/@dharta/contracts/artifact-runtime.json +750 -0
  146. package/node_modules/@dharta/contracts/dist/activity.d.ts +62 -0
  147. package/node_modules/@dharta/contracts/dist/activity.d.ts.map +1 -0
  148. package/node_modules/@dharta/contracts/dist/activity.js +178 -0
  149. package/node_modules/@dharta/contracts/dist/activity.js.map +1 -0
  150. package/node_modules/@dharta/contracts/dist/artifact-runtime-formats.d.ts +20 -0
  151. package/node_modules/@dharta/contracts/dist/artifact-runtime-formats.d.ts.map +1 -0
  152. package/node_modules/@dharta/contracts/dist/artifact-runtime-formats.js +53 -0
  153. package/node_modules/@dharta/contracts/dist/artifact-runtime-formats.js.map +1 -0
  154. package/node_modules/@dharta/contracts/dist/artifact-runtime-validators.generated.d.ts +37 -0
  155. package/node_modules/@dharta/contracts/dist/artifact-runtime-validators.generated.d.ts.map +1 -0
  156. package/node_modules/@dharta/contracts/dist/artifact-runtime-validators.generated.js +5107 -0
  157. package/node_modules/@dharta/contracts/dist/artifact-runtime-validators.generated.js.map +1 -0
  158. package/node_modules/@dharta/contracts/dist/artifact-runtime.d.ts +154 -0
  159. package/node_modules/@dharta/contracts/dist/artifact-runtime.d.ts.map +1 -0
  160. package/node_modules/@dharta/contracts/dist/artifact-runtime.generated.d.ts +1670 -0
  161. package/node_modules/@dharta/contracts/dist/artifact-runtime.generated.d.ts.map +1 -0
  162. package/node_modules/@dharta/contracts/dist/artifact-runtime.generated.js +1903 -0
  163. package/node_modules/@dharta/contracts/dist/artifact-runtime.generated.js.map +1 -0
  164. package/node_modules/@dharta/contracts/dist/artifact-runtime.js +377 -0
  165. package/node_modules/@dharta/contracts/dist/artifact-runtime.js.map +1 -0
  166. package/node_modules/@dharta/contracts/dist/index.d.ts +6 -0
  167. package/node_modules/@dharta/contracts/dist/index.d.ts.map +1 -0
  168. package/node_modules/@dharta/contracts/dist/index.js +6 -0
  169. package/node_modules/@dharta/contracts/dist/index.js.map +1 -0
  170. package/node_modules/@dharta/contracts/dist/model-auth.d.ts +31 -0
  171. package/node_modules/@dharta/contracts/dist/model-auth.d.ts.map +1 -0
  172. package/node_modules/@dharta/contracts/dist/model-auth.js +45 -0
  173. package/node_modules/@dharta/contracts/dist/model-auth.js.map +1 -0
  174. package/node_modules/@dharta/contracts/dist/tasks.d.ts +44 -0
  175. package/node_modules/@dharta/contracts/dist/tasks.d.ts.map +1 -0
  176. package/node_modules/@dharta/contracts/dist/tasks.js +127 -0
  177. package/node_modules/@dharta/contracts/dist/tasks.js.map +1 -0
  178. package/node_modules/@dharta/contracts/dist/wire-events.d.ts +71 -0
  179. package/node_modules/@dharta/contracts/dist/wire-events.d.ts.map +1 -0
  180. package/node_modules/@dharta/contracts/dist/wire-events.js +48 -0
  181. package/node_modules/@dharta/contracts/dist/wire-events.js.map +1 -0
  182. package/node_modules/@dharta/contracts/model-auth-capabilities-v1.json +168 -0
  183. package/node_modules/@dharta/contracts/model-auth-reasons-v1.json +38 -0
  184. package/node_modules/@dharta/contracts/package.json +44 -0
  185. package/node_modules/@dharta/contracts/src/activity.ts +215 -0
  186. package/node_modules/@dharta/contracts/src/artifact-runtime-formats.ts +54 -0
  187. package/node_modules/@dharta/contracts/src/artifact-runtime-validators.generated.ts +29 -0
  188. package/node_modules/@dharta/contracts/src/artifact-runtime.generated.ts +2093 -0
  189. package/node_modules/@dharta/contracts/src/artifact-runtime.ts +520 -0
  190. package/node_modules/@dharta/contracts/src/index.ts +5 -0
  191. package/node_modules/@dharta/contracts/src/model-auth.ts +82 -0
  192. package/node_modules/@dharta/contracts/src/tasks.ts +142 -0
  193. package/node_modules/@dharta/contracts/src/wire-events.ts +150 -0
  194. package/node_modules/@dharta/contracts/wire-events.json +29 -0
  195. package/node_modules/@dharta/sdk/LICENSE +1 -1
  196. package/node_modules/@dharta/sdk/README.md +22 -8
  197. package/node_modules/@dharta/sdk/dist/errors.d.ts +9 -7
  198. package/node_modules/@dharta/sdk/dist/errors.d.ts.map +1 -1
  199. package/node_modules/@dharta/sdk/dist/errors.js +36 -18
  200. package/node_modules/@dharta/sdk/dist/errors.js.map +1 -1
  201. package/node_modules/@dharta/sdk/dist/fleet.d.ts +69 -0
  202. package/node_modules/@dharta/sdk/dist/fleet.d.ts.map +1 -0
  203. package/node_modules/@dharta/sdk/dist/fleet.js +240 -0
  204. package/node_modules/@dharta/sdk/dist/fleet.js.map +1 -0
  205. package/node_modules/@dharta/sdk/dist/http.d.ts +6 -2
  206. package/node_modules/@dharta/sdk/dist/http.d.ts.map +1 -1
  207. package/node_modules/@dharta/sdk/dist/http.js +71 -12
  208. package/node_modules/@dharta/sdk/dist/http.js.map +1 -1
  209. package/node_modules/@dharta/sdk/dist/idempotency.d.ts +12 -0
  210. package/node_modules/@dharta/sdk/dist/idempotency.d.ts.map +1 -0
  211. package/node_modules/@dharta/sdk/dist/idempotency.js +72 -0
  212. package/node_modules/@dharta/sdk/dist/idempotency.js.map +1 -0
  213. package/node_modules/@dharta/sdk/dist/index.d.ts +20 -6
  214. package/node_modules/@dharta/sdk/dist/index.d.ts.map +1 -1
  215. package/node_modules/@dharta/sdk/dist/index.js +27 -4
  216. package/node_modules/@dharta/sdk/dist/index.js.map +1 -1
  217. package/node_modules/@dharta/sdk/dist/resources.d.ts +108 -13
  218. package/node_modules/@dharta/sdk/dist/resources.d.ts.map +1 -1
  219. package/node_modules/@dharta/sdk/dist/resources.js +403 -57
  220. package/node_modules/@dharta/sdk/dist/resources.js.map +1 -1
  221. package/node_modules/@dharta/sdk/dist/types.d.ts +436 -16
  222. package/node_modules/@dharta/sdk/dist/types.d.ts.map +1 -1
  223. package/node_modules/@dharta/sdk/dist/types.js +31 -2
  224. package/node_modules/@dharta/sdk/dist/types.js.map +1 -1
  225. package/node_modules/@dharta/sdk/package.json +9 -3
  226. package/node_modules/@dharta/sdk/src/errors.ts +41 -18
  227. package/node_modules/@dharta/sdk/src/fleet.ts +339 -0
  228. package/node_modules/@dharta/sdk/src/http.ts +110 -17
  229. package/node_modules/@dharta/sdk/src/idempotency.ts +101 -0
  230. package/node_modules/@dharta/sdk/src/index.ts +50 -11
  231. package/node_modules/@dharta/sdk/src/resources.ts +549 -68
  232. package/node_modules/@dharta/sdk/src/types.ts +629 -20
  233. package/package.json +16 -6
  234. package/src/agent.ts +3 -2
  235. package/src/api-error.ts +6 -5
  236. package/src/cli.ts +978 -163
  237. package/src/command-tree.ts +13 -0
  238. package/src/commands/agents.ts +365 -167
  239. package/src/commands/analytics.ts +6 -5
  240. package/src/commands/api.ts +73 -92
  241. package/src/commands/appearance.ts +5 -6
  242. package/src/commands/artifact.ts +7 -6
  243. package/src/commands/audit-log.ts +2 -1
  244. package/src/commands/auth.ts +25 -5
  245. package/src/commands/caps.ts +11 -15
  246. package/src/commands/deploy.ts +18 -4
  247. package/src/commands/dev.ts +86 -25
  248. package/src/commands/doctor.ts +69 -0
  249. package/src/commands/embed-keys.ts +4 -14
  250. package/src/commands/env.ts +4 -7
  251. package/src/commands/files.ts +3 -4
  252. package/src/commands/fleet.ts +672 -0
  253. package/src/commands/genui.ts +59 -0
  254. package/src/commands/git-credential.ts +2 -3
  255. package/src/commands/kartas.ts +45 -11
  256. package/src/commands/keys.ts +152 -35
  257. package/src/commands/login.ts +2 -1
  258. package/src/commands/members.ts +31 -6
  259. package/src/commands/model-connections.ts +547 -0
  260. package/src/commands/open.ts +5 -4
  261. package/src/commands/org.ts +57 -0
  262. package/src/commands/organization.ts +153 -0
  263. package/src/commands/parity.ts +1 -3
  264. package/src/commands/repos.ts +23 -0
  265. package/src/commands/rollback.ts +2 -3
  266. package/src/commands/schedules.ts +33 -22
  267. package/src/commands/scopes.ts +8 -1
  268. package/src/commands/sessions.ts +9 -3
  269. package/src/commands/setup.ts +5 -4
  270. package/src/commands/update.ts +28 -12
  271. package/src/commands/webhooks.ts +30 -19
  272. package/src/completions.ts +25 -13
  273. package/src/config.ts +141 -9
  274. package/src/context.ts +34 -7
  275. package/src/docs/cli-reference.ts +206 -0
  276. package/src/exit-codes.ts +122 -0
  277. package/src/genui.ts +1398 -0
  278. package/src/harnesses.ts +2 -1
  279. package/src/jq.ts +109 -0
  280. package/src/login-offer.ts +6 -2
  281. package/src/manifest.ts +134 -0
  282. package/src/model-auth.ts +173 -0
  283. package/src/model-settings.ts +222 -0
  284. package/src/money.ts +5 -1
  285. package/src/output.ts +60 -0
  286. package/src/runtime.ts +1 -1
  287. package/src/scaffold.ts +2 -1
  288. package/src/validators.ts +18 -11
  289. package/src/version-check.ts +1 -1
  290. package/dist/commands/model-keys.d.ts +0 -22
  291. package/dist/commands/model-keys.js +0 -222
  292. package/dist/commands/model-keys.js.map +0 -1
  293. package/src/commands/model-keys.ts +0 -278
@@ -0,0 +1,1903 @@
1
+ function deepFreeze(value) {
2
+ if (typeof value === "object" && value !== null) {
3
+ Object.freeze(value);
4
+ for (const child of Object.values(value))
5
+ deepFreeze(child);
6
+ }
7
+ return value;
8
+ }
9
+ export const ARTIFACT_RUNTIME_CATALOG = deepFreeze({
10
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
11
+ "contract_version": 2,
12
+ "manifest": {
13
+ "id_pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
14
+ "type_id_pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$",
15
+ "input_alias_pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$",
16
+ "workspace_source_pattern": "^workspace:(?!.*[\\uD800-\\uDFFF])(?!/)(?!.*\\\\)(?!.*//)(?!\\.\\.?(?:$|/))(?!.*[/]\\.\\.?(?:$|/))[^\\u0000/]+(?:/[^\\u0000/]+)*$",
17
+ "max_title_characters": 200,
18
+ "max_root_bytes": 1024,
19
+ "max_root_depth": 32,
20
+ "max_entry_bytes": 1024,
21
+ "max_entry_depth": 32,
22
+ "max_run_bytes": 16384,
23
+ "max_inputs": 64,
24
+ "max_input_source_bytes": 2048,
25
+ "freshness": [
26
+ "pinned",
27
+ "follow"
28
+ ],
29
+ "reserved_root_paths": [
30
+ ".dharta/inputs"
31
+ ]
32
+ },
33
+ "trees": {
34
+ "root": {
35
+ "max_files": 20000,
36
+ "max_bytes": 1000000000
37
+ },
38
+ "input": {
39
+ "max_files": 20000,
40
+ "max_bytes": 1000000000
41
+ },
42
+ "all_inputs": {
43
+ "max_files": 50000,
44
+ "max_bytes": 5000000000
45
+ },
46
+ "static_share": {
47
+ "max_files": 20000,
48
+ "max_bytes": 1000000000
49
+ },
50
+ "reject_symlinks_escaping_tree": true,
51
+ "reject_secret_paths": true
52
+ },
53
+ "runtime": {
54
+ "abi": "dharta.artifact.renderer/v1",
55
+ "shell": "/bin/sh",
56
+ "shell_arguments": [
57
+ "-lc"
58
+ ],
59
+ "host": "127.0.0.1",
60
+ "environment": {
61
+ "DHARTA_ARTIFACT_PORT": {
62
+ "secret": false,
63
+ "value": "assigned loopback port"
64
+ },
65
+ "DHARTA_ARTIFACT_INPUTS": {
66
+ "secret": false,
67
+ "value": "absolute mounted input directory"
68
+ },
69
+ "DHARTA_ARTIFACT_TYPE_DIR": {
70
+ "secret": false,
71
+ "value": "absolute Type recipe directory when present"
72
+ },
73
+ "DHARTA_ARTIFACT_RUN": {
74
+ "secret": false,
75
+ "value": "opaque declared shell command"
76
+ }
77
+ },
78
+ "inherited_environment": "allowlist-only",
79
+ "secret_environment": [],
80
+ "startup_seconds": 30,
81
+ "idle_seconds": 300,
82
+ "absolute_seconds": 3600,
83
+ "teardown_seconds": 30
84
+ },
85
+ "portable_sharing": {
86
+ "format": "dharta.portable-artifact-execution-pack.v1",
87
+ "cost_owners": [
88
+ "publisher",
89
+ "viewer",
90
+ "organization"
91
+ ],
92
+ "required_live_execution": true,
93
+ "capabilities": {
94
+ "network": "none",
95
+ "workspace": "none",
96
+ "model": false,
97
+ "credentials": [],
98
+ "connections": []
99
+ },
100
+ "exclude_producer_sources": true,
101
+ "exclude_snapshot_ids": true,
102
+ "exclude_credentials": true
103
+ },
104
+ "access": {
105
+ "public_token_pattern": "^sfl_[A-Za-z0-9_-]{32,96}$",
106
+ "execution_id_pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
107
+ "execution_id_max_characters": 128,
108
+ "artifact_version_id_pattern": "^[A-Za-z0-9_-]{1,64}$",
109
+ "artifact_version_id_max_characters": 64,
110
+ "audience_digest_pattern": "^[0-9a-f]{64}$",
111
+ "handoff_digest_pattern": "^[0-9a-f]{64}$",
112
+ "handoff_token_pattern": "^aat_[A-Za-z0-9_-]{39,1996}$",
113
+ "origin_label_pattern": "^a-[a-z2-7]{52}$"
114
+ },
115
+ "http": {
116
+ "root_path": "/",
117
+ "handoff_path": "/_dharta/artifact/handoff",
118
+ "authorize_path": "/_dharta/artifact/authorize",
119
+ "open_path": "/_dharta/artifact/open",
120
+ "access_cookie": "__Host-dharta_artifact_access",
121
+ "local_access_cookie": "dharta_artifact_access_dev",
122
+ "root_media_type_essence": "text/html",
123
+ "allow_media_type_parameters": true,
124
+ "methods": [
125
+ "GET",
126
+ "HEAD",
127
+ "POST",
128
+ "PUT",
129
+ "PATCH",
130
+ "DELETE",
131
+ "OPTIONS"
132
+ ],
133
+ "max_header_bytes": 65536,
134
+ "max_request_body_bytes": 16777216,
135
+ "max_response_body_bytes": 1000000000,
136
+ "max_websocket_frame_bytes": 1048576,
137
+ "max_websocket_queue_frames": 2,
138
+ "max_concurrent_requests": 32,
139
+ "supports_streaming": true,
140
+ "supports_ranges": true,
141
+ "supports_sse": true,
142
+ "supports_websocket": true
143
+ },
144
+ "schemas": {
145
+ "input_v2": {
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "required": [
149
+ "source",
150
+ "freshness"
151
+ ],
152
+ "properties": {
153
+ "source": {
154
+ "type": "string",
155
+ "maxLength": 2048,
156
+ "pattern": "^workspace:(?!.*[\\uD800-\\uDFFF])(?!/)(?!.*\\\\)(?!.*//)(?!\\.\\.?(?:$|/))(?!.*[/]\\.\\.?(?:$|/))[^\\u0000/]+(?:/[^\\u0000/]+)*$",
157
+ "x-dharta-error": "artifact_input_source_invalid"
158
+ },
159
+ "freshness": {
160
+ "enum": [
161
+ "pinned",
162
+ "follow"
163
+ ],
164
+ "x-dharta-error": "artifact_input_freshness_required"
165
+ }
166
+ },
167
+ "x-dharta-error": "artifact_input_invalid"
168
+ },
169
+ "agent_activation_v1": {
170
+ "type": "object",
171
+ "additionalProperties": false,
172
+ "required": [
173
+ "authorities",
174
+ "budget_cents",
175
+ "lifetime_seconds",
176
+ "descendant_ceiling",
177
+ "activation_mode",
178
+ "visibility"
179
+ ],
180
+ "properties": {
181
+ "authorities": {
182
+ "type": "array",
183
+ "maxItems": 32,
184
+ "uniqueItems": true,
185
+ "items": {
186
+ "type": "string",
187
+ "pattern": "^[a-z][a-z0-9_.:-]{0,127}$"
188
+ }
189
+ },
190
+ "budget_cents": {
191
+ "type": "integer",
192
+ "minimum": 0,
193
+ "maximum": 10000
194
+ },
195
+ "lifetime_seconds": {
196
+ "type": "integer",
197
+ "minimum": 1,
198
+ "maximum": 86400
199
+ },
200
+ "descendant_ceiling": {
201
+ "type": "integer",
202
+ "minimum": 0,
203
+ "maximum": 8
204
+ },
205
+ "activation_mode": {
206
+ "enum": [
207
+ "resume",
208
+ "new"
209
+ ]
210
+ },
211
+ "visibility": {
212
+ "enum": [
213
+ "headless",
214
+ "inspectable",
215
+ "user-facing"
216
+ ]
217
+ }
218
+ },
219
+ "x-dharta-error": "artifact_agent_activation_invalid"
220
+ },
221
+ "artifact_v2": {
222
+ "type": "object",
223
+ "additionalProperties": false,
224
+ "required": [
225
+ "contract_version",
226
+ "id",
227
+ "title",
228
+ "root",
229
+ "inputs"
230
+ ],
231
+ "allOf": [
232
+ {
233
+ "oneOf": [
234
+ {
235
+ "required": [
236
+ "entry"
237
+ ],
238
+ "not": {
239
+ "required": [
240
+ "run"
241
+ ]
242
+ }
243
+ },
244
+ {
245
+ "required": [
246
+ "run"
247
+ ],
248
+ "not": {
249
+ "required": [
250
+ "entry"
251
+ ]
252
+ }
253
+ }
254
+ ],
255
+ "x-dharta-error": "artifact_presentation_invalid"
256
+ },
257
+ {
258
+ "if": {
259
+ "required": [
260
+ "agent_activation"
261
+ ]
262
+ },
263
+ "then": {
264
+ "properties": {
265
+ "run": {
266
+ "const": "karta artifact run agent .",
267
+ "x-dharta-error": "artifact_agent_activation_runner_required"
268
+ }
269
+ },
270
+ "required": [
271
+ "run"
272
+ ]
273
+ },
274
+ "x-dharta-error": "artifact_agent_activation_runner_required"
275
+ }
276
+ ],
277
+ "properties": {
278
+ "contract_version": {
279
+ "const": 2,
280
+ "x-dharta-error": "artifact_contract_version_invalid"
281
+ },
282
+ "id": {
283
+ "type": "string",
284
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
285
+ "x-dharta-error": "artifact_id_invalid"
286
+ },
287
+ "title": {
288
+ "type": "string",
289
+ "minLength": 1,
290
+ "maxLength": 200,
291
+ "pattern": "^(?!.*[\\uD800-\\uDFFF]).+$",
292
+ "x-dharta-error": "artifact_title_invalid"
293
+ },
294
+ "type_id": {
295
+ "type": "string",
296
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$",
297
+ "x-dharta-error": "artifact_type_id_invalid"
298
+ },
299
+ "root": {
300
+ "type": "string",
301
+ "minLength": 1,
302
+ "maxLength": 1024,
303
+ "pattern": "^(?!.*[\\uD800-\\uDFFF])(?!/)(?!.*\\\\)(?!.*//)(?!\\.\\.?(?:$|/))(?!.*[/]\\.\\.?(?:$|/))(?!\\.dharta/inputs(?:/|$))[^\\u0000/]+(?:/[^\\u0000/]+)*$",
304
+ "x-dharta-error": "artifact_root_invalid"
305
+ },
306
+ "entry": {
307
+ "type": "string",
308
+ "minLength": 1,
309
+ "maxLength": 1024,
310
+ "pattern": "^(?!.*[\\uD800-\\uDFFF])(?!/)(?!.*\\\\)(?!.*//)(?!\\.\\.?(?:$|/))(?!.*[/]\\.\\.?(?:$|/))[^\\u0000/]+(?:/[^\\u0000/]+)*$",
311
+ "x-dharta-error": "artifact_entry_invalid"
312
+ },
313
+ "run": {
314
+ "type": "string",
315
+ "minLength": 1,
316
+ "maxLength": 16384,
317
+ "pattern": "^(?!.*[\\uD800-\\uDFFF])[^\\u0000]+$",
318
+ "x-dharta-error": "artifact_run_invalid"
319
+ },
320
+ "agent_activation": {
321
+ "$ref": "#/$defs/agent_activation_v1"
322
+ },
323
+ "inputs": {
324
+ "type": "object",
325
+ "maxProperties": 64,
326
+ "propertyNames": {
327
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$",
328
+ "x-dharta-error": "artifact_input_alias_invalid"
329
+ },
330
+ "additionalProperties": {
331
+ "$ref": "#/$defs/input_v2"
332
+ },
333
+ "x-dharta-error": "artifact_inputs_invalid"
334
+ }
335
+ },
336
+ "x-dharta-error": "artifact_v2_invalid"
337
+ },
338
+ "artifact_v1": {
339
+ "type": "object",
340
+ "required": [
341
+ "contract_version",
342
+ "key",
343
+ "kind",
344
+ "title",
345
+ "entrypoint",
346
+ "dependencies"
347
+ ],
348
+ "properties": {
349
+ "contract_version": {
350
+ "const": 1,
351
+ "x-dharta-error": "artifact_contract_version_invalid"
352
+ },
353
+ "key": {
354
+ "type": "string",
355
+ "minLength": 1
356
+ },
357
+ "kind": {
358
+ "type": "string",
359
+ "minLength": 1
360
+ },
361
+ "title": {
362
+ "type": "string",
363
+ "minLength": 1
364
+ },
365
+ "entrypoint": {
366
+ "type": "string",
367
+ "minLength": 1
368
+ },
369
+ "dependencies": {
370
+ "type": "array",
371
+ "items": {
372
+ "type": "object"
373
+ }
374
+ },
375
+ "suggested_surface": {
376
+ "type": "string",
377
+ "minLength": 1
378
+ }
379
+ },
380
+ "additionalProperties": true,
381
+ "x-dharta-error": "artifact_v1_invalid"
382
+ },
383
+ "manifest_document": {
384
+ "type": "object",
385
+ "additionalProperties": false,
386
+ "required": [
387
+ "schema",
388
+ "artifacts"
389
+ ],
390
+ "properties": {
391
+ "schema": {
392
+ "const": 2,
393
+ "x-dharta-error": "artifact_document_schema_invalid"
394
+ },
395
+ "artifacts": {
396
+ "type": "array",
397
+ "maxItems": 256,
398
+ "items": {
399
+ "oneOf": [
400
+ {
401
+ "$ref": "#/$defs/artifact_v1"
402
+ },
403
+ {
404
+ "$ref": "#/$defs/artifact_v2"
405
+ }
406
+ ]
407
+ },
408
+ "x-dharta-error": "artifact_document_invalid"
409
+ }
410
+ },
411
+ "x-dharta-error": "artifact_document_invalid"
412
+ },
413
+ "artifact_summary_input_v2": {
414
+ "type": "object",
415
+ "additionalProperties": false,
416
+ "required": [
417
+ "alias",
418
+ "source",
419
+ "freshness",
420
+ "snapshot_id",
421
+ "kind",
422
+ "files",
423
+ "total_bytes"
424
+ ],
425
+ "properties": {
426
+ "alias": {
427
+ "type": "string",
428
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
429
+ },
430
+ "source": {
431
+ "type": "string",
432
+ "maxLength": 2048
433
+ },
434
+ "freshness": {
435
+ "enum": [
436
+ "pinned",
437
+ "follow"
438
+ ]
439
+ },
440
+ "snapshot_id": {
441
+ "type": "string",
442
+ "minLength": 1
443
+ },
444
+ "kind": {
445
+ "enum": [
446
+ "file",
447
+ "directory"
448
+ ]
449
+ },
450
+ "files": {
451
+ "type": "integer",
452
+ "minimum": 0
453
+ },
454
+ "total_bytes": {
455
+ "type": "integer",
456
+ "minimum": 0
457
+ }
458
+ }
459
+ },
460
+ "artifact_summary_v1": {
461
+ "type": "object",
462
+ "additionalProperties": false,
463
+ "required": [
464
+ "contract_version",
465
+ "artifact_id",
466
+ "artifact_version_id",
467
+ "key",
468
+ "kind",
469
+ "title",
470
+ "entrypoint",
471
+ "renderer",
472
+ "schema_version",
473
+ "portability",
474
+ "snapshot_id",
475
+ "member_count",
476
+ "total_bytes",
477
+ "publish_audiences"
478
+ ],
479
+ "properties": {
480
+ "contract_version": {
481
+ "const": 1
482
+ },
483
+ "artifact_id": {
484
+ "type": "string",
485
+ "minLength": 1
486
+ },
487
+ "artifact_version_id": {
488
+ "type": "string",
489
+ "minLength": 1
490
+ },
491
+ "key": {
492
+ "type": "string",
493
+ "minLength": 1
494
+ },
495
+ "kind": {
496
+ "type": "string",
497
+ "minLength": 1
498
+ },
499
+ "title": {
500
+ "type": "string",
501
+ "minLength": 1
502
+ },
503
+ "entrypoint": {
504
+ "type": "string",
505
+ "minLength": 1
506
+ },
507
+ "renderer": {
508
+ "type": "string",
509
+ "minLength": 1
510
+ },
511
+ "schema_version": {
512
+ "type": "integer",
513
+ "minimum": 1
514
+ },
515
+ "portability": {
516
+ "enum": [
517
+ "static",
518
+ "explainable",
519
+ "forkable"
520
+ ]
521
+ },
522
+ "snapshot_id": {
523
+ "type": "string",
524
+ "minLength": 1
525
+ },
526
+ "member_count": {
527
+ "type": "integer",
528
+ "minimum": 0
529
+ },
530
+ "total_bytes": {
531
+ "type": "integer",
532
+ "minimum": 0
533
+ },
534
+ "publish_audiences": {
535
+ "type": "array",
536
+ "items": {
537
+ "enum": [
538
+ "public",
539
+ "link",
540
+ "organization",
541
+ "named"
542
+ ]
543
+ }
544
+ }
545
+ }
546
+ },
547
+ "artifact_summary_v2": {
548
+ "type": "object",
549
+ "additionalProperties": false,
550
+ "required": [
551
+ "contract_version",
552
+ "artifact_id",
553
+ "artifact_version_id",
554
+ "id",
555
+ "title",
556
+ "root",
557
+ "snapshot_id",
558
+ "member_count",
559
+ "total_bytes",
560
+ "inputs",
561
+ "publish_audiences"
562
+ ],
563
+ "allOf": [
564
+ {
565
+ "oneOf": [
566
+ {
567
+ "required": [
568
+ "entry",
569
+ "renderer",
570
+ "presentation_availability"
571
+ ],
572
+ "not": {
573
+ "anyOf": [
574
+ {
575
+ "required": [
576
+ "run"
577
+ ]
578
+ },
579
+ {
580
+ "required": [
581
+ "execution_availability"
582
+ ]
583
+ },
584
+ {
585
+ "required": [
586
+ "execution_unavailable_reason"
587
+ ]
588
+ }
589
+ ]
590
+ }
591
+ },
592
+ {
593
+ "required": [
594
+ "run",
595
+ "execution_availability"
596
+ ],
597
+ "not": {
598
+ "anyOf": [
599
+ {
600
+ "required": [
601
+ "entry"
602
+ ]
603
+ },
604
+ {
605
+ "required": [
606
+ "renderer"
607
+ ]
608
+ },
609
+ {
610
+ "required": [
611
+ "presentation_availability"
612
+ ]
613
+ },
614
+ {
615
+ "required": [
616
+ "presentation_unavailable_reason"
617
+ ]
618
+ }
619
+ ]
620
+ }
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "if": {
626
+ "required": [
627
+ "agent_activation"
628
+ ]
629
+ },
630
+ "then": {
631
+ "properties": {
632
+ "run": {
633
+ "const": "karta artifact run agent ."
634
+ }
635
+ },
636
+ "required": [
637
+ "run"
638
+ ]
639
+ }
640
+ }
641
+ ],
642
+ "properties": {
643
+ "contract_version": {
644
+ "const": 2
645
+ },
646
+ "artifact_id": {
647
+ "type": "string",
648
+ "minLength": 1
649
+ },
650
+ "artifact_version_id": {
651
+ "type": "string",
652
+ "minLength": 1
653
+ },
654
+ "id": {
655
+ "type": "string",
656
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
657
+ },
658
+ "title": {
659
+ "type": "string",
660
+ "minLength": 1
661
+ },
662
+ "root": {
663
+ "type": "string",
664
+ "minLength": 1
665
+ },
666
+ "entry": {
667
+ "type": "string",
668
+ "minLength": 1
669
+ },
670
+ "run": {
671
+ "type": "string",
672
+ "minLength": 1
673
+ },
674
+ "agent_activation": {
675
+ "$ref": "#/$defs/agent_activation_v1"
676
+ },
677
+ "renderer": {
678
+ "enum": [
679
+ "builtin.text",
680
+ "builtin.markdown",
681
+ "builtin.code",
682
+ "builtin.image",
683
+ "builtin.audio",
684
+ "builtin.video",
685
+ "builtin.csv",
686
+ "builtin.pdf",
687
+ "builtin.html",
688
+ "builtin.download"
689
+ ]
690
+ },
691
+ "type_id": {
692
+ "type": "string",
693
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
694
+ },
695
+ "snapshot_id": {
696
+ "type": "string",
697
+ "minLength": 1
698
+ },
699
+ "member_count": {
700
+ "type": "integer",
701
+ "minimum": 0
702
+ },
703
+ "total_bytes": {
704
+ "type": "integer",
705
+ "minimum": 0
706
+ },
707
+ "inputs": {
708
+ "type": "array",
709
+ "items": {
710
+ "$ref": "#/$defs/artifact_summary_input_v2"
711
+ }
712
+ },
713
+ "presentation_availability": {
714
+ "enum": [
715
+ "available",
716
+ "unavailable"
717
+ ]
718
+ },
719
+ "presentation_unavailable_reason": {
720
+ "type": "string",
721
+ "minLength": 1
722
+ },
723
+ "execution_availability": {
724
+ "enum": [
725
+ "available",
726
+ "unavailable"
727
+ ]
728
+ },
729
+ "execution_unavailable_reason": {
730
+ "type": "string",
731
+ "minLength": 1
732
+ },
733
+ "publish_audiences": {
734
+ "type": "array",
735
+ "items": {
736
+ "enum": [
737
+ "public",
738
+ "link",
739
+ "organization",
740
+ "named"
741
+ ]
742
+ }
743
+ }
744
+ }
745
+ },
746
+ "portable_pack_input": {
747
+ "type": "object",
748
+ "additionalProperties": false,
749
+ "required": [
750
+ "alias",
751
+ "freshness",
752
+ "kind",
753
+ "tree_digest",
754
+ "files",
755
+ "bytes"
756
+ ],
757
+ "properties": {
758
+ "alias": {
759
+ "type": "string",
760
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
761
+ },
762
+ "freshness": {
763
+ "enum": [
764
+ "pinned",
765
+ "follow"
766
+ ]
767
+ },
768
+ "kind": {
769
+ "enum": [
770
+ "file",
771
+ "directory"
772
+ ]
773
+ },
774
+ "tree_digest": {
775
+ "type": "string",
776
+ "pattern": "^[0-9a-f]{64}$"
777
+ },
778
+ "files": {
779
+ "type": "integer",
780
+ "minimum": 0
781
+ },
782
+ "bytes": {
783
+ "type": "integer",
784
+ "minimum": 0
785
+ }
786
+ }
787
+ },
788
+ "portable_pack_member": {
789
+ "type": "object",
790
+ "additionalProperties": false,
791
+ "required": [
792
+ "scope",
793
+ "path",
794
+ "kind",
795
+ "size",
796
+ "mode"
797
+ ],
798
+ "properties": {
799
+ "scope": {
800
+ "enum": [
801
+ "root",
802
+ "input",
803
+ "type"
804
+ ]
805
+ },
806
+ "alias": {
807
+ "type": "string",
808
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
809
+ },
810
+ "path": {
811
+ "type": "string",
812
+ "minLength": 1,
813
+ "maxLength": 1024
814
+ },
815
+ "kind": {
816
+ "enum": [
817
+ "file",
818
+ "symlink",
819
+ "directory"
820
+ ]
821
+ },
822
+ "digest": {
823
+ "type": "string",
824
+ "pattern": "^[0-9a-f]{64}$"
825
+ },
826
+ "size": {
827
+ "type": "integer",
828
+ "minimum": 0
829
+ },
830
+ "mode": {
831
+ "type": "integer",
832
+ "minimum": 0,
833
+ "maximum": 4095
834
+ },
835
+ "target": {
836
+ "type": "string",
837
+ "minLength": 1,
838
+ "maxLength": 4096
839
+ },
840
+ "target_kind": {
841
+ "enum": [
842
+ "file",
843
+ "directory"
844
+ ]
845
+ },
846
+ "generation": {
847
+ "type": "integer",
848
+ "minimum": 0
849
+ }
850
+ }
851
+ },
852
+ "portable_execution_capabilities": {
853
+ "type": "object",
854
+ "additionalProperties": false,
855
+ "required": [
856
+ "network",
857
+ "workspace",
858
+ "model",
859
+ "credentials",
860
+ "connections"
861
+ ],
862
+ "properties": {
863
+ "network": {
864
+ "const": "none"
865
+ },
866
+ "workspace": {
867
+ "const": "none"
868
+ },
869
+ "model": {
870
+ "const": false
871
+ },
872
+ "credentials": {
873
+ "type": "array",
874
+ "maxItems": 0
875
+ },
876
+ "connections": {
877
+ "type": "array",
878
+ "maxItems": 0
879
+ }
880
+ }
881
+ },
882
+ "portable_execution_pack": {
883
+ "type": "object",
884
+ "additionalProperties": false,
885
+ "required": [
886
+ "format",
887
+ "artifact_id",
888
+ "artifact_version_id",
889
+ "run",
890
+ "root",
891
+ "inputs",
892
+ "type_id",
893
+ "type_package_digest",
894
+ "cost_owner",
895
+ "capabilities",
896
+ "members"
897
+ ],
898
+ "properties": {
899
+ "format": {
900
+ "const": "dharta.portable-artifact-execution-pack.v1"
901
+ },
902
+ "artifact_id": {
903
+ "type": "string",
904
+ "minLength": 1,
905
+ "maxLength": 128
906
+ },
907
+ "artifact_version_id": {
908
+ "type": "string",
909
+ "minLength": 1,
910
+ "maxLength": 128
911
+ },
912
+ "run": {
913
+ "type": "string",
914
+ "minLength": 1,
915
+ "maxLength": 16384
916
+ },
917
+ "root": {
918
+ "type": "object",
919
+ "additionalProperties": false,
920
+ "required": [
921
+ "kind",
922
+ "tree_digest",
923
+ "files",
924
+ "bytes"
925
+ ],
926
+ "properties": {
927
+ "kind": {
928
+ "enum": [
929
+ "file",
930
+ "directory"
931
+ ]
932
+ },
933
+ "tree_digest": {
934
+ "type": "string",
935
+ "pattern": "^[0-9a-f]{64}$"
936
+ },
937
+ "files": {
938
+ "type": "integer",
939
+ "minimum": 0
940
+ },
941
+ "bytes": {
942
+ "type": "integer",
943
+ "minimum": 0
944
+ }
945
+ }
946
+ },
947
+ "inputs": {
948
+ "type": "array",
949
+ "maxItems": 64,
950
+ "items": {
951
+ "$ref": "#/$defs/portable_pack_input"
952
+ }
953
+ },
954
+ "type_id": {
955
+ "type": [
956
+ "string",
957
+ "null"
958
+ ],
959
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
960
+ },
961
+ "type_package_digest": {
962
+ "type": [
963
+ "string",
964
+ "null"
965
+ ],
966
+ "pattern": "^[0-9a-f]{64}$"
967
+ },
968
+ "cost_owner": {
969
+ "enum": [
970
+ "publisher",
971
+ "viewer",
972
+ "organization"
973
+ ]
974
+ },
975
+ "capabilities": {
976
+ "$ref": "#/$defs/portable_execution_capabilities"
977
+ },
978
+ "members": {
979
+ "type": "array",
980
+ "maxItems": 20000,
981
+ "items": {
982
+ "$ref": "#/$defs/portable_pack_member"
983
+ }
984
+ }
985
+ }
986
+ },
987
+ "portable_execution_consent": {
988
+ "type": "object",
989
+ "additionalProperties": false,
990
+ "required": [
991
+ "pack_id",
992
+ "artifact_version_id",
993
+ "run",
994
+ "required_live_execution",
995
+ "cost_owner",
996
+ "capabilities",
997
+ "root",
998
+ "inputs",
999
+ "type_id",
1000
+ "unique_files",
1001
+ "unique_bytes",
1002
+ "consent_digest"
1003
+ ],
1004
+ "properties": {
1005
+ "pack_id": {
1006
+ "type": "string",
1007
+ "pattern": "^sp_[0-9a-f]{64}$"
1008
+ },
1009
+ "artifact_version_id": {
1010
+ "type": "string",
1011
+ "minLength": 1,
1012
+ "maxLength": 128
1013
+ },
1014
+ "run": {
1015
+ "type": "string",
1016
+ "minLength": 1,
1017
+ "maxLength": 16384
1018
+ },
1019
+ "required_live_execution": {
1020
+ "const": true
1021
+ },
1022
+ "cost_owner": {
1023
+ "enum": [
1024
+ "publisher",
1025
+ "viewer",
1026
+ "organization"
1027
+ ]
1028
+ },
1029
+ "capabilities": {
1030
+ "$ref": "#/$defs/portable_execution_capabilities"
1031
+ },
1032
+ "root": {
1033
+ "type": "object",
1034
+ "additionalProperties": false,
1035
+ "required": [
1036
+ "files",
1037
+ "bytes"
1038
+ ],
1039
+ "properties": {
1040
+ "files": {
1041
+ "type": "integer",
1042
+ "minimum": 0
1043
+ },
1044
+ "bytes": {
1045
+ "type": "integer",
1046
+ "minimum": 0
1047
+ }
1048
+ }
1049
+ },
1050
+ "inputs": {
1051
+ "type": "array",
1052
+ "maxItems": 64,
1053
+ "items": {
1054
+ "type": "object",
1055
+ "additionalProperties": false,
1056
+ "required": [
1057
+ "alias",
1058
+ "freshness",
1059
+ "files",
1060
+ "bytes"
1061
+ ],
1062
+ "properties": {
1063
+ "alias": {
1064
+ "type": "string",
1065
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
1066
+ },
1067
+ "freshness": {
1068
+ "enum": [
1069
+ "pinned",
1070
+ "follow"
1071
+ ]
1072
+ },
1073
+ "files": {
1074
+ "type": "integer",
1075
+ "minimum": 0
1076
+ },
1077
+ "bytes": {
1078
+ "type": "integer",
1079
+ "minimum": 0
1080
+ }
1081
+ }
1082
+ }
1083
+ },
1084
+ "type_id": {
1085
+ "type": [
1086
+ "string",
1087
+ "null"
1088
+ ],
1089
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
1090
+ },
1091
+ "unique_files": {
1092
+ "type": "integer",
1093
+ "minimum": 0
1094
+ },
1095
+ "unique_bytes": {
1096
+ "type": "integer",
1097
+ "minimum": 0
1098
+ },
1099
+ "consent_digest": {
1100
+ "type": "string",
1101
+ "pattern": "^[0-9a-f]{64}$"
1102
+ }
1103
+ }
1104
+ },
1105
+ "artifact_execution_session": {
1106
+ "type": "object",
1107
+ "additionalProperties": false,
1108
+ "required": [
1109
+ "id",
1110
+ "url",
1111
+ "state",
1112
+ "lease_expires_at",
1113
+ "absolute_expires_at",
1114
+ "cost_microusd",
1115
+ "cost_state",
1116
+ "metered_seconds",
1117
+ "artifact_version_id",
1118
+ "renewal_token"
1119
+ ],
1120
+ "properties": {
1121
+ "id": {
1122
+ "type": "string",
1123
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
1124
+ },
1125
+ "url": {
1126
+ "type": "string",
1127
+ "format": "uri",
1128
+ "pattern": "^https://"
1129
+ },
1130
+ "state": {
1131
+ "enum": [
1132
+ "active",
1133
+ "hidden"
1134
+ ]
1135
+ },
1136
+ "lease_expires_at": {
1137
+ "type": "string",
1138
+ "format": "date-time"
1139
+ },
1140
+ "absolute_expires_at": {
1141
+ "type": "string",
1142
+ "format": "date-time"
1143
+ },
1144
+ "cost_microusd": {
1145
+ "type": "integer",
1146
+ "minimum": 0
1147
+ },
1148
+ "cost_state": {
1149
+ "enum": [
1150
+ "pending",
1151
+ "final"
1152
+ ]
1153
+ },
1154
+ "metered_seconds": {
1155
+ "type": "integer",
1156
+ "minimum": 0
1157
+ },
1158
+ "artifact_version_id": {
1159
+ "type": "string",
1160
+ "pattern": "^[A-Za-z0-9_-]{1,64}$"
1161
+ },
1162
+ "renewal_token": {
1163
+ "type": "string",
1164
+ "pattern": "^sfl_[A-Za-z0-9_-]{32,96}$"
1165
+ }
1166
+ }
1167
+ },
1168
+ "artifact_execution_renewal": {
1169
+ "type": "object",
1170
+ "additionalProperties": false,
1171
+ "required": [
1172
+ "id",
1173
+ "state",
1174
+ "lease_expires_at",
1175
+ "absolute_expires_at",
1176
+ "cost_microusd",
1177
+ "cost_state",
1178
+ "metered_seconds",
1179
+ "handoff"
1180
+ ],
1181
+ "properties": {
1182
+ "id": {
1183
+ "type": "string",
1184
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
1185
+ },
1186
+ "state": {
1187
+ "enum": [
1188
+ "active",
1189
+ "hidden"
1190
+ ]
1191
+ },
1192
+ "lease_expires_at": {
1193
+ "type": "string",
1194
+ "format": "date-time"
1195
+ },
1196
+ "absolute_expires_at": {
1197
+ "type": "string",
1198
+ "format": "date-time"
1199
+ },
1200
+ "cost_microusd": {
1201
+ "type": "integer",
1202
+ "minimum": 0
1203
+ },
1204
+ "cost_state": {
1205
+ "enum": [
1206
+ "pending",
1207
+ "final"
1208
+ ]
1209
+ },
1210
+ "metered_seconds": {
1211
+ "type": "integer",
1212
+ "minimum": 0
1213
+ },
1214
+ "handoff": {
1215
+ "type": "string",
1216
+ "pattern": "^aat_[A-Za-z0-9_-]{39,1996}$"
1217
+ }
1218
+ }
1219
+ }
1220
+ },
1221
+ "fixtures": [
1222
+ {
1223
+ "name": "generated-python-viewer",
1224
+ "validator": "manifest",
1225
+ "valid": true,
1226
+ "value": {
1227
+ "schema": 2,
1228
+ "artifacts": [
1229
+ {
1230
+ "contract_version": 2,
1231
+ "id": "energy-landscape",
1232
+ "title": "Energy Landscape",
1233
+ "root": "outputs/energy-landscape",
1234
+ "run": "python energy-landscape-viewer.py",
1235
+ "inputs": {
1236
+ "landscape": {
1237
+ "source": "workspace:simulations/energy-landscape.sqlite",
1238
+ "freshness": "follow"
1239
+ }
1240
+ }
1241
+ }
1242
+ ]
1243
+ }
1244
+ },
1245
+ {
1246
+ "name": "developer-type-recipe",
1247
+ "validator": "manifest",
1248
+ "valid": true,
1249
+ "value": {
1250
+ "schema": 2,
1251
+ "artifacts": [
1252
+ {
1253
+ "contract_version": 2,
1254
+ "id": "investment-report",
1255
+ "title": "Investment Report",
1256
+ "type_id": "investment-report",
1257
+ "root": "outputs/investment-report",
1258
+ "run": "python \"$DHARTA_ARTIFACT_TYPE_DIR/render.py\" report.sqlite",
1259
+ "inputs": {
1260
+ "evidence": {
1261
+ "source": "workspace:evidence",
1262
+ "freshness": "pinned"
1263
+ }
1264
+ }
1265
+ }
1266
+ ]
1267
+ }
1268
+ },
1269
+ {
1270
+ "name": "passive-pdf-entry",
1271
+ "validator": "manifest",
1272
+ "valid": true,
1273
+ "value": {
1274
+ "schema": 2,
1275
+ "artifacts": [
1276
+ {
1277
+ "contract_version": 2,
1278
+ "id": "audit-report",
1279
+ "title": "Audit Report",
1280
+ "root": "outputs/audit-report",
1281
+ "entry": "report.pdf",
1282
+ "inputs": {
1283
+ "audit": {
1284
+ "source": "workspace:audit/source",
1285
+ "freshness": "pinned"
1286
+ }
1287
+ }
1288
+ }
1289
+ ]
1290
+ }
1291
+ },
1292
+ {
1293
+ "name": "static-html-entry",
1294
+ "validator": "manifest",
1295
+ "valid": true,
1296
+ "value": {
1297
+ "schema": 2,
1298
+ "artifacts": [
1299
+ {
1300
+ "contract_version": 2,
1301
+ "id": "interactive-report",
1302
+ "title": "Interactive Report",
1303
+ "root": "outputs/interactive-report",
1304
+ "entry": "index.html",
1305
+ "inputs": {}
1306
+ }
1307
+ ]
1308
+ }
1309
+ },
1310
+ {
1311
+ "name": "interactive-post-websocket",
1312
+ "validator": "manifest",
1313
+ "valid": true,
1314
+ "value": {
1315
+ "schema": 2,
1316
+ "artifacts": [
1317
+ {
1318
+ "contract_version": 2,
1319
+ "id": "simulation",
1320
+ "title": "Interactive Simulation",
1321
+ "root": "outputs/simulation",
1322
+ "run": "python server.py",
1323
+ "inputs": {}
1324
+ }
1325
+ ]
1326
+ }
1327
+ },
1328
+ {
1329
+ "name": "arbitrary-shell-command",
1330
+ "validator": "manifest",
1331
+ "valid": true,
1332
+ "value": {
1333
+ "schema": 2,
1334
+ "artifacts": [
1335
+ {
1336
+ "contract_version": 2,
1337
+ "id": "generated-dashboard",
1338
+ "title": "Generated Dashboard",
1339
+ "root": "outputs/generated-dashboard",
1340
+ "run": "python preprocess.py && http-server index.html --port \"$DHARTA_ARTIFACT_PORT\"",
1341
+ "inputs": {}
1342
+ }
1343
+ ]
1344
+ }
1345
+ },
1346
+ {
1347
+ "name": "shared-sqlite-follow-input",
1348
+ "validator": "manifest",
1349
+ "valid": true,
1350
+ "value": {
1351
+ "schema": 2,
1352
+ "artifacts": [
1353
+ {
1354
+ "contract_version": 2,
1355
+ "id": "landscape-map",
1356
+ "title": "Landscape Map",
1357
+ "root": "outputs/landscape-map",
1358
+ "run": "python map.py",
1359
+ "inputs": {
1360
+ "simulation": {
1361
+ "source": "workspace:simulations/shared.sqlite",
1362
+ "freshness": "follow"
1363
+ }
1364
+ }
1365
+ },
1366
+ {
1367
+ "contract_version": 2,
1368
+ "id": "landscape-table",
1369
+ "title": "Landscape Table",
1370
+ "root": "outputs/landscape-table",
1371
+ "run": "python table.py",
1372
+ "inputs": {
1373
+ "simulation": {
1374
+ "source": "workspace:simulations/shared.sqlite",
1375
+ "freshness": "follow"
1376
+ }
1377
+ }
1378
+ }
1379
+ ]
1380
+ }
1381
+ },
1382
+ {
1383
+ "name": "generated-agent-app",
1384
+ "validator": "manifest",
1385
+ "valid": true,
1386
+ "value": {
1387
+ "schema": 2,
1388
+ "artifacts": [
1389
+ {
1390
+ "contract_version": 2,
1391
+ "id": "scenario-analyst",
1392
+ "title": "Scenario Analyst",
1393
+ "root": "outputs/scenario-analyst",
1394
+ "run": "karta artifact run agent .",
1395
+ "agent_activation": {
1396
+ "authorities": [
1397
+ "model"
1398
+ ],
1399
+ "budget_cents": 100,
1400
+ "lifetime_seconds": 3600,
1401
+ "descendant_ceiling": 0,
1402
+ "activation_mode": "resume",
1403
+ "visibility": "user-facing"
1404
+ },
1405
+ "inputs": {}
1406
+ }
1407
+ ]
1408
+ }
1409
+ },
1410
+ {
1411
+ "name": "agent-activation-on-arbitrary-runner",
1412
+ "validator": "artifact",
1413
+ "valid": false,
1414
+ "error": "artifact_agent_activation_runner_required",
1415
+ "value": {
1416
+ "contract_version": 2,
1417
+ "id": "bad-agent",
1418
+ "title": "Bad Agent",
1419
+ "root": "outputs/bad-agent",
1420
+ "run": "python server.py",
1421
+ "agent_activation": {
1422
+ "authorities": [],
1423
+ "budget_cents": 0,
1424
+ "lifetime_seconds": 3600,
1425
+ "descendant_ceiling": 0,
1426
+ "activation_mode": "resume",
1427
+ "visibility": "headless"
1428
+ },
1429
+ "inputs": {}
1430
+ }
1431
+ },
1432
+ {
1433
+ "name": "mixed-v1-v2",
1434
+ "validator": "manifest",
1435
+ "valid": true,
1436
+ "value": {
1437
+ "schema": 2,
1438
+ "artifacts": [
1439
+ {
1440
+ "contract_version": 1,
1441
+ "key": "legacy-report",
1442
+ "kind": "briefing",
1443
+ "title": "Legacy report",
1444
+ "entrypoint": "reports/legacy.md",
1445
+ "dependencies": [
1446
+ {
1447
+ "role": "render",
1448
+ "path": "reports/legacy.md"
1449
+ }
1450
+ ],
1451
+ "suggested_surface": "artifact"
1452
+ },
1453
+ {
1454
+ "contract_version": 2,
1455
+ "id": "new-report",
1456
+ "title": "New report",
1457
+ "root": "outputs/new-report",
1458
+ "entry": "report.md",
1459
+ "inputs": {}
1460
+ }
1461
+ ]
1462
+ }
1463
+ },
1464
+ {
1465
+ "name": "legacy-v1-extension-roundtrip",
1466
+ "validator": "manifest",
1467
+ "valid": true,
1468
+ "value": {
1469
+ "schema": 2,
1470
+ "artifacts": [
1471
+ {
1472
+ "contract_version": 1,
1473
+ "key": "legacy-evidence",
1474
+ "kind": "audit",
1475
+ "title": "Legacy evidence",
1476
+ "entrypoint": "reports/evidence.md",
1477
+ "dependencies": [
1478
+ {
1479
+ "role": "render",
1480
+ "path": "reports/evidence.md"
1481
+ }
1482
+ ],
1483
+ "provenance": {
1484
+ "snapshot_id": "snap-17",
1485
+ "sources": [
1486
+ "evidence/a.json"
1487
+ ]
1488
+ }
1489
+ }
1490
+ ]
1491
+ }
1492
+ },
1493
+ {
1494
+ "name": "root-traversal",
1495
+ "validator": "artifact",
1496
+ "valid": false,
1497
+ "error": "artifact_root_invalid",
1498
+ "value": {
1499
+ "contract_version": 2,
1500
+ "id": "bad-root",
1501
+ "title": "Bad root",
1502
+ "root": "../secret",
1503
+ "run": "python viewer.py",
1504
+ "inputs": {}
1505
+ }
1506
+ },
1507
+ {
1508
+ "name": "reserved-root-collision",
1509
+ "validator": "artifact",
1510
+ "valid": false,
1511
+ "error": "artifact_root_invalid",
1512
+ "value": {
1513
+ "contract_version": 2,
1514
+ "id": "reserved-root",
1515
+ "title": "Reserved root",
1516
+ "root": ".dharta/inputs/data",
1517
+ "run": "python viewer.py",
1518
+ "inputs": {}
1519
+ }
1520
+ },
1521
+ {
1522
+ "name": "malicious-shell-nul",
1523
+ "validator": "artifact",
1524
+ "valid": false,
1525
+ "error": "artifact_run_invalid",
1526
+ "value": {
1527
+ "contract_version": 2,
1528
+ "id": "bad-shell",
1529
+ "title": "Bad shell",
1530
+ "root": "outputs/bad-shell",
1531
+ "run": "python viewer.py\u0000--escape",
1532
+ "inputs": {}
1533
+ }
1534
+ },
1535
+ {
1536
+ "name": "empty-run",
1537
+ "validator": "artifact",
1538
+ "valid": false,
1539
+ "error": "artifact_run_invalid",
1540
+ "value": {
1541
+ "contract_version": 2,
1542
+ "id": "empty-run",
1543
+ "title": "Empty run",
1544
+ "root": "outputs/empty-run",
1545
+ "run": "",
1546
+ "inputs": {}
1547
+ }
1548
+ },
1549
+ {
1550
+ "name": "missing-presentation",
1551
+ "validator": "artifact",
1552
+ "valid": false,
1553
+ "error": "artifact_presentation_invalid",
1554
+ "value": {
1555
+ "contract_version": 2,
1556
+ "id": "missing-presentation",
1557
+ "title": "Missing Presentation",
1558
+ "root": "outputs/missing-presentation",
1559
+ "inputs": {}
1560
+ }
1561
+ },
1562
+ {
1563
+ "name": "entry-and-run",
1564
+ "validator": "artifact",
1565
+ "valid": false,
1566
+ "error": "artifact_presentation_invalid",
1567
+ "value": {
1568
+ "contract_version": 2,
1569
+ "id": "entry-and-run",
1570
+ "title": "Entry and Run",
1571
+ "root": "outputs/entry-and-run",
1572
+ "entry": "index.html",
1573
+ "run": "python server.py",
1574
+ "inputs": {}
1575
+ }
1576
+ },
1577
+ {
1578
+ "name": "entry-traversal",
1579
+ "validator": "artifact",
1580
+ "valid": false,
1581
+ "error": "artifact_entry_invalid",
1582
+ "value": {
1583
+ "contract_version": 2,
1584
+ "id": "bad-entry",
1585
+ "title": "Bad Entry",
1586
+ "root": "outputs/bad-entry",
1587
+ "entry": "../secret.md",
1588
+ "inputs": {}
1589
+ }
1590
+ },
1591
+ {
1592
+ "name": "empty-entry",
1593
+ "validator": "artifact",
1594
+ "valid": false,
1595
+ "error": "artifact_entry_invalid",
1596
+ "value": {
1597
+ "contract_version": 2,
1598
+ "id": "empty-entry",
1599
+ "title": "Empty Entry",
1600
+ "root": "outputs/empty-entry",
1601
+ "entry": "",
1602
+ "inputs": {}
1603
+ }
1604
+ },
1605
+ {
1606
+ "name": "invalid-run-unicode",
1607
+ "validator": "artifact",
1608
+ "valid": false,
1609
+ "error": "artifact_run_invalid",
1610
+ "value": {
1611
+ "contract_version": 2,
1612
+ "id": "unicode-run",
1613
+ "title": "Unicode run",
1614
+ "root": "outputs/unicode-run",
1615
+ "run": "python __KARTA_UNPAIRED_SURROGATE__",
1616
+ "inputs": {}
1617
+ }
1618
+ },
1619
+ {
1620
+ "name": "invalid-title-unicode",
1621
+ "validator": "artifact",
1622
+ "valid": false,
1623
+ "error": "artifact_title_invalid",
1624
+ "value": {
1625
+ "contract_version": 2,
1626
+ "id": "unicode-title",
1627
+ "title": "__KARTA_UNPAIRED_SURROGATE__",
1628
+ "root": "outputs/unicode-title",
1629
+ "run": "python viewer.py",
1630
+ "inputs": {}
1631
+ }
1632
+ },
1633
+ {
1634
+ "name": "invalid-root-unicode",
1635
+ "validator": "artifact",
1636
+ "valid": false,
1637
+ "error": "artifact_root_invalid",
1638
+ "value": {
1639
+ "contract_version": 2,
1640
+ "id": "unicode-root",
1641
+ "title": "Unicode root",
1642
+ "root": "outputs/__KARTA_UNPAIRED_SURROGATE__",
1643
+ "run": "python viewer.py",
1644
+ "inputs": {}
1645
+ }
1646
+ },
1647
+ {
1648
+ "name": "invalid-input-source-unicode",
1649
+ "validator": "artifact",
1650
+ "valid": false,
1651
+ "error": "artifact_input_source_invalid",
1652
+ "value": {
1653
+ "contract_version": 2,
1654
+ "id": "unicode-input",
1655
+ "title": "Unicode input",
1656
+ "root": "outputs/unicode-input",
1657
+ "run": "python viewer.py",
1658
+ "inputs": {
1659
+ "data": {
1660
+ "source": "workspace:data/__KARTA_UNPAIRED_SURROGATE__",
1661
+ "freshness": "pinned"
1662
+ }
1663
+ }
1664
+ }
1665
+ },
1666
+ {
1667
+ "name": "invalid-type-id",
1668
+ "validator": "artifact",
1669
+ "valid": false,
1670
+ "error": "artifact_type_id_invalid",
1671
+ "value": {
1672
+ "contract_version": 2,
1673
+ "id": "bad-type",
1674
+ "title": "Bad Type",
1675
+ "type_id": "../report",
1676
+ "root": "outputs/bad-type",
1677
+ "run": "python viewer.py",
1678
+ "inputs": {}
1679
+ }
1680
+ },
1681
+ {
1682
+ "name": "implicit-freshness",
1683
+ "validator": "artifact",
1684
+ "valid": false,
1685
+ "error": "artifact_input_freshness_required",
1686
+ "value": {
1687
+ "contract_version": 2,
1688
+ "id": "implicit-freshness",
1689
+ "title": "Implicit freshness",
1690
+ "root": "outputs/implicit",
1691
+ "run": "python viewer.py",
1692
+ "inputs": {
1693
+ "data": {
1694
+ "source": "workspace:data.sqlite"
1695
+ }
1696
+ }
1697
+ }
1698
+ },
1699
+ {
1700
+ "name": "input-alias-traversal",
1701
+ "validator": "artifact",
1702
+ "valid": false,
1703
+ "error": "artifact_input_alias_invalid",
1704
+ "value": {
1705
+ "contract_version": 2,
1706
+ "id": "bad-alias",
1707
+ "title": "Bad alias",
1708
+ "root": "outputs/bad-alias",
1709
+ "run": "python viewer.py",
1710
+ "inputs": {
1711
+ "../data": {
1712
+ "source": "workspace:data.sqlite",
1713
+ "freshness": "pinned"
1714
+ }
1715
+ }
1716
+ }
1717
+ },
1718
+ {
1719
+ "name": "workspace-source-traversal",
1720
+ "validator": "artifact",
1721
+ "valid": false,
1722
+ "error": "artifact_input_source_invalid",
1723
+ "value": {
1724
+ "contract_version": 2,
1725
+ "id": "bad-source",
1726
+ "title": "Bad source",
1727
+ "root": "outputs/bad-source",
1728
+ "run": "python viewer.py",
1729
+ "inputs": {
1730
+ "data": {
1731
+ "source": "workspace:../secret",
1732
+ "freshness": "pinned"
1733
+ }
1734
+ }
1735
+ }
1736
+ },
1737
+ {
1738
+ "name": "unsupported-connection-v1",
1739
+ "validator": "artifact",
1740
+ "valid": false,
1741
+ "error": "artifact_input_source_invalid",
1742
+ "value": {
1743
+ "contract_version": 2,
1744
+ "id": "connection-input",
1745
+ "title": "Connection input",
1746
+ "root": "outputs/connection",
1747
+ "run": "python viewer.py",
1748
+ "inputs": {
1749
+ "market": {
1750
+ "source": "connection:market-production",
1751
+ "freshness": "follow"
1752
+ }
1753
+ }
1754
+ }
1755
+ },
1756
+ {
1757
+ "name": "escaping-symlink",
1758
+ "validator": "tree",
1759
+ "valid": false,
1760
+ "error": "artifact_tree_symlink_escape",
1761
+ "value": {
1762
+ "scope": "root",
1763
+ "files": 3,
1764
+ "bytes": 200,
1765
+ "escaping_symlink": true,
1766
+ "secret_path": false,
1767
+ "reserved_path_collision": false
1768
+ }
1769
+ },
1770
+ {
1771
+ "name": "malformed-tree-null",
1772
+ "validator": "tree",
1773
+ "valid": false,
1774
+ "error": "artifact_tree_invalid",
1775
+ "value": null
1776
+ },
1777
+ {
1778
+ "name": "invalid-tree-scope",
1779
+ "validator": "tree",
1780
+ "valid": false,
1781
+ "error": "artifact_tree_scope_invalid",
1782
+ "value": {
1783
+ "scope": "bogus",
1784
+ "files": 0,
1785
+ "bytes": 0,
1786
+ "escaping_symlink": false,
1787
+ "secret_path": false,
1788
+ "reserved_path_collision": false
1789
+ }
1790
+ },
1791
+ {
1792
+ "name": "bounded-root-tree",
1793
+ "validator": "tree",
1794
+ "valid": true,
1795
+ "value": {
1796
+ "scope": "root",
1797
+ "files": 20000,
1798
+ "bytes": 1000000000,
1799
+ "escaping_symlink": false,
1800
+ "secret_path": false,
1801
+ "reserved_path_collision": false
1802
+ }
1803
+ },
1804
+ {
1805
+ "name": "secret-input-path",
1806
+ "validator": "tree",
1807
+ "valid": false,
1808
+ "error": "artifact_tree_secret_path",
1809
+ "value": {
1810
+ "scope": "input",
1811
+ "files": 1,
1812
+ "bytes": 100,
1813
+ "escaping_symlink": false,
1814
+ "secret_path": true,
1815
+ "reserved_path_collision": false
1816
+ }
1817
+ },
1818
+ {
1819
+ "name": "oversized-root-tree",
1820
+ "validator": "tree",
1821
+ "valid": false,
1822
+ "error": "artifact_tree_files_exceeded",
1823
+ "value": {
1824
+ "scope": "root",
1825
+ "files": 20001,
1826
+ "bytes": 100,
1827
+ "escaping_symlink": false,
1828
+ "secret_path": false,
1829
+ "reserved_path_collision": false
1830
+ }
1831
+ },
1832
+ {
1833
+ "name": "oversized-input-tree",
1834
+ "validator": "tree",
1835
+ "valid": false,
1836
+ "error": "artifact_tree_bytes_exceeded",
1837
+ "value": {
1838
+ "scope": "input",
1839
+ "files": 1,
1840
+ "bytes": 1000000001,
1841
+ "escaping_symlink": false,
1842
+ "secret_path": false,
1843
+ "reserved_path_collision": false
1844
+ }
1845
+ },
1846
+ {
1847
+ "name": "oversized-static-share",
1848
+ "validator": "tree",
1849
+ "valid": false,
1850
+ "error": "artifact_tree_files_exceeded",
1851
+ "value": {
1852
+ "scope": "static_share",
1853
+ "files": 20001,
1854
+ "bytes": 100,
1855
+ "escaping_symlink": false,
1856
+ "secret_path": false,
1857
+ "reserved_path_collision": false
1858
+ }
1859
+ },
1860
+ {
1861
+ "name": "oversized-combined-inputs",
1862
+ "validator": "tree",
1863
+ "valid": false,
1864
+ "error": "artifact_tree_bytes_exceeded",
1865
+ "value": {
1866
+ "scope": "all_inputs",
1867
+ "files": 2,
1868
+ "bytes": 5000000001,
1869
+ "escaping_symlink": false,
1870
+ "secret_path": false,
1871
+ "reserved_path_collision": false
1872
+ }
1873
+ },
1874
+ {
1875
+ "name": "reserved-input-mount-collision",
1876
+ "validator": "tree",
1877
+ "valid": false,
1878
+ "error": "artifact_tree_reserved_path_collision",
1879
+ "value": {
1880
+ "scope": "root",
1881
+ "files": 4,
1882
+ "bytes": 300,
1883
+ "escaping_symlink": false,
1884
+ "secret_path": false,
1885
+ "reserved_path_collision": true
1886
+ }
1887
+ },
1888
+ {
1889
+ "name": "html-with-charset",
1890
+ "validator": "content_type",
1891
+ "valid": true,
1892
+ "value": "text/html; charset=utf-8"
1893
+ },
1894
+ {
1895
+ "name": "non-html-root",
1896
+ "validator": "content_type",
1897
+ "valid": false,
1898
+ "error": "artifact_root_media_type_invalid",
1899
+ "value": "audio/mpeg"
1900
+ }
1901
+ ]
1902
+ });
1903
+ //# sourceMappingURL=artifact-runtime.generated.js.map