@team-attention/hoyeon-cli 0.11.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 +1659 -34
- package/package.json +1 -1
- package/schemas/dev-spec-v4.schema.json +47 -1
- package/schemas/dev-spec-v5.schema.json +772 -0
package/package.json
CHANGED
|
@@ -214,6 +214,11 @@
|
|
|
214
214
|
"type": "string",
|
|
215
215
|
"enum": ["dev", "plain"],
|
|
216
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."
|
|
217
222
|
}
|
|
218
223
|
}
|
|
219
224
|
},
|
|
@@ -331,6 +336,31 @@
|
|
|
331
336
|
}
|
|
332
337
|
}
|
|
333
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
|
+
},
|
|
334
364
|
"task": {
|
|
335
365
|
"type": "object",
|
|
336
366
|
"required": ["id", "action", "type"],
|
|
@@ -342,6 +372,16 @@
|
|
|
342
372
|
"type": "string",
|
|
343
373
|
"enum": ["work", "verification"]
|
|
344
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
|
+
},
|
|
345
385
|
"risk": {
|
|
346
386
|
"type": "string",
|
|
347
387
|
"enum": ["low", "medium", "high"]
|
|
@@ -433,7 +473,13 @@
|
|
|
433
473
|
"acceptance_criteria": { "$ref": "#/$defs/taskAcceptanceCriteria" },
|
|
434
474
|
"tool": { "type": "string" },
|
|
435
475
|
"args": { "type": "string" }
|
|
436
|
-
}
|
|
476
|
+
},
|
|
477
|
+
"allOf": [
|
|
478
|
+
{
|
|
479
|
+
"if": { "properties": { "origin": { "enum": ["derived", "adapted"] } }, "required": ["origin"] },
|
|
480
|
+
"then": { "required": ["derived_from"] }
|
|
481
|
+
}
|
|
482
|
+
]
|
|
437
483
|
},
|
|
438
484
|
"historyEntry": {
|
|
439
485
|
"type": "object",
|