perttool 0.5.1 → 0.5.2

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 (32) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/README.md +40 -25
  3. package/dist/cli.js +18 -1
  4. package/dist/cli.js.map +1 -1
  5. package/dist/command/actuals-discovery.d.ts.map +1 -1
  6. package/dist/command/actuals-discovery.js +25 -3
  7. package/dist/command/actuals-discovery.js.map +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/schema/registry.d.ts +19 -2
  12. package/dist/schema/registry.d.ts.map +1 -1
  13. package/dist/schema/registry.js +194 -4
  14. package/dist/schema/registry.js.map +1 -1
  15. package/dist/version.d.ts +1 -1
  16. package/dist/version.js +1 -1
  17. package/package.json +1 -1
  18. package/schemas/Perttool.AgentGuidanceResult.v1.schema.json +461 -6
  19. package/schemas/Perttool.AnalysisResult.v4.schema.json +685 -19
  20. package/schemas/Perttool.CheckResult.v3.schema.json +46 -2
  21. package/schemas/Perttool.CliError.v1.schema.json +40 -4
  22. package/schemas/Perttool.CommandHelpResult.v1.schema.json +218 -6
  23. package/schemas/Perttool.Common.v1.schema.json +1460 -75
  24. package/schemas/Perttool.GuideResult.v1.schema.json +36 -2
  25. package/schemas/Perttool.MutationResult.v3.schema.json +57 -6
  26. package/schemas/Perttool.NextResult.v5.schema.json +1137 -12
  27. package/schemas/Perttool.OverrideDecision.v1.schema.json +236 -4
  28. package/schemas/Perttool.ProjectHistoryResult.v1.schema.json +204 -60
  29. package/schemas/Perttool.ProjectResult.v3.schema.json +74 -1
  30. package/schemas/Perttool.SchemaResult.v1.schema.json +56 -3
  31. package/schemas/Perttool.UnitMigrationResult.v3.schema.json +152 -14
  32. package/schemas/Perttool.VelocityObservationResult.v1.schema.json +201 -2
@@ -120,13 +120,57 @@
120
120
  "milestone_deadlines": {
121
121
  "type": "array",
122
122
  "items": {
123
- "type": "object"
123
+ "type": "object",
124
+ "required": [
125
+ "milestone_id",
126
+ "deadline"
127
+ ],
128
+ "properties": {
129
+ "milestone_id": {
130
+ "type": "string"
131
+ },
132
+ "deadline": {
133
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/calendarValue"
134
+ }
135
+ },
136
+ "additionalProperties": false
124
137
  }
125
138
  },
126
139
  "task_constraints": {
127
140
  "type": "array",
128
141
  "items": {
129
- "type": "object"
142
+ "type": "object",
143
+ "required": [
144
+ "task_id",
145
+ "not_before",
146
+ "deadline"
147
+ ],
148
+ "properties": {
149
+ "task_id": {
150
+ "type": "string"
151
+ },
152
+ "not_before": {
153
+ "oneOf": [
154
+ {
155
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/calendarValue"
156
+ },
157
+ {
158
+ "type": "null"
159
+ }
160
+ ]
161
+ },
162
+ "deadline": {
163
+ "oneOf": [
164
+ {
165
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/calendarValue"
166
+ },
167
+ {
168
+ "type": "null"
169
+ }
170
+ ]
171
+ }
172
+ },
173
+ "additionalProperties": false
130
174
  }
131
175
  }
132
176
  },
@@ -61,15 +61,51 @@
61
61
  ],
