@lushly-dev/violet-afd 0.0.0-stage → 0.3.0-preview.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 (335) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +29 -2
  3. package/dist/commands/analyze/compare.d.ts +36 -0
  4. package/dist/commands/analyze/compare.d.ts.map +1 -0
  5. package/dist/commands/analyze/compare.js +196 -0
  6. package/dist/commands/analyze/compare.js.map +1 -0
  7. package/dist/commands/analyze/compliance.d.ts +41 -0
  8. package/dist/commands/analyze/compliance.d.ts.map +1 -0
  9. package/dist/commands/analyze/compliance.js +166 -0
  10. package/dist/commands/analyze/compliance.js.map +1 -0
  11. package/dist/commands/analyze/deviations.d.ts +30 -0
  12. package/dist/commands/analyze/deviations.d.ts.map +1 -0
  13. package/dist/commands/analyze/deviations.js +201 -0
  14. package/dist/commands/analyze/deviations.js.map +1 -0
  15. package/dist/commands/analyze/health.d.ts +211 -0
  16. package/dist/commands/analyze/health.d.ts.map +1 -0
  17. package/dist/commands/analyze/health.js +697 -0
  18. package/dist/commands/analyze/health.js.map +1 -0
  19. package/dist/commands/analyze/index.d.ts +15 -0
  20. package/dist/commands/analyze/index.d.ts.map +1 -0
  21. package/dist/commands/analyze/index.js +31 -0
  22. package/dist/commands/analyze/index.js.map +1 -0
  23. package/dist/commands/analyze/snapshot.d.ts +64 -0
  24. package/dist/commands/analyze/snapshot.d.ts.map +1 -0
  25. package/dist/commands/analyze/snapshot.js +126 -0
  26. package/dist/commands/analyze/snapshot.js.map +1 -0
  27. package/dist/commands/analyze/trends.d.ts +82 -0
  28. package/dist/commands/analyze/trends.d.ts.map +1 -0
  29. package/dist/commands/analyze/trends.js +312 -0
  30. package/dist/commands/analyze/trends.js.map +1 -0
  31. package/dist/commands/analyze/violations.d.ts +84 -0
  32. package/dist/commands/analyze/violations.d.ts.map +1 -0
  33. package/dist/commands/analyze/violations.js +158 -0
  34. package/dist/commands/analyze/violations.js.map +1 -0
  35. package/dist/commands/apikeys/check.d.ts +39 -0
  36. package/dist/commands/apikeys/check.d.ts.map +1 -0
  37. package/dist/commands/apikeys/check.js +61 -0
  38. package/dist/commands/apikeys/check.js.map +1 -0
  39. package/dist/commands/apikeys/create.d.ts +36 -0
  40. package/dist/commands/apikeys/create.d.ts.map +1 -0
  41. package/dist/commands/apikeys/create.js +116 -0
  42. package/dist/commands/apikeys/create.js.map +1 -0
  43. package/dist/commands/apikeys/index.d.ts +15 -0
  44. package/dist/commands/apikeys/index.d.ts.map +1 -0
  45. package/dist/commands/apikeys/index.js +21 -0
  46. package/dist/commands/apikeys/index.js.map +1 -0
  47. package/dist/commands/apikeys/keys.d.ts +79 -0
  48. package/dist/commands/apikeys/keys.d.ts.map +1 -0
  49. package/dist/commands/apikeys/keys.js +239 -0
  50. package/dist/commands/apikeys/keys.js.map +1 -0
  51. package/dist/commands/audit/index.d.ts +11 -0
  52. package/dist/commands/audit/index.d.ts.map +1 -0
  53. package/dist/commands/audit/index.js +15 -0
  54. package/dist/commands/audit/index.js.map +1 -0
  55. package/dist/commands/audit/list.d.ts +101 -0
  56. package/dist/commands/audit/list.d.ts.map +1 -0
  57. package/dist/commands/audit/list.js +230 -0
  58. package/dist/commands/audit/list.js.map +1 -0
  59. package/dist/commands/changes/impact.d.ts +477 -0
  60. package/dist/commands/changes/impact.d.ts.map +1 -0
  61. package/dist/commands/changes/impact.js +541 -0
  62. package/dist/commands/changes/impact.js.map +1 -0
  63. package/dist/commands/changes/index.d.ts +11 -0
  64. package/dist/commands/changes/index.d.ts.map +1 -0
  65. package/dist/commands/changes/index.js +15 -0
  66. package/dist/commands/changes/index.js.map +1 -0
  67. package/dist/commands/constraints/index.d.ts +11 -0
  68. package/dist/commands/constraints/index.d.ts.map +1 -0
  69. package/dist/commands/constraints/index.js +19 -0
  70. package/dist/commands/constraints/index.js.map +1 -0
  71. package/dist/commands/constraints/list.d.ts +52 -0
  72. package/dist/commands/constraints/list.d.ts.map +1 -0
  73. package/dist/commands/constraints/list.js +103 -0
  74. package/dist/commands/constraints/list.js.map +1 -0
  75. package/dist/commands/constraints/set.d.ts +50 -0
  76. package/dist/commands/constraints/set.d.ts.map +1 -0
  77. package/dist/commands/constraints/set.js +137 -0
  78. package/dist/commands/constraints/set.js.map +1 -0
  79. package/dist/commands/constraints/validate.d.ts +38 -0
  80. package/dist/commands/constraints/validate.d.ts.map +1 -0
  81. package/dist/commands/constraints/validate.js +164 -0
  82. package/dist/commands/constraints/validate.js.map +1 -0
  83. package/dist/commands/docs/generator.d.ts +77 -0
  84. package/dist/commands/docs/generator.d.ts.map +1 -0
  85. package/dist/commands/docs/generator.js +256 -0
  86. package/dist/commands/docs/generator.js.map +1 -0
  87. package/dist/commands/docs/index.d.ts +6 -0
  88. package/dist/commands/docs/index.d.ts.map +1 -0
  89. package/dist/commands/docs/index.js +6 -0
  90. package/dist/commands/docs/index.js.map +1 -0
  91. package/dist/commands/export/export.d.ts +64 -0
  92. package/dist/commands/export/export.d.ts.map +1 -0
  93. package/dist/commands/export/export.js +193 -0
  94. package/dist/commands/export/export.js.map +1 -0
  95. package/dist/commands/export/index.d.ts +9 -0
  96. package/dist/commands/export/index.d.ts.map +1 -0
  97. package/dist/commands/export/index.js +13 -0
  98. package/dist/commands/export/index.js.map +1 -0
  99. package/dist/commands/import/flatten.d.ts +30 -0
  100. package/dist/commands/import/flatten.d.ts.map +1 -0
  101. package/dist/commands/import/flatten.js +121 -0
  102. package/dist/commands/import/flatten.js.map +1 -0
  103. package/dist/commands/import/index.d.ts +11 -0
  104. package/dist/commands/import/index.d.ts.map +1 -0
  105. package/dist/commands/import/index.js +19 -0
  106. package/dist/commands/import/index.js.map +1 -0
  107. package/dist/commands/import/json.d.ts +40 -0
  108. package/dist/commands/import/json.d.ts.map +1 -0
  109. package/dist/commands/import/json.js +209 -0
  110. package/dist/commands/import/json.js.map +1 -0
  111. package/dist/commands/import/tree.d.ts +39 -0
  112. package/dist/commands/import/tree.d.ts.map +1 -0
  113. package/dist/commands/import/tree.js +247 -0
  114. package/dist/commands/import/tree.js.map +1 -0
  115. package/dist/commands/import/validate.d.ts +53 -0
  116. package/dist/commands/import/validate.d.ts.map +1 -0
  117. package/dist/commands/import/validate.js +201 -0
  118. package/dist/commands/import/validate.js.map +1 -0
  119. package/dist/commands/index.d.ts +21 -0
  120. package/dist/commands/index.d.ts.map +1 -0
  121. package/dist/commands/index.js +21 -0
  122. package/dist/commands/index.js.map +1 -0
  123. package/dist/commands/json-schema.d.ts +21 -0
  124. package/dist/commands/json-schema.d.ts.map +1 -0
  125. package/dist/commands/json-schema.js +41 -0
  126. package/dist/commands/json-schema.js.map +1 -0
  127. package/dist/commands/node/create.d.ts +80 -0
  128. package/dist/commands/node/create.d.ts.map +1 -0
  129. package/dist/commands/node/create.js +174 -0
  130. package/dist/commands/node/create.js.map +1 -0
  131. package/dist/commands/node/delete.d.ts +28 -0
  132. package/dist/commands/node/delete.d.ts.map +1 -0
  133. package/dist/commands/node/delete.js +134 -0
  134. package/dist/commands/node/delete.js.map +1 -0
  135. package/dist/commands/node/deprecation.d.ts +23 -0
  136. package/dist/commands/node/deprecation.d.ts.map +1 -0
  137. package/dist/commands/node/deprecation.js +59 -0
  138. package/dist/commands/node/deprecation.js.map +1 -0
  139. package/dist/commands/node/get.d.ts +79 -0
  140. package/dist/commands/node/get.d.ts.map +1 -0
  141. package/dist/commands/node/get.js +106 -0
  142. package/dist/commands/node/get.js.map +1 -0
  143. package/dist/commands/node/graph.d.ts +138 -0
  144. package/dist/commands/node/graph.d.ts.map +1 -0
  145. package/dist/commands/node/graph.js +285 -0
  146. package/dist/commands/node/graph.js.map +1 -0
  147. package/dist/commands/node/index.d.ts +17 -0
  148. package/dist/commands/node/index.d.ts.map +1 -0
  149. package/dist/commands/node/index.js +31 -0
  150. package/dist/commands/node/index.js.map +1 -0
  151. package/dist/commands/node/list.d.ts +74 -0
  152. package/dist/commands/node/list.d.ts.map +1 -0
  153. package/dist/commands/node/list.js +130 -0
  154. package/dist/commands/node/list.js.map +1 -0
  155. package/dist/commands/node/operations.d.ts +35 -0
  156. package/dist/commands/node/operations.d.ts.map +1 -0
  157. package/dist/commands/node/operations.js +66 -0
  158. package/dist/commands/node/operations.js.map +1 -0
  159. package/dist/commands/node/scope.d.ts +14 -0
  160. package/dist/commands/node/scope.d.ts.map +1 -0
  161. package/dist/commands/node/scope.js +49 -0
  162. package/dist/commands/node/scope.js.map +1 -0
  163. package/dist/commands/node/update.d.ts +84 -0
  164. package/dist/commands/node/update.d.ts.map +1 -0
  165. package/dist/commands/node/update.js +229 -0
  166. package/dist/commands/node/update.js.map +1 -0
  167. package/dist/commands/registry.d.ts +126 -0
  168. package/dist/commands/registry.d.ts.map +1 -0
  169. package/dist/commands/registry.js +141 -0
  170. package/dist/commands/registry.js.map +1 -0
  171. package/dist/commands/specimen/get.d.ts +47 -0
  172. package/dist/commands/specimen/get.d.ts.map +1 -0
  173. package/dist/commands/specimen/get.js +124 -0
  174. package/dist/commands/specimen/get.js.map +1 -0
  175. package/dist/commands/specimen/index.d.ts +10 -0
  176. package/dist/commands/specimen/index.d.ts.map +1 -0
  177. package/dist/commands/specimen/index.js +16 -0
  178. package/dist/commands/specimen/index.js.map +1 -0
  179. package/dist/commands/specimen/set.d.ts +31 -0
  180. package/dist/commands/specimen/set.d.ts.map +1 -0
  181. package/dist/commands/specimen/set.js +198 -0
  182. package/dist/commands/specimen/set.js.map +1 -0
  183. package/dist/commands/specimen/shared.d.ts +15 -0
  184. package/dist/commands/specimen/shared.d.ts.map +1 -0
  185. package/dist/commands/specimen/shared.js +26 -0
  186. package/dist/commands/specimen/shared.js.map +1 -0
  187. package/dist/commands/system/doctor.d.ts +48 -0
  188. package/dist/commands/system/doctor.d.ts.map +1 -0
  189. package/dist/commands/system/doctor.js +224 -0
  190. package/dist/commands/system/doctor.js.map +1 -0
  191. package/dist/commands/system/index.d.ts +12 -0
  192. package/dist/commands/system/index.d.ts.map +1 -0
  193. package/dist/commands/system/index.js +17 -0
  194. package/dist/commands/system/index.js.map +1 -0
  195. package/dist/commands/system/validate.d.ts +47 -0
  196. package/dist/commands/system/validate.d.ts.map +1 -0
  197. package/dist/commands/system/validate.js +245 -0
  198. package/dist/commands/system/validate.js.map +1 -0
  199. package/dist/commands/token/add.d.ts +94 -0
  200. package/dist/commands/token/add.d.ts.map +1 -0
  201. package/dist/commands/token/add.js +162 -0
  202. package/dist/commands/token/add.js.map +1 -0
  203. package/dist/commands/token/catalog.d.ts +69 -0
  204. package/dist/commands/token/catalog.d.ts.map +1 -0
  205. package/dist/commands/token/catalog.js +175 -0
  206. package/dist/commands/token/catalog.js.map +1 -0
  207. package/dist/commands/token/compare.d.ts +140 -0
  208. package/dist/commands/token/compare.d.ts.map +1 -0
  209. package/dist/commands/token/compare.js +207 -0
  210. package/dist/commands/token/compare.js.map +1 -0
  211. package/dist/commands/token/copy.d.ts +31 -0
  212. package/dist/commands/token/copy.d.ts.map +1 -0
  213. package/dist/commands/token/copy.js +179 -0
  214. package/dist/commands/token/copy.js.map +1 -0
  215. package/dist/commands/token/definitions.d.ts +29 -0
  216. package/dist/commands/token/definitions.d.ts.map +1 -0
  217. package/dist/commands/token/definitions.js +63 -0
  218. package/dist/commands/token/definitions.js.map +1 -0
  219. package/dist/commands/token/index.d.ts +22 -0
  220. package/dist/commands/token/index.d.ts.map +1 -0
  221. package/dist/commands/token/index.js +44 -0
  222. package/dist/commands/token/index.js.map +1 -0
  223. package/dist/commands/token/lineage.d.ts +43 -0
  224. package/dist/commands/token/lineage.d.ts.map +1 -0
  225. package/dist/commands/token/lineage.js +187 -0
  226. package/dist/commands/token/lineage.js.map +1 -0
  227. package/dist/commands/token/matrix.d.ts +249 -0
  228. package/dist/commands/token/matrix.d.ts.map +1 -0
  229. package/dist/commands/token/matrix.js +658 -0
  230. package/dist/commands/token/matrix.js.map +1 -0
  231. package/dist/commands/token/override.d.ts +51 -0
  232. package/dist/commands/token/override.d.ts.map +1 -0
  233. package/dist/commands/token/override.js +158 -0
  234. package/dist/commands/token/override.js.map +1 -0
  235. package/dist/commands/token/previous-value.d.ts +23 -0
  236. package/dist/commands/token/previous-value.d.ts.map +1 -0
  237. package/dist/commands/token/previous-value.js +26 -0
  238. package/dist/commands/token/previous-value.js.map +1 -0
  239. package/dist/commands/token/reset.d.ts +29 -0
  240. package/dist/commands/token/reset.d.ts.map +1 -0
  241. package/dist/commands/token/reset.js +143 -0
  242. package/dist/commands/token/reset.js.map +1 -0
  243. package/dist/commands/token/resolve.d.ts +43 -0
  244. package/dist/commands/token/resolve.d.ts.map +1 -0
  245. package/dist/commands/token/resolve.js +136 -0
  246. package/dist/commands/token/resolve.js.map +1 -0
  247. package/dist/commands/token/subtract.d.ts +27 -0
  248. package/dist/commands/token/subtract.d.ts.map +1 -0
  249. package/dist/commands/token/subtract.js +129 -0
  250. package/dist/commands/token/subtract.js.map +1 -0
  251. package/dist/commands/webhooks/delete.d.ts +31 -0
  252. package/dist/commands/webhooks/delete.d.ts.map +1 -0
  253. package/dist/commands/webhooks/delete.js +94 -0
  254. package/dist/commands/webhooks/delete.js.map +1 -0
  255. package/dist/commands/webhooks/get.d.ts +50 -0
  256. package/dist/commands/webhooks/get.d.ts.map +1 -0
  257. package/dist/commands/webhooks/get.js +122 -0
  258. package/dist/commands/webhooks/get.js.map +1 -0
  259. package/dist/commands/webhooks/index.d.ts +24 -0
  260. package/dist/commands/webhooks/index.d.ts.map +1 -0
  261. package/dist/commands/webhooks/index.js +41 -0
  262. package/dist/commands/webhooks/index.js.map +1 -0
  263. package/dist/commands/webhooks/list.d.ts +72 -0
  264. package/dist/commands/webhooks/list.d.ts.map +1 -0
  265. package/dist/commands/webhooks/list.js +116 -0
  266. package/dist/commands/webhooks/list.js.map +1 -0
  267. package/dist/commands/webhooks/logs.d.ts +65 -0
  268. package/dist/commands/webhooks/logs.d.ts.map +1 -0
  269. package/dist/commands/webhooks/logs.js +138 -0
  270. package/dist/commands/webhooks/logs.js.map +1 -0
  271. package/dist/commands/webhooks/redact.d.ts +18 -0
  272. package/dist/commands/webhooks/redact.d.ts.map +1 -0
  273. package/dist/commands/webhooks/redact.js +24 -0
  274. package/dist/commands/webhooks/redact.js.map +1 -0
  275. package/dist/commands/webhooks/register.d.ts +78 -0
  276. package/dist/commands/webhooks/register.d.ts.map +1 -0
  277. package/dist/commands/webhooks/register.js +175 -0
  278. package/dist/commands/webhooks/register.js.map +1 -0
  279. package/dist/commands/webhooks/test.d.ts +32 -0
  280. package/dist/commands/webhooks/test.d.ts.map +1 -0
  281. package/dist/commands/webhooks/test.js +101 -0
  282. package/dist/commands/webhooks/test.js.map +1 -0
  283. package/dist/commands/webhooks/update.d.ts +77 -0
  284. package/dist/commands/webhooks/update.d.ts.map +1 -0
  285. package/dist/commands/webhooks/update.js +198 -0
  286. package/dist/commands/webhooks/update.js.map +1 -0
  287. package/dist/css.d.ts +3 -0
  288. package/dist/css.d.ts.map +1 -0
  289. package/dist/css.js +3 -0
  290. package/dist/css.js.map +1 -0
  291. package/dist/demo/index.d.ts +8 -0
  292. package/dist/demo/index.d.ts.map +1 -0
  293. package/dist/demo/index.js +8 -0
  294. package/dist/demo/index.js.map +1 -0
  295. package/dist/demo/realistic-system.d.ts +54 -0
  296. package/dist/demo/realistic-system.d.ts.map +1 -0
  297. package/dist/demo/realistic-system.js +919 -0
  298. package/dist/demo/realistic-system.js.map +1 -0
  299. package/dist/index.d.ts +21 -0
  300. package/dist/index.d.ts.map +1 -0
  301. package/dist/index.js +60 -0
  302. package/dist/index.js.map +1 -0
  303. package/dist/types/command-result.d.ts +10 -0
  304. package/dist/types/command-result.d.ts.map +1 -0
  305. package/dist/types/command-result.js +11 -0
  306. package/dist/types/command-result.js.map +1 -0
  307. package/dist/types/index.d.ts +8 -0
  308. package/dist/types/index.d.ts.map +1 -0
  309. package/dist/types/index.js +10 -0
  310. package/dist/types/index.js.map +1 -0
  311. package/dist/version.d.ts +3 -0
  312. package/dist/version.d.ts.map +1 -0
  313. package/dist/version.js +4 -0
  314. package/dist/version.js.map +1 -0
  315. package/dist/webhooks/dispatcher.d.ts +147 -0
  316. package/dist/webhooks/dispatcher.d.ts.map +1 -0
  317. package/dist/webhooks/dispatcher.js +420 -0
  318. package/dist/webhooks/dispatcher.js.map +1 -0
  319. package/dist/webhooks/index.d.ts +9 -0
  320. package/dist/webhooks/index.d.ts.map +1 -0
  321. package/dist/webhooks/index.js +9 -0
  322. package/dist/webhooks/index.js.map +1 -0
  323. package/dist/webhooks/signer.d.ts +119 -0
  324. package/dist/webhooks/signer.d.ts.map +1 -0
  325. package/dist/webhooks/signer.js +149 -0
  326. package/dist/webhooks/signer.js.map +1 -0
  327. package/dist/webhooks/url-policy.d.ts +73 -0
  328. package/dist/webhooks/url-policy.d.ts.map +1 -0
  329. package/dist/webhooks/url-policy.js +250 -0
  330. package/dist/webhooks/url-policy.js.map +1 -0
  331. package/dist/worker.d.ts +11 -0
  332. package/dist/worker.d.ts.map +1 -0
  333. package/dist/worker.js +31 -0
  334. package/dist/worker.js.map +1 -0
  335. package/package.json +84 -3
