add a default archetype, preselected by the clients
This commit is contained in:
parent
a74d23d313
commit
8f7c45d40f
1 changed files with 253 additions and 47 deletions
|
|
@ -299,7 +299,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, and each has a non-empty prompt under the 64 KiB cap, and ruth runs sonnet with manage_root_agent, logs and metrics, and triage runs haiku with three flows that send to members";
|
||||
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 but default sets an svg icon as a default, and each but default has a non-empty prompt under the 64 KiB cap, and default is an empty module with no prompt, permissions or inference and an svg icon in its meta, and ruth runs sonnet with manage_root_agent, logs and metrics, and triage runs haiku with three flows that send to members";
|
||||
ok =
|
||||
let
|
||||
plain =
|
||||
|
|
@ -319,8 +319,11 @@ let
|
|||
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.attrValues (builtins.removeAttrs metas [ "default" ])
|
||||
)
|
||||
&& archetypes.default.module == { }
|
||||
&& !(metas.default ? prompt || metas.default ? permissions || metas.default ? inference)
|
||||
&& lib.hasPrefix "<svg" metas.default.icon
|
||||
&& lib.elem "messaging" reviewer
|
||||
&& lib.elem "inbox" reviewer
|
||||
&& lib.elem "execution" reviewer
|
||||
|
|
|
|||
Loading…
Reference in a new issue