Commit 094fa34
The CLI advertised `--template` as "Built-in template id (e.g. crm, todo,
blank)" and forwarded it as `template_id` on `projects.create()`. Nothing
consumes it: `template_id`/`templateId` appears in zero non-test files in the
`cloud` repo, `sys_environment` has no such column, and the create route
whitelists what it reads (displayName, organizationId, isDefault, hostname,
metadata, environmentType) — `template_id` is not in the list. The
blank/crm/todo registry the flag named was the `apps/server`
`createTemplatesRoutePlugin` snapshot, removed when the control plane moved to
cloud; the flag outlived it.
So it was accepted, transmitted, and dropped — no seeding, no error, no stored
trace. Worse than the 404 its listing counterpart returned (#3702): a 404 tells
the caller something is wrong, a silently ignored flag reports success. That is
the "never advertise a capability the runtime doesn't deliver" corollary of
Prime Directive #10.
Starter content comes from the App Marketplace instead — `sys_package` rows
with `is_starter = true`, installed via `projects.packages.install`, which is
what the console already does.
NOT the same `--template` as `os init` / `create-objectstack` (app/plugin/empty
scaffolds); those are local scaffolding and are untouched. No doc references
`os environments create --template`, so nothing to sweep.
Closes #3731
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
1 parent d1557d9 commit 094fa34
3 files changed
Lines changed: 49 additions & 3 deletions
File tree
- .changeset
- packages
- client/src
- cli/src/commands/environments
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | | - | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1064 | 1064 | | |
1065 | 1065 | | |
1066 | 1066 | | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1067 | 1075 | | |
1068 | 1076 | | |
1069 | 1077 | | |
| |||
1078 | 1086 | | |
1079 | 1087 | | |
1080 | 1088 | | |
1081 | | - | |
1082 | 1089 | | |
1083 | 1090 | | |
1084 | 1091 | | |
| |||
0 commit comments