@@ -0,0 +1,477 @@
1
+ import { z } from 'zod';
2
+ import type { CommandDefinition } from '../registry.js';
3
+ /** Upper bound on proposed changes in one preview */
4
+ export declare const MAX_IMPACT_CHANGES = 50;
5
+ /**
6
+ * A proposed token operation on the previewed node. Copies are left out: they
7
+ * add a dependency edge rather than change a value.
8
+ */
9
+ export declare const ImpactChangeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10
+ type: z.ZodLiteral<"add">;
11
+ tokenId: z.ZodString;
12
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
13
+ ref: z.ZodString;
14
+ transform: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strict>, z.ZodObject<{
16
+ web: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
17
+ ios: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
18
+ android: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
19
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
20
+ metadata: z.ZodOptional<z.ZodObject<{
21
+ description: z.ZodOptional<z.ZodString>;
22
+ type: z.ZodOptional<z.ZodString>;
23
+ category: z.ZodDefault<z.ZodEnum<{
24
+ color: "color";
25
+ custom: "custom";
26
+ motion: "motion";
27
+ opacity: "opacity";
28
+ radius: "radius";
29
+ shadow: "shadow";
30
+ spacing: "spacing";
31
+ typography: "typography";
32
+ "z-index": "z-index";
33
+ }>>;
34
+ tier: z.ZodDefault<z.ZodEnum<{
35
+ component: "component";
36
+ global: "global";
37
+ semantic: "semantic";
38
+ }>>;
39
+ status: z.ZodDefault<z.ZodEnum<{
40
+ beta: "beta";
41
+ deprecated: "deprecated";
42
+ stable: "stable";
43
+ }>>;
44
+ deprecatedBy: z.ZodOptional<z.ZodString>;
45
+ since: z.ZodOptional<z.ZodString>;
46
+ owner: z.ZodOptional<z.ZodString>;
47
+ platforms: z.ZodDefault<z.ZodArray<z.ZodString>>;
48
+ cssProperty: z.ZodOptional<z.ZodString>;
49
+ figmaVariable: z.ZodOptional<z.ZodString>;
50
+ constraint: z.ZodOptional<z.ZodObject<{
51
+ type: z.ZodEnum<{
52
+ color: "color";
53
+ dimension: "dimension";
54
+ enum: "enum";
55
+ ratio: "ratio";
56
+ }>;
57
+ contrastAgainst: z.ZodOptional<z.ZodString>;
58
+ minContrast: z.ZodOptional<z.ZodNumber>;
59
+ wcagLevel: z.ZodOptional<z.ZodEnum<{
60
+ AA: "AA";
61
+ AAA: "AAA";
62
+ }>>;
63
+ min: z.ZodOptional<z.ZodNumber>;
64
+ max: z.ZodOptional<z.ZodNumber>;
65
+ unit: z.ZodOptional<z.ZodString>;
66
+ multipleOf: z.ZodOptional<z.ZodNumber>;
67
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
+ }, z.core.$strip>>;
69
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ type: z.ZodLiteral<"override">;
73
+ tokenId: z.ZodString;
74
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
75
+ ref: z.ZodString;
76
+ transform: z.ZodOptional<z.ZodString>;
77
+ }, z.core.$strict>, z.ZodObject<{
78
+ web: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
79
+ ios: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
80
+ android: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
81
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ type: z.ZodLiteral<"subtract">;
84
+ tokenId: z.ZodString;
85
+ }, z.core.$strip>, z.ZodObject<{
86
+ type: z.ZodLiteral<"reset">;
87
+ tokenId: z.ZodString;
88
+ toAncestor: z.ZodOptional<z.ZodString>;
89
+ }, z.core.$strip>], "type">;
90
+ export type ImpactChange = z.infer<typeof ImpactChangeSchema>;
91
+ /**
92
+ * Input schema for changes.impact command
93
+ */
94
+ declare const InputSchema: z.ZodObject<{
95
+ nodeId: z.ZodString;
96
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
97
+ type: z.ZodLiteral<"add">;
98
+ tokenId: z.ZodString;
99
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
100
+ ref: z.ZodString;
101
+ transform: z.ZodOptional<z.ZodString>;
102
+ }, z.core.$strict>, z.ZodObject<{
103
+ web: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
104
+ ios: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
105
+ android: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
106
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
107
+ metadata: z.ZodOptional<z.ZodObject<{
108
+ description: z.ZodOptional<z.ZodString>;
109
+ type: z.ZodOptional<z.ZodString>;
110
+ category: z.ZodDefault<z.ZodEnum<{
111
+ color: "color";
112
+ custom: "custom";
113
+ motion: "motion";
114
+ opacity: "opacity";
115
+ radius: "radius";
116
+ shadow: "shadow";
117
+ spacing: "spacing";
118
+ typography: "typography";
119
+ "z-index": "z-index";
120
+ }>>;
121
+ tier: z.ZodDefault<z.ZodEnum<{
122
+ component: "component";
123
+ global: "global";
124
+ semantic: "semantic";
125
+ }>>;
126
+ status: z.ZodDefault<z.ZodEnum<{
127
+ beta: "beta";
128
+ deprecated: "deprecated";
129
+ stable: "stable";
130
+ }>>;
131
+ deprecatedBy: z.ZodOptional<z.ZodString>;
132
+ since: z.ZodOptional<z.ZodString>;
133
+ owner: z.ZodOptional<z.ZodString>;
134
+ platforms: z.ZodDefault<z.ZodArray<z.ZodString>>;
135
+ cssProperty: z.ZodOptional<z.ZodString>;
136
+ figmaVariable: z.ZodOptional<z.ZodString>;
137
+ constraint: z.ZodOptional<z.ZodObject<{
138
+ type: z.ZodEnum<{
139
+ color: "color";
140
+ dimension: "dimension";
141
+ enum: "enum";
142
+ ratio: "ratio";
143
+ }>;
144
+ contrastAgainst: z.ZodOptional<z.ZodString>;
145
+ minContrast: z.ZodOptional<z.ZodNumber>;
146
+ wcagLevel: z.ZodOptional<z.ZodEnum<{
147
+ AA: "AA";
148
+ AAA: "AAA";
149
+ }>>;
150
+ min: z.ZodOptional<z.ZodNumber>;
151
+ max: z.ZodOptional<z.ZodNumber>;
152
+ unit: z.ZodOptional<z.ZodString>;
153
+ multipleOf: z.ZodOptional<z.ZodNumber>;
154
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
155
+ }, z.core.$strip>>;
156
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
157
+ }, z.core.$strip>>;
158
+ }, z.core.$strip>, z.ZodObject<{
159
+ type: z.ZodLiteral<"override">;
160
+ tokenId: z.ZodString;
161
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
162
+ ref: z.ZodString;
163
+ transform: z.ZodOptional<z.ZodString>;
164
+ }, z.core.$strict>, z.ZodObject<{
165
+ web: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
166
+ ios: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
167
+ android: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
168
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ type: z.ZodLiteral<"subtract">;
171
+ tokenId: z.ZodString;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ type: z.ZodLiteral<"reset">;
174
+ tokenId: z.ZodString;
175
+ toAncestor: z.ZodOptional<z.ZodString>;
176
+ }, z.core.$strip>], "type">>;
177
+ includeViolations: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
178
+ }, z.core.$strip>;
179
+ /**
180
+ * What a change does to one token at one node.
181
+ *
182
+ * - changes: the value differs afterwards
183
+ * - added / removed: the token appears or disappears
184
+ * - shielded: the value stays because a customization closer to the node
185
+ * (its own, an ancestor's, or a mixed-in set's) wins; see `shieldedBy`
186
+ * - unaffected: the value stays and nothing shields it (e.g. a no-op change,
187
+ * or a node that never had the token)
188
+ * - unresolved: the node could not be resolved (e.g. a copy/include cycle)
189
+ */
190
+ export declare const ImpactEffectSchema: z.ZodEnum<{
191
+ added: "added";
192
+ changes: "changes";
193
+ removed: "removed";
194
+ shielded: "shielded";
195
+ unaffected: "unaffected";
196
+ unresolved: "unresolved";
197
+ }>;
198
+ export type ImpactEffect = z.infer<typeof ImpactEffectSchema>;
199
+ /**
200
+ * How the change reaches a node: it is the changed node, a descendant, a node
201
+ * that mixes in an affected node, or one that borrows (copies) from one.
202
+ */
203
+ export declare const ImpactViaSchema: z.ZodEnum<{
204
+ copy: "copy";
205
+ direct: "direct";
206
+ include: "include";
207
+ inheritance: "inheritance";
208
+ }>;
209
+ export type ImpactVia = z.infer<typeof ImpactViaSchema>;
210
+ /**
211
+ * Output schema for changes.impact command
212
+ */
213
+ declare const OutputSchema: z.ZodObject<{
214
+ nodeId: z.ZodString;
215
+ changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
216
+ type: z.ZodLiteral<"add">;
217
+ tokenId: z.ZodString;
218
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
219
+ ref: z.ZodString;
220
+ transform: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$strict>, z.ZodObject<{
222
+ web: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
223
+ ios: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
224
+ android: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
225
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
226
+ metadata: z.ZodOptional<z.ZodObject<{
227
+ description: z.ZodOptional<z.ZodString>;
228
+ type: z.ZodOptional<z.ZodString>;
229
+ category: z.ZodDefault<z.ZodEnum<{
230
+ color: "color";
231
+ custom: "custom";
232
+ motion: "motion";
233
+ opacity: "opacity";
234
+ radius: "radius";
235
+ shadow: "shadow";
236
+ spacing: "spacing";
237
+ typography: "typography";
238
+ "z-index": "z-index";
239
+ }>>;
240
+ tier: z.ZodDefault<z.ZodEnum<{
241
+ component: "component";
242
+ global: "global";
243
+ semantic: "semantic";
244
+ }>>;
245
+ status: z.ZodDefault<z.ZodEnum<{
246
+ beta: "beta";
247
+ deprecated: "deprecated";
248
+ stable: "stable";
249
+ }>>;
250
+ deprecatedBy: z.ZodOptional<z.ZodString>;
251
+ since: z.ZodOptional<z.ZodString>;
252
+ owner: z.ZodOptional<z.ZodString>;
253
+ platforms: z.ZodDefault<z.ZodArray<z.ZodString>>;
254
+ cssProperty: z.ZodOptional<z.ZodString>;
255
+ figmaVariable: z.ZodOptional<z.ZodString>;
256
+ constraint: z.ZodOptional<z.ZodObject<{
257
+ type: z.ZodEnum<{
258
+ color: "color";
259
+ dimension: "dimension";
260
+ enum: "enum";
261
+ ratio: "ratio";
262
+ }>;
263
+ contrastAgainst: z.ZodOptional<z.ZodString>;
264
+ minContrast: z.ZodOptional<z.ZodNumber>;
265
+ wcagLevel: z.ZodOptional<z.ZodEnum<{
266
+ AA: "AA";
267
+ AAA: "AAA";
268
+ }>>;
269
+ min: z.ZodOptional<z.ZodNumber>;
270
+ max: z.ZodOptional<z.ZodNumber>;
271
+ unit: z.ZodOptional<z.ZodString>;
272
+ multipleOf: z.ZodOptional<z.ZodNumber>;
273
+ allowedValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
274
+ }, z.core.$strip>>;
275
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
276
+ }, z.core.$strip>>;
277
+ }, z.core.$strip>, z.ZodObject<{
278
+ type: z.ZodLiteral<"override">;
279
+ tokenId: z.ZodString;
280
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
281
+ ref: z.ZodString;
282
+ transform: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ web: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
285
+ ios: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
286
+ android: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
287
+ }, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
288
+ }, z.core.$strip>, z.ZodObject<{
289
+ type: z.ZodLiteral<"subtract">;
290
+ tokenId: z.ZodString;
291
+ }, z.core.$strip>, z.ZodObject<{
292
+ type: z.ZodLiteral<"reset">;
293
+ tokenId: z.ZodString;
294
+ toAncestor: z.ZodOptional<z.ZodString>;
295
+ }, z.core.$strip>], "type">>;
296
+ nodes: z.ZodArray<z.ZodObject<{
297
+ id: z.ZodString;
298
+ name: z.ZodString;
299
+ type: z.ZodString;
300
+ status: z.ZodString;
301
+ parentId: z.ZodNullable<z.ZodString>;
302
+ depth: z.ZodNumber;
303
+ via: z.ZodEnum<{
304
+ copy: "copy";
305
+ direct: "direct";
306
+ include: "include";
307
+ inheritance: "inheritance";
308
+ }>;
309
+ through: z.ZodOptional<z.ZodString>;
310
+ effect: z.ZodEnum<{
311
+ added: "added";
312
+ changes: "changes";
313
+ removed: "removed";
314
+ shielded: "shielded";
315
+ unaffected: "unaffected";
316
+ unresolved: "unresolved";
317
+ }>;
318
+ tokens: z.ZodArray<z.ZodObject<{
319
+ tokenId: z.ZodString;
320
+ effect: z.ZodEnum<{
321
+ added: "added";
322
+ changes: "changes";
323
+ removed: "removed";
324
+ shielded: "shielded";
325
+ unaffected: "unaffected";
326
+ unresolved: "unresolved";
327
+ }>;
328
+ before: z.ZodObject<{
329
+ state: z.ZodEnum<{
330
+ absent: "absent";
331
+ add: "add";
332
+ copy: "copy";
333
+ include: "include";
334
+ inherited: "inherited";
335
+ override: "override";
336
+ reset: "reset";
337
+ subtracted: "subtracted";
338
+ unresolved: "unresolved";
339
+ }>;
340
+ value: z.ZodOptional<z.ZodAny>;
341
+ resolvedValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
342
+ aliasOf: z.ZodOptional<z.ZodString>;
343
+ referenceError: z.ZodOptional<z.ZodObject<{
344
+ code: z.ZodEnum<{
345
+ CIRCULAR_REFERENCE: "CIRCULAR_REFERENCE";
346
+ NOT_IMPLEMENTED: "NOT_IMPLEMENTED";
347
+ TOKEN_REFERENCE_NOT_FOUND: "TOKEN_REFERENCE_NOT_FOUND";
348
+ }>;
349
+ message: z.ZodString;
350
+ path: z.ZodArray<z.ZodString>;
351
+ }, z.core.$strip>>;
352
+ source: z.ZodNullable<z.ZodString>;
353
+ fromNode: z.ZodOptional<z.ZodString>;
354
+ violations: z.ZodOptional<z.ZodArray<z.ZodObject<{
355
+ constraintId: z.ZodString;
356
+ severity: z.ZodEnum<{
357
+ error: "error";
358
+ info: "info";
359
+ warning: "warning";
360
+ }>;
361
+ message: z.ZodString;
362
+ }, z.core.$strip>>>;
363
+ }, z.core.$strip>;
364
+ after: z.ZodObject<{
365
+ state: z.ZodEnum<{
366
+ absent: "absent";
367
+ add: "add";
368
+ copy: "copy";
369
+ include: "include";
370
+ inherited: "inherited";
371
+ override: "override";
372
+ reset: "reset";
373
+ subtracted: "subtracted";
374
+ unresolved: "unresolved";
375
+ }>;
376
+ value: z.ZodOptional<z.ZodAny>;
377
+ resolvedValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
378
+ aliasOf: z.ZodOptional<z.ZodString>;
379
+ referenceError: z.ZodOptional<z.ZodObject<{
380
+ code: z.ZodEnum<{
381
+ CIRCULAR_REFERENCE: "CIRCULAR_REFERENCE";
382
+ NOT_IMPLEMENTED: "NOT_IMPLEMENTED";
383
+ TOKEN_REFERENCE_NOT_FOUND: "TOKEN_REFERENCE_NOT_FOUND";
384
+ }>;
385
+ message: z.ZodString;
386
+ path: z.ZodArray<z.ZodString>;
387
+ }, z.core.$strip>>;
388
+ source: z.ZodNullable<z.ZodString>;
389
+ fromNode: z.ZodOptional<z.ZodString>;
390
+ violations: z.ZodOptional<z.ZodArray<z.ZodObject<{
391
+ constraintId: z.ZodString;
392
+ severity: z.ZodEnum<{
393
+ error: "error";
394
+ info: "info";
395
+ warning: "warning";
396
+ }>;
397
+ message: z.ZodString;
398
+ }, z.core.$strip>>>;
399
+ }, z.core.$strip>;
400
+ shieldedBy: z.ZodOptional<z.ZodString>;
401
+ copySourceRemoved: z.ZodOptional<z.ZodString>;
402
+ direct: z.ZodBoolean;
403
+ }, z.core.$strip>>;
404
+ violations: z.ZodObject<{
405
+ introduced: z.ZodArray<z.ZodObject<{
406
+ nodeId: z.ZodString;
407
+ owner: z.ZodOptional<z.ZodString>;
408
+ tokenId: z.ZodString;
409
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
410
+ source: z.ZodString;
411
+ inherited: z.ZodBoolean;
412
+ constraintId: z.ZodString;
413
+ constraintName: z.ZodString;
414
+ severity: z.ZodEnum<{
415
+ error: "error";
416
+ info: "info";
417
+ warning: "warning";
418
+ }>;
419
+ message: z.ZodString;
420
+ expected: z.ZodOptional<z.ZodString>;
421
+ actual: z.ZodOptional<z.ZodString>;
422
+ }, z.core.$strip>>;
423
+ resolved: z.ZodArray<z.ZodObject<{
424
+ nodeId: z.ZodString;
425
+ owner: z.ZodOptional<z.ZodString>;
426
+ tokenId: z.ZodString;
427
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
428
+ source: z.ZodString;
429
+ inherited: z.ZodBoolean;
430
+ constraintId: z.ZodString;
431
+ constraintName: z.ZodString;
432
+ severity: z.ZodEnum<{
433
+ error: "error";
434
+ info: "info";
435
+ warning: "warning";
436
+ }>;
437
+ message: z.ZodString;
438
+ expected: z.ZodOptional<z.ZodString>;
439
+ actual: z.ZodOptional<z.ZodString>;
440
+ }, z.core.$strip>>;
441
+ }, z.core.$strip>;
442
+ error: z.ZodOptional<z.ZodString>;
443
+ }, z.core.$strip>>;
444
+ apply: z.ZodArray<z.ZodObject<{
445
+ command: z.ZodString;
446
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
447
+ cli: z.ZodString;
448
+ }, z.core.$strip>>;
449
+ summary: z.ZodObject<{
450
+ nodes: z.ZodNumber;
451
+ effects: z.ZodObject<{
452
+ changes: z.ZodNumber;
453
+ added: z.ZodNumber;
454
+ removed: z.ZodNumber;
455
+ shielded: z.ZodNumber;
456
+ unaffected: z.ZodNumber;
457
+ unresolved: z.ZodNumber;
458
+ }, z.core.$strip>;
459
+ violationsIntroduced: z.ZodNumber;
460
+ violationsResolved: z.ZodNumber;
461
+ breakingNodes: z.ZodNumber;
462
+ violationsChecked: z.ZodBoolean;
463
+ }, z.core.$strip>;
464
+ }, z.core.$strip>;
465
+ type Output = z.infer<typeof OutputSchema>;
466
+ /**
467
+ * changes.impact command
468
+ *
469
+ * Dry-run token operations on a node and report the effect across the graph:
470
+ * per affected node, before → after, whether its own customization shields
471
+ * it, how the change reaches it, and which constraint violations it would
472
+ * introduce or resolve. Nothing is written: the changes are staged on a
473
+ * read-only overlay of the database.
474
+ */
475
+ export declare const changesImpactCommand: CommandDefinition<typeof InputSchema, Output>;
476
+ export {};
477
+ //# sourceMappingURL=impact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"impact.d.ts","sourceRoot":"","sources":["../../../src/commands/changes/impact.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAkB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAYxE,qDAAqD;AACrD,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAIrC;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAU7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;GAEG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIf,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;;;EAO7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;EAAuD,CAAC;AAEpF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AA0CxD;;GAEG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBhB,CAAC;AAEH,KAAK,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAoW3C;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,OAAO,WAAW,EAAE,MAAM,CAiH9E,CAAC"}