62
62
  "properties": {
63
63
  "kind": {
64
- "type": "string"
64
+ "enum": [
65
+ "missing_resource",
66
+ "unknown_resource",
67
+ "missing_action",
68
+ "unknown_action",
69
+ "unknown_option",
70
+ "missing_option_value",
71
+ "unexpected_option_value",
72
+ "duplicate_option",
73
+ "invalid_option_value",
74
+ "missing_operand",
75
+ "extra_operand",
76
+ "missing_required_option",
77
+ "option_conflict",
78
+ "option_requires"
79
+ ]
65
80
  },
66
81
  "token": {
67
82
  "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
68
83
  },
69
84
  "suggestion": {
70
- "type": [
71
- "object",
72
- "null"
85
+ "oneOf": [
86
+ {
87
+ "type": "object",
88
+ "required": [
89
+ "kind",
90
+ "value"
91
+ ],
92
+ "properties": {
93
+ "kind": {
94
+ "enum": [
95
+ "resource",
96
+ "action",
97
+ "option"
98
+ ]
99
+ },
100
+ "value": {
101
+ "type": "string"
102
+ }
103
+ },
104
+ "additionalProperties": false
105
+ },
106
+ {
107
+ "type": "null"
108
+ }
73
109
  ]
74
110
  }
75
111
  },
@@ -109,13 +109,133 @@
109
109
  "operands": {
110
110
  "type": "array",
111
111
  "items": {
112
- "type": "object"
112
+ "type": "object",
113
+ "required": [
114
+ "name",
115
+ "value_type",
116
+ "required",
117
+ "position"
118
+ ],
119
+ "properties": {
120
+ "name": {
121
+ "type": "string"
122
+ },
123
+ "value_type": {
124
+ "type": "string"
125
+ },
126
+ "required": {
127
+ "type": "boolean"
128
+ },
129
+ "position": {
130
+ "type": "integer",
131
+ "minimum": 0
132
+ }
133
+ },
134
+ "additionalProperties": false
113
135
  }
114
136
  },
115
137
  "options": {
116
138
  "type": "array",
117
139
  "items": {
118
- "type": "object"
140
+ "type": "object",
141
+ "required": [
142
+ "name",
143
+ "kind",
144
+ "value_type",
145
+ "required",
146
+ "repeatable",
147
+ "default",
148
+ "enum_values",
149
+ "conflicts",
150
+ "requires",
151
+ "shared_group",
152
+ "description",
153
+ "spelling"
154
+ ],
155
+ "properties": {
156
+ "name": {
157
+ "type": "string"
158
+ },
159
+ "kind": {
160
+ "enum": [
161
+ "flag",
162
+ "value"
163
+ ]
164
+ },
165
+ "value_type": {
166
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
167
+ },
168
+ "required": {
169
+ "type": "boolean"
170
+ },
171
+ "repeatable": {
172
+ "type": "boolean"
173
+ },
174
+ "default": {
175
+ "oneOf": [
176
+ {
177
+ "type": "string"
178
+ },
179
+ {
180
+ "type": "number"
181
+ },
182
+ {
183
+ "type": "boolean"
184
+ },
185
+ {
186
+ "type": "null"
187
+ }
188
+ ]
189
+ },
190
+ "enum_values": {
191
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/stringArray"
192
+ },
193
+ "conflicts": {
194
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/stringArray"
195
+ },
196
+ "requires": {
197
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/stringArray"
198
+ },
199
+ "shared_group": {
200
+ "type": [
201
+ "string",
202
+ "null"
203
+ ],
204
+ "enum": [
205
+ "diagnostics",
206
+ "governance",
207
+ "guide",
208
+ "preview",
209
+ "result",
210
+ "write",
211
+ null
212
+ ]
213
+ },
214
+ "description": {
215
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
216
+ },
217
+ "spelling": {
218
+ "type": "object",
219
+ "required": [
220
+ "cli",
221
+ "dsl",
222
+ "json"
223
+ ],
224
+ "properties": {
225
+ "cli": {
226
+ "type": "string"
227
+ },
228
+ "dsl": {
229
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
230
+ },
231
+ "json": {
232
+ "type": "string"
233
+ }
234
+ },
235
+ "additionalProperties": false
236
+ }
237
+ },
238
+ "additionalProperties": false
119
239
  }
120
240
  },
121
241
  "input": {
@@ -126,10 +246,64 @@
126
246
  ]
127
247
  },
128
248
  "output": {
129
- "type": "object"
249
+ "type": "object",
250
+ "required": [
251
+ "formats",
252
+ "payload",
253
+ "file_effect"
254
+ ],
255
+ "properties": {
256
+ "formats": {
257
+ "type": "array",
258
+ "items": {
259
+ "enum": [
260
+ "text",
261
+ "json"
262
+ ]
263
+ },
264
+ "minItems": 1,
265
+ "uniqueItems": true
266
+ },
267
+ "payload": {
268
+ "enum": [
269
+ "result",
270
+ "candidate-document",
271
+ "artifact"
272
+ ]
273
+ },
274
+ "file_effect": {
275
+ "enum": [
276
+ "none",
277
+ "optional-create",
278
+ "optional-write-or-create"
279
+ ]
280
+ }
281
+ },
282
+ "additionalProperties": false
130
283
  },
131
284
  "stdin": {
132
- "type": "object"
285
+ "type": "object",
286
+ "required": [
287
+ "document",
288
+ "artifact",
289
+ "request",
290
+ "mutually_exclusive"
291
+ ],
292
+ "properties": {
293
+ "document": {
294
+ "type": "boolean"
295
+ },
296
+ "artifact": {
297
+ "type": "boolean"
298
+ },
299
+ "request": {
300
+ "type": "boolean"
301
+ },
302
+ "mutually_exclusive": {
303
+ "type": "boolean"
304
+ }
305
+ },
306
+ "additionalProperties": false
133
307
  },
134
308
  "effect": {
135
309
  "enum": [
@@ -144,13 +318,51 @@
144
318
  "exit_statuses": {
145
319
  "type": "array",
146
320
  "items": {
147
- "type": "object"
321
+ "type": "object",
322
+ "required": [
323
+ "code",
324
+ "meaning"
325
+ ],
326
+ "properties": {
327
+ "code": {
328
+ "enum": [
329
+ 0,
330
+ 1,
331
+ 2,
332
+ 3,
333
+ 4,
334
+ 5,
335
+ 70
336
+ ]
337
+ },
338
+ "meaning": {
339
+ "type": "string"
340
+ }
341
+ },
342
+ "additionalProperties": false
148
343
  }
149
344
  },
150
345
  "examples": {
151
346
  "type": "array",
152
347
  "items": {
153
- "type": "object"
348
+ "type": "object",
349
+ "required": [
350
+ "id",
351
+ "invocation",
352
+ "summary"
353
+ ],
354
+ "properties": {
355
+ "id": {
356
+ "type": "string"
357
+ },
358
+ "invocation": {
359
+ "type": "string"
360
+ },
361
+ "summary": {
362
+ "type": "string"
363
+ }
364
+ },
365
+ "additionalProperties": false
154
366
  }
155
367
  }
156
368
  },