Open jkomoros opened 1 year ago
Friction log for working on prompt-name
things to do to improve it:
@store(_default_store:komoroske.com:value)
(it gets funky because variable names might have weird characters in them and it needs to be another delimiter))var
and retrieve
should have else
clauses. If the value is not set (is undefined) then the else clause is evaluated and returned instead. This allows a pattern where you can request-or-calculate-and-store the value. (use it in complex examples)retrieve/else
behaviorvar
have an optional default
that is retrurned if the var is not bound?entrypoints
in seed packet that describe the usage of different named entrypoints (and which ones are SUPPOSED to be used, vs internals?). Then the CLI could show entrypoints mainlycomment
field. description
is used for external facing behavior, comment
is used for internal notes to self or people reading the code, and never shows anywhereproperty
seed_type already?komoroske.com
prefix a million times gets repetitive, maybe have a prefix
property in seed packet that will be auto-expanded when seeds unrolled? Add a var_prefix
environment variable that adds it if it's not a known key and doesn't have a prefix already.vars
at top level of seed packet that basically adds a let-multi
seed in front of every top onetype:object
and just have it search through keys and find any that were seed-reference-like?id
distinctive enough in a seed reference? should it be seed
?
example-simple.json
example-complex.json
utility.json
seed packet of convenence methods for things likeprompt-var
See also #11. Test