|
| 1 | +--- |
| 2 | +"@objectstack/spec": patch |
| 3 | +--- |
| 4 | + |
| 5 | +Route the stored-envelope refusal to a command that exists — `os package publish`, not the retired `objectstack publish` (#12223) |
| 6 | + |
| 7 | +An author who hand-writes one of the seven `STORED_ENVELOPE_KEYS` onto an `api` |
| 8 | +declaration is refused, and the refusal tells them where publication state actually |
| 9 | +comes from. It named a command that resolves to nothing: |
| 10 | + |
| 11 | +```text |
| 12 | +before: Remove it — publication state is managed by `objectstack publish`, not authored. |
| 13 | +after: Remove it — publication state is managed by `os package publish`, not authored. |
| 14 | +``` |
| 15 | + |
| 16 | +`os publish` was the legacy direct-to-environment command, retired with the path that |
| 17 | +wrote `sys_environment_revision`. Re-measured on this tree against the **built oclif |
| 18 | +`Config`** rather than against docs — loading the CLI's plugin and reading the command |
| 19 | +table oclif derives from `dist/commands/**`: **61** ids, of which the only two containing |
| 20 | +`publish` are `package publish` and `plugin publish`. There is no bare `publish` id and no |
| 21 | +`publish` topic, so the old spelling exits as an unknown command. The message's own |
| 22 | +neighbouring sentence already names `publishPackage` as the writer, and |
| 23 | +`packages/cli/src/commands/package/publish.ts` is the command that runs it. |
| 24 | + |
| 25 | +This is the shape #12177 deliberately left alone elsewhere inverted: those sentences are |
| 26 | +*about* the removal and are correct as history, while this one is **present tense and |
| 27 | +prescriptive** — text an AI author obeys at the moment its write is refused. |
| 28 | + |
| 29 | +Text only. No accept/reject behaviour changes: the same seven keys are refused on the same |
| 30 | +declarations, with the same `unrecognized_keys` upgrade path; only the sentence an author |
| 31 | +reads is corrected. The same stale spelling is fixed in the `publisher` doc comment of |
| 32 | +`packages/spec/src/cloud/package.zod.ts`, which ships to consumers in the package's type |
| 33 | +declarations. |
0 commit comments