@hozu/cli 0.13.0 → 0.15.0

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 (104) hide show
  1. package/dist/commands/accept.d.ts +11 -0
  2. package/dist/commands/accept.d.ts.map +1 -0
  3. package/dist/commands/accept.js +55 -0
  4. package/dist/commands/accept.js.map +1 -0
  5. package/dist/commands/add.d.ts.map +1 -1
  6. package/dist/commands/add.js +4 -1
  7. package/dist/commands/add.js.map +1 -1
  8. package/dist/commands/browse-tab.d.ts +2 -0
  9. package/dist/commands/browse-tab.d.ts.map +1 -1
  10. package/dist/commands/browse-tab.js +3 -1
  11. package/dist/commands/browse-tab.js.map +1 -1
  12. package/dist/commands/browse.d.ts +4 -0
  13. package/dist/commands/browse.d.ts.map +1 -1
  14. package/dist/commands/browse.js +80 -9
  15. package/dist/commands/browse.js.map +1 -1
  16. package/dist/commands/build.js +1 -1
  17. package/dist/commands/build.js.map +1 -1
  18. package/dist/commands/call.d.ts +2 -0
  19. package/dist/commands/call.d.ts.map +1 -1
  20. package/dist/commands/call.js +73 -10
  21. package/dist/commands/call.js.map +1 -1
  22. package/dist/commands/check.d.ts.map +1 -1
  23. package/dist/commands/check.js +3 -4
  24. package/dist/commands/check.js.map +1 -1
  25. package/dist/commands/docs.d.ts +3 -1
  26. package/dist/commands/docs.d.ts.map +1 -1
  27. package/dist/commands/docs.js +23 -3
  28. package/dist/commands/docs.js.map +1 -1
  29. package/dist/commands/explain.js +1 -1
  30. package/dist/commands/explain.js.map +1 -1
  31. package/dist/commands/impact.d.ts.map +1 -1
  32. package/dist/commands/impact.js +4 -2
  33. package/dist/commands/impact.js.map +1 -1
  34. package/dist/commands/locate.js +2 -2
  35. package/dist/commands/locate.js.map +1 -1
  36. package/dist/commands/map.d.ts.map +1 -1
  37. package/dist/commands/map.js +5 -3
  38. package/dist/commands/map.js.map +1 -1
  39. package/dist/commands/plan.d.ts.map +1 -1
  40. package/dist/commands/plan.js +8 -0
  41. package/dist/commands/plan.js.map +1 -1
  42. package/dist/commands/scaffold.d.ts.map +1 -1
  43. package/dist/commands/scaffold.js +19 -22
  44. package/dist/commands/scaffold.js.map +1 -1
  45. package/dist/commands/serve.d.ts.map +1 -1
  46. package/dist/commands/serve.js +2 -0
  47. package/dist/commands/serve.js.map +1 -1
  48. package/dist/commands/show.d.ts +11 -0
  49. package/dist/commands/show.d.ts.map +1 -0
  50. package/dist/commands/show.js +55 -0
  51. package/dist/commands/show.js.map +1 -0
  52. package/dist/commands/validate.d.ts.map +1 -1
  53. package/dist/commands/validate.js +9 -3
  54. package/dist/commands/validate.js.map +1 -1
  55. package/dist/commands/why.d.ts +6 -0
  56. package/dist/commands/why.d.ts.map +1 -0
  57. package/dist/commands/why.js +73 -0
  58. package/dist/commands/why.js.map +1 -0
  59. package/dist/contract.d.ts +47 -21
  60. package/dist/contract.d.ts.map +1 -1
  61. package/dist/index.d.ts +0 -1
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +0 -1
  64. package/dist/index.js.map +1 -1
  65. package/dist/main.d.ts +2 -0
  66. package/dist/main.d.ts.map +1 -1
  67. package/dist/main.js +127 -65
  68. package/dist/main.js.map +1 -1
  69. package/dist/migrate/step-0.11.d.ts +7 -1
  70. package/dist/migrate/step-0.11.d.ts.map +1 -1
  71. package/dist/migrate/step-0.11.js +6 -4
  72. package/dist/migrate/step-0.11.js.map +1 -1
  73. package/dist/migrate/step-0.14.d.ts +6 -0
  74. package/dist/migrate/step-0.14.d.ts.map +1 -0
  75. package/dist/migrate/step-0.14.js +40 -0
  76. package/dist/migrate/step-0.14.js.map +1 -0
  77. package/dist/migrate/step-0.15.d.ts +14 -0
  78. package/dist/migrate/step-0.15.d.ts.map +1 -0
  79. package/dist/migrate/step-0.15.js +94 -0
  80. package/dist/migrate/step-0.15.js.map +1 -0
  81. package/dist/migrate/steps.d.ts.map +1 -1
  82. package/dist/migrate/steps.js +22 -1
  83. package/dist/migrate/steps.js.map +1 -1
  84. package/dist/output.d.ts.map +1 -1
  85. package/dist/output.js +2 -76
  86. package/dist/output.js.map +1 -1
  87. package/package.json +8 -8
  88. package/schema/call.schema.json +6 -1
  89. package/schema/check.schema.json +48 -3
  90. package/schema/inspect.schema.json +103 -1
  91. package/schema/map.schema.json +14 -0
  92. package/schema/migrate.schema.json +48 -3
  93. package/schema/render.schema.json +6 -1
  94. package/schema/show.schema.json +79 -0
  95. package/schema/why.schema.json +983 -0
  96. package/dist/commands/graph.d.ts +0 -7
  97. package/dist/commands/graph.d.ts.map +0 -1
  98. package/dist/commands/graph.js +0 -137
  99. package/dist/commands/graph.js.map +0 -1
  100. package/schema/explain.schema.json +0 -171
  101. package/schema/graph.schema.json +0 -109
  102. package/schema/impact.schema.json +0 -242
  103. package/schema/locate.schema.json +0 -488
  104. package/schema/validate.schema.json +0 -383
@@ -1,488 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/LocateOutput",
4
- "definitions": {
5
- "LocateOutput": {
6
- "$ref": "#/definitions/DevNode"
7
- },
8
- "DevNode": {
9
- "type": "object",
10
- "properties": {
11
- "id": {
12
- "type": "string"
13
- },
14
- "pointer": {
15
- "type": [
16
- "string",
17
- "null"
18
- ]
19
- },
20
- "kind": {
21
- "type": "string",
22
- "enum": [
23
- "element",
24
- "component",
25
- "text",
26
- "query",
27
- "when",
28
- "if",
29
- "list",
30
- "html",
31
- "embed",
32
- "page",
33
- "other"
34
- ]
35
- },
36
- "tag": {
37
- "type": [
38
- "string",
39
- "null"
40
- ]
41
- },
42
- "owner": {
43
- "anyOf": [
44
- {
45
- "type": "object",
46
- "properties": {
47
- "feature": {
48
- "type": "string"
49
- },
50
- "view": {
51
- "type": "string"
52
- }
53
- },
54
- "required": [
55
- "feature",
56
- "view"
57
- ],
58
- "additionalProperties": false
59
- },
60
- {
61
- "type": "null"
62
- }
63
- ]
64
- },
65
- "component": {
66
- "anyOf": [
67
- {
68
- "type": "object",
69
- "properties": {
70
- "ref": {
71
- "type": "string"
72
- },
73
- "variant": {
74
- "type": "object",
75
- "additionalProperties": {
76
- "type": "string"
77
- }
78
- },
79
- "declaration": {
80
- "anyOf": [
81
- {
82
- "$ref": "#/definitions/DevLocation"
83
- },
84
- {
85
- "type": "null"
86
- }
87
- ]
88
- },
89
- "uses": {
90
- "type": "number"
91
- }
92
- },
93
- "required": [
94
- "ref",
95
- "variant",
96
- "declaration",
97
- "uses"
98
- ],
99
- "additionalProperties": false
100
- },
101
- {
102
- "type": "null"
103
- }
104
- ]
105
- },
106
- "location": {
107
- "anyOf": [
108
- {
109
- "$ref": "#/definitions/DevLocation"
110
- },
111
- {
112
- "type": "null"
113
- }
114
- ]
115
- },
116
- "classes": {
117
- "type": [
118
- "string",
119
- "null"
120
- ]
121
- },
122
- "text": {
123
- "type": [
124
- "string",
125
- "null"
126
- ]
127
- },
128
- "source": {
129
- "anyOf": [
130
- {
131
- "$ref": "#/definitions/DevTextSource"
132
- },
133
- {
134
- "type": "null"
135
- }
136
- ]
137
- },
138
- "events": {
139
- "type": "array",
140
- "items": {
141
- "type": "object",
142
- "properties": {
143
- "dom": {
144
- "type": "string"
145
- },
146
- "event": {
147
- "type": "string"
148
- },
149
- "transitions": {
150
- "type": "array",
151
- "items": {
152
- "$ref": "#/definitions/DevTransition"
153
- }
154
- }
155
- },
156
- "required": [
157
- "dom",
158
- "event",
159
- "transitions"
160
- ],
161
- "additionalProperties": false
162
- }
163
- },
164
- "conditions": {
165
- "type": "array",
166
- "items": {
167
- "$ref": "#/definitions/DevCondition"
168
- }
169
- },
170
- "machine": {
171
- "anyOf": [
172
- {
173
- "$ref": "#/definitions/DevLocation"
174
- },
175
- {
176
- "type": "null"
177
- }
178
- ]
179
- },
180
- "children": {
181
- "type": "array",
182
- "items": {
183
- "type": "object",
184
- "properties": {
185
- "id": {
186
- "type": "string"
187
- },
188
- "kind": {
189
- "type": "string"
190
- },
191
- "text": {
192
- "type": [
193
- "string",
194
- "null"
195
- ]
196
- },
197
- "source": {
198
- "anyOf": [
199
- {
200
- "$ref": "#/definitions/DevTextSource"
201
- },
202
- {
203
- "type": "null"
204
- }
205
- ]
206
- }
207
- },
208
- "required": [
209
- "id",
210
- "kind",
211
- "text",
212
- "source"
213
- ],
214
- "additionalProperties": false
215
- }
216
- },
217
- "excerpt": {
218
- "anyOf": [
219
- {
220
- "type": "object",
221
- "properties": {
222
- "start": {
223
- "type": "number"
224
- },
225
- "lines": {
226
- "type": "array",
227
- "items": {
228
- "type": "string"
229
- }
230
- }
231
- },
232
- "required": [
233
- "start",
234
- "lines"
235
- ],
236
- "additionalProperties": false
237
- },
238
- {
239
- "type": "null"
240
- }
241
- ]
242
- },
243
- "page": {
244
- "anyOf": [
245
- {
246
- "$ref": "#/definitions/DevPage"
247
- },
248
- {
249
- "type": "null"
250
- }
251
- ]
252
- }
253
- },
254
- "required": [
255
- "id",
256
- "pointer",
257
- "kind",
258
- "tag",
259
- "owner",
260
- "component",
261
- "location",
262
- "classes",
263
- "text",
264
- "source",
265
- "events",
266
- "conditions",
267
- "machine",
268
- "children",
269
- "excerpt",
270
- "page"
271
- ],
272
- "additionalProperties": false
273
- },
274
- "DevLocation": {
275
- "type": "object",
276
- "properties": {
277
- "file": {
278
- "type": "string"
279
- },
280
- "line": {
281
- "type": "number"
282
- },
283
- "column": {
284
- "type": "number"
285
- }
286
- },
287
- "required": [
288
- "file",
289
- "line",
290
- "column"
291
- ],
292
- "additionalProperties": false
293
- },
294
- "DevTextSource": {
295
- "type": "object",
296
- "properties": {
297
- "kind": {
298
- "type": "string",
299
- "enum": [
300
- "literal",
301
- "message",
302
- "data",
303
- "context",
304
- "route",
305
- "computed"
306
- ]
307
- },
308
- "detail": {
309
- "type": "string"
310
- },
311
- "location": {
312
- "anyOf": [
313
- {
314
- "$ref": "#/definitions/DevLocation"
315
- },
316
- {
317
- "type": "null"
318
- }
319
- ]
320
- },
321
- "uses": {
322
- "type": [
323
- "number",
324
- "null"
325
- ]
326
- }
327
- },
328
- "required": [
329
- "kind",
330
- "detail",
331
- "location",
332
- "uses"
333
- ],
334
- "additionalProperties": false
335
- },
336
- "DevTransition": {
337
- "type": "object",
338
- "properties": {
339
- "from": {
340
- "type": "string"
341
- },
342
- "to": {
343
- "type": "string"
344
- },
345
- "guarded": {
346
- "type": "boolean"
347
- },
348
- "navigates": {
349
- "type": "boolean"
350
- },
351
- "location": {
352
- "anyOf": [
353
- {
354
- "$ref": "#/definitions/DevLocation"
355
- },
356
- {
357
- "type": "null"
358
- }
359
- ]
360
- }
361
- },
362
- "required": [
363
- "from",
364
- "to",
365
- "guarded",
366
- "navigates",
367
- "location"
368
- ],
369
- "additionalProperties": false
370
- },
371
- "DevCondition": {
372
- "type": "object",
373
- "properties": {
374
- "kind": {
375
- "type": "string",
376
- "enum": [
377
- "when",
378
- "if",
379
- "query",
380
- "each"
381
- ]
382
- },
383
- "detail": {
384
- "type": "string"
385
- },
386
- "location": {
387
- "anyOf": [
388
- {
389
- "$ref": "#/definitions/DevLocation"
390
- },
391
- {
392
- "type": "null"
393
- }
394
- ]
395
- }
396
- },
397
- "required": [
398
- "kind",
399
- "detail",
400
- "location"
401
- ],
402
- "additionalProperties": false
403
- },
404
- "DevPage": {
405
- "type": "object",
406
- "properties": {
407
- "route": {
408
- "type": "string"
409
- },
410
- "path": {
411
- "type": "string"
412
- },
413
- "routeLocation": {
414
- "anyOf": [
415
- {
416
- "$ref": "#/definitions/DevLocation"
417
- },
418
- {
419
- "type": "null"
420
- }
421
- ]
422
- },
423
- "views": {
424
- "type": "array",
425
- "items": {
426
- "type": "string"
427
- }
428
- },
429
- "head": {
430
- "type": "object",
431
- "properties": {
432
- "title": {
433
- "type": [
434
- "string",
435
- "null"
436
- ]
437
- },
438
- "description": {
439
- "type": [
440
- "string",
441
- "null"
442
- ]
443
- },
444
- "image": {
445
- "type": [
446
- "string",
447
- "null"
448
- ]
449
- },
450
- "type": {
451
- "type": "string",
452
- "enum": [
453
- "website",
454
- "article"
455
- ]
456
- },
457
- "noindex": {
458
- "type": "boolean"
459
- },
460
- "query": {
461
- "type": [
462
- "string",
463
- "null"
464
- ]
465
- }
466
- },
467
- "required": [
468
- "title",
469
- "description",
470
- "image",
471
- "type",
472
- "noindex",
473
- "query"
474
- ],
475
- "additionalProperties": false
476
- }
477
- },
478
- "required": [
479
- "route",
480
- "path",
481
- "routeLocation",
482
- "views",
483
- "head"
484
- ],
485
- "additionalProperties": false
486
- }
487
- }
488
- }