@hozu/cli 0.11.0 → 0.12.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 (43) hide show
  1. package/dist/commands/call.d.ts +16 -0
  2. package/dist/commands/call.d.ts.map +1 -0
  3. package/dist/commands/call.js +100 -0
  4. package/dist/commands/call.js.map +1 -0
  5. package/dist/commands/check.d.ts +10 -1
  6. package/dist/commands/check.d.ts.map +1 -1
  7. package/dist/commands/check.js +43 -28
  8. package/dist/commands/check.js.map +1 -1
  9. package/dist/commands/explain.d.ts.map +1 -1
  10. package/dist/commands/explain.js +2 -1
  11. package/dist/commands/explain.js.map +1 -1
  12. package/dist/commands/impact.js +1 -1
  13. package/dist/commands/impact.js.map +1 -1
  14. package/dist/commands/inspect.d.ts.map +1 -1
  15. package/dist/commands/inspect.js +9 -0
  16. package/dist/commands/inspect.js.map +1 -1
  17. package/dist/commands/migrate.d.ts.map +1 -1
  18. package/dist/commands/migrate.js +5 -2
  19. package/dist/commands/migrate.js.map +1 -1
  20. package/dist/contract.d.ts +35 -1
  21. package/dist/contract.d.ts.map +1 -1
  22. package/dist/load.d.ts +2 -1
  23. package/dist/load.d.ts.map +1 -1
  24. package/dist/load.js +5 -4
  25. package/dist/load.js.map +1 -1
  26. package/dist/main.d.ts.map +1 -1
  27. package/dist/main.js +24 -3
  28. package/dist/main.js.map +1 -1
  29. package/dist/migrate/step-0.12.d.ts +6 -0
  30. package/dist/migrate/step-0.12.d.ts.map +1 -0
  31. package/dist/migrate/step-0.12.js +14 -0
  32. package/dist/migrate/step-0.12.js.map +1 -0
  33. package/dist/migrate/steps.d.ts +5 -0
  34. package/dist/migrate/steps.d.ts.map +1 -1
  35. package/dist/migrate/steps.js +9 -0
  36. package/dist/migrate/steps.js.map +1 -1
  37. package/package.json +8 -8
  38. package/schema/call.schema.json +136 -0
  39. package/schema/check.schema.json +23 -1
  40. package/schema/explain.schema.json +14 -1
  41. package/schema/impact.schema.json +22 -1
  42. package/schema/inspect.schema.json +43 -10
  43. package/schema/migrate.schema.json +23 -1
@@ -50,6 +50,17 @@
50
50
  "items": {
51
51
  "type": "string"
52
52
  }
53
+ },
54
+ "runs": {
55
+ "anyOf": [
56
+ {
57
+ "$ref": "#/definitions/Runs"
58
+ },
59
+ {
60
+ "type": "null"
61
+ }
62
+ ],
63
+ "description": "Where a query or mutation runs (ADR 0049); null for other symbols."
53
64
  }
54
65
  },
55
66
  "required": [
@@ -59,7 +70,8 @@
59
70
  "queries",
60
71
  "invalidatedBy",
61
72
  "uses",
62
- "features"
73
+ "features",
74
+ "runs"
63
75
  ],
64
76
  "additionalProperties": false
65
77
  },
@@ -118,6 +130,15 @@
118
130
  ],
119
131
  "additionalProperties": false
120
132
  },
133
+ "Runs": {
134
+ "type": "string",
135
+ "enum": [
136
+ "server",
137
+ "browser",
138
+ "either"
139
+ ],
140
+ "description": "What an effect's implementation needs (ADR 0049): server secrets, browser credentials, or neither."
141
+ },
121
142
  "ComponentImpact": {
122
143
  "type": "object",
123
144
  "properties": {
@@ -71,6 +71,38 @@
71
71
  },
72
72
  "exports": {
73
73
  "$ref": "#/definitions/ExportsIR"
74
+ },
75
+ "effects": {
76
+ "type": "object",
77
+ "additionalProperties": {
78
+ "type": "object",
79
+ "properties": {
80
+ "kind": {
81
+ "type": "string",
82
+ "enum": [
83
+ "query",
84
+ "mutation"
85
+ ]
86
+ },
87
+ "runs": {
88
+ "$ref": "#/definitions/Runs"
89
+ },
90
+ "implemented": {
91
+ "type": "string",
92
+ "enum": [
93
+ "resolver",
94
+ "fetch.ts"
95
+ ]
96
+ }
97
+ },
98
+ "required": [
99
+ "kind",
100
+ "runs",
101
+ "implemented"
102
+ ],
103
+ "additionalProperties": false
104
+ },
105
+ "description": "Each query and mutation: where it runs and where it is implemented (ADR 0049)."
74
106
  }
75
107
  },
76
108
  "required": [
@@ -83,7 +115,8 @@
83
115
  "contracts",
84
116
  "hydrates",
85
117
  "imports",
86
- "exports"
118
+ "exports",
119
+ "effects"
87
120
  ],
88
121
  "additionalProperties": false
89
122
  },
@@ -144,6 +177,15 @@
144
177
  ],
145
178
  "additionalProperties": false
146
179
  },
180
+ "Runs": {
181
+ "type": "string",
182
+ "enum": [
183
+ "server",
184
+ "browser",
185
+ "either"
186
+ ],
187
+ "description": "What an effect's implementation needs (ADR 0049): server secrets, browser credentials, or neither."
188
+ },
147
189
  "FeatureIR": {
148
190
  "type": "object",
149
191
  "properties": {
@@ -785,15 +827,6 @@
785
827
  ],
786
828
  "additionalProperties": false
787
829
  },
788
- "Runs": {
789
- "type": "string",
790
- "enum": [
791
- "server",
792
- "browser",
793
- "either"
794
- ],
795
- "description": "What an effect's implementation needs (ADR 0049): server secrets, browser credentials, or neither."
796
- },
797
830
  "MutationIR": {
798
831
  "type": "object",
799
832
  "properties": {
@@ -236,13 +236,35 @@
236
236
  "items": {
237
237
  "$ref": "#/definitions/CheckOverrides"
238
238
  }
239
+ },
240
+ "timings": {
241
+ "type": "object",
242
+ "properties": {
243
+ "types": {
244
+ "type": "number"
245
+ },
246
+ "load": {
247
+ "type": "number"
248
+ },
249
+ "validate": {
250
+ "type": "number"
251
+ }
252
+ },
253
+ "required": [
254
+ "types",
255
+ "load",
256
+ "validate"
257
+ ],
258
+ "additionalProperties": false,
259
+ "description": "Milliseconds; the type check runs in parallel with loading and validating (ADR 0050 D)."
239
260
  }
240
261
  },
241
262
  "required": [
242
263
  "ok",
243
264
  "types",
244
265
  "validate",
245
- "overrides"
266
+ "overrides",
267
+ "timings"
246
268
  ],
247
269
  "additionalProperties": false
248
270
  },