New Item
items_newAllocate a sequential part number and register a new item in an items.json sidecar, creating it if absent. Returns the part number and item for reference.
Instructions
Allocate a non-significant sequential part number and register a new item in an items.json sidecar (created if absent), writing it back. The reserved rev / lifecycle fields are seeded with held defaults (the #141 state machine, not C1).
registry: path to the items.json sidecar (created if it does not exist). item: the new item's stable logical id (what manifests reference). files: optional list of artifact paths the item maps to. metadata: optional free-form, queryable attributes (where "meaning" lives).
Returns {part_number, item, registry}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| files | No | ||
| metadata | No | ||
| registry | Yes |