@team-attention/hoyeon-cli 0.9.0 → 1.0.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.
- package/dist/cli.js +1678 -35
- package/package.json +1 -1
- package/schemas/dev-spec-v4.schema.json +56 -3
- package/schemas/dev-spec-v5.schema.json +772 -0
package/package.json
CHANGED
|
@@ -209,7 +209,17 @@
|
|
|
209
209
|
"created_at": { "type": "string" },
|
|
210
210
|
"updated_at": { "type": "string" },
|
|
211
211
|
"approved_by": { "type": "string" },
|
|
212
|
-
"approved_at": { "type": "string" }
|
|
212
|
+
"approved_at": { "type": "string" },
|
|
213
|
+
"type": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"enum": ["dev", "plain"],
|
|
216
|
+
"description": "Spec type: dev = developer task spec (default), plain = lightweight plain task spec"
|
|
217
|
+
},
|
|
218
|
+
"schema_version": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"enum": ["v4", "v5"],
|
|
221
|
+
"description": "Schema version for validation routing. Defaults to v5 if omitted."
|
|
222
|
+
}
|
|
213
223
|
}
|
|
214
224
|
},
|
|
215
225
|
"context": {
|
|
@@ -326,6 +336,31 @@
|
|
|
326
336
|
}
|
|
327
337
|
}
|
|
328
338
|
},
|
|
339
|
+
"derivedFrom": {
|
|
340
|
+
"type": "object",
|
|
341
|
+
"required": ["parent", "trigger"],
|
|
342
|
+
"additionalProperties": false,
|
|
343
|
+
"description": "Provenance record linking a derived task back to its planned parent",
|
|
344
|
+
"properties": {
|
|
345
|
+
"parent": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"description": "ID of the planned parent task (depth-1 only)"
|
|
348
|
+
},
|
|
349
|
+
"source": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"description": "Source context that triggered the derivation (e.g. file path, agent name)"
|
|
352
|
+
},
|
|
353
|
+
"trigger": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"enum": ["adapt", "retry", "code_review", "final_verify"],
|
|
356
|
+
"description": "Event that caused this task to be derived"
|
|
357
|
+
},
|
|
358
|
+
"reason": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"description": "Human-readable explanation for the derivation"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
},
|
|
329
364
|
"task": {
|
|
330
365
|
"type": "object",
|
|
331
366
|
"required": ["id", "action", "type"],
|
|
@@ -337,6 +372,16 @@
|
|
|
337
372
|
"type": "string",
|
|
338
373
|
"enum": ["work", "verification"]
|
|
339
374
|
},
|
|
375
|
+
"origin": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"enum": ["planned", "derived", "adapted"],
|
|
378
|
+
"default": "planned",
|
|
379
|
+
"description": "How this task was created: planned=authored in spec, derived=created at runtime via spec derive, adapted=manually adjusted from a derived task"
|
|
380
|
+
},
|
|
381
|
+
"derived_from": {
|
|
382
|
+
"$ref": "#/$defs/derivedFrom",
|
|
383
|
+
"description": "Provenance record — required when origin is derived or adapted"
|
|
384
|
+
},
|
|
340
385
|
"risk": {
|
|
341
386
|
"type": "string",
|
|
342
387
|
"enum": ["low", "medium", "high"]
|
|
@@ -425,8 +470,16 @@
|
|
|
425
470
|
"type": "array",
|
|
426
471
|
"items": { "type": "string" }
|
|
427
472
|
},
|
|
428
|
-
"acceptance_criteria": { "$ref": "#/$defs/taskAcceptanceCriteria" }
|
|
429
|
-
|
|
473
|
+
"acceptance_criteria": { "$ref": "#/$defs/taskAcceptanceCriteria" },
|
|
474
|
+
"tool": { "type": "string" },
|
|
475
|
+
"args": { "type": "string" }
|
|
476
|
+
},
|
|
477
|
+
"allOf": [
|
|
478
|
+
{
|
|
479
|
+
"if": { "properties": { "origin": { "enum": ["derived", "adapted"] } }, "required": ["origin"] },
|
|
480
|
+
"then": { "required": ["derived_from"] }
|
|
481
|
+
}
|
|
482
|
+
]
|
|
430
483
|
},
|
|
431
484
|
"historyEntry": {
|
|
432
485
|
"type": "object",
|