the built-in archetypes come with a default prompt
This commit is contained in:
parent
fa07f32cdf
commit
039896c506
1 changed files with 111 additions and 5 deletions
|
|
@ -291,7 +291,7 @@ let
|
|||
# output and prints it as JSON. A derivation or a path in `meta` would
|
||||
# make that evaluation build or copy something; a function would not
|
||||
# print at all.
|
||||
name = "the built-in archetypes carry a module and a meta of plain data, and reviewer can run commands and android-dev installs its toolchain and reverse-engineer turns rea on, and each sets an svg icon as a default";
|
||||
name = "the built-in archetypes carry a module and a meta of plain data, and reviewer can run commands and android-dev installs its toolchain and reverse-engineer turns rea on, and each sets an svg icon as a default, and each has a non-empty prompt under the 64 KiB cap";
|
||||
ok =
|
||||
let
|
||||
plain =
|
||||
|
|
@ -310,6 +310,9 @@ let
|
|||
in
|
||||
lib.all (a: a ? module && a.meta.description != "") (lib.attrValues archetypes)
|
||||
&& plain metas
|
||||
&& lib.all (m: (m.prompt or "") != "" && builtins.stringLength m.prompt <= 65536) (
|
||||
lib.attrValues metas
|
||||
)
|
||||
&& lib.elem "messaging" reviewer
|
||||
&& lib.elem "inbox" reviewer
|
||||
&& lib.elem "execution" reviewer
|
||||
|
|
|
|||
Loading…
Reference in a new issue