Run artifact

evidence/provider_raw/20261028.150852.356Z_jq_lineage_attribute_codex.raw.jsonl

{"type":"thread.started","thread_id":"01a1830e-9260-7ce1-8b57-10c3fa1beffd"}
{"type":"turn.started"}
{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"<requirement name=\"identity\" stories=\"core\">\nThe absolute simplest filter is `.` .  This filter takes its\ninput and produces the same value as output.  That is, this\nis the identity operator.\n</requirement>\n<requirement name=\"object-identifier-index\" stories=\"lexer,parser,constructors\">\nThe simplest *useful* filter has the form `.foo`. When given a\nJSON object (aka dictionary or hash) as input, `.foo` produces\nthe value at the key \"foo\" if the key is present, or null otherwise.\n\nA filter of the form `.foo.bar` is equivalent to `.foo | .bar`.\n\nThe `.foo` syntax only works for simple, identifier-like keys, that\nis, keys that are all made of alphanumeric characters and\nunderscore, and which do not start with a digit.\n\nIf the key contains special characters or starts with a digit,\nyou need to surround it with double quotes like this:\n`.\"foo$\"`, or else `.[\"foo$\"]`.\n</requirement>\n<requirement name=\"optional-object-index\" stories=\"parser,constructors,control\">\nJust like `.foo`, but does not output an error when `.` is not an\nobject.\n</requirement>\n<requirement name=\"object-index\" stories=\"parser,constructors\">\nYou can also look up fields of an object using syntax like\n`.[\"foo\"]` (`.foo` above is a shorthand version of this, but\nonly for identifier-like strings).\n</requirement>\n<requirement name=\"array-index\" stories=\"parser,constructors\">\nWhen the index value is an integer, `.[<number>]` can index\narrays.  Arrays are zero-based, so `.[2]` returns the third\nelement.\n\nNegative indices are allowed, with -1 referring to the last\nelement, -2 referring to the next to last element, and so on.\n</requirement>\n<requirement name=\"slice\" stories=\"parser,constructors,strings\">\nThe `.[<number>:<number>]` syntax can be used to return a\nsubarray of an array or substring of a string. The array\nreturned by `.[10:15]` will be of length 5, containing the\nelements from index 10 (inclusive) to index 15 (exclusive).\nEither index may be negative (in which case it counts\nbackwards from the end of the array), or omitted (in which\ncase it refers to the start or end of the array).\nIndices are zero-based.\n</requirement>\n<requirement name=\"iterate-values\" stories=\"parser,core,constructors\">\nIf you use the `.[index]` syntax, but omit the index\nentirely, it will return *all* of the elements of an\narray. Running `.[]` with the input `[1,2,3]` will produce the\nnumbers as three separate results, rather than as a single\narray. A filter of the form `.foo[]` is equivalent to\n`.foo | .[]`.\n\nYou can also use this on an object, and it will return all\nthe values of the object.\n</requirement>\n<requirement name=\"optional-iterator\" stories=\"parser,core,constructors,control\">\nLike `.[]`, but no errors will be output if . is not an array\nor object. A filter of the form `.foo[]?` is equivalent to\n`.foo | .[]?`.\n</requirement>\n<requirement name=\"comma\" stories=\"parser,core\">\nIf two filters are separated by a comma, then the\nsame input will be fed into both and the two filters' output\nvalue streams will be concatenated in order: first, all of the\noutputs produced by the left expression, and then all of the\noutputs produced by the right.\n</requirement>\n<requirement name=\"pipe\" stories=\"parser,core\">\nThe | operator combines two filters by feeding the output(s) of\nthe one on the left into the input of the one on the right. It's\nsimilar to the Unix shell's pipe, if you're used to that.\n\nIf the one on the left produces multiple results, the one on\nthe right will be run for each of those results.\n</requirement>\n<requirement name=\"parentheses\" stories=\"parser\">\nParenthesis work as a grouping operator just as in any typical\nprogramming language.\n</requirement>\n<requirement name=\"types-and-literals\" stories=\"lexer,parser,core,conversion,numeric\">\njq supports the same set of datatypes as JSON - numbers,\nstrings, booleans, arrays, objects (which in JSON-speak are\nhashes with only string keys), and \"null\".\n\nBooleans, null, strings and numbers are written the same way as\nin JSON. Just like everything else in jq, these simple\nvalues take an input and produce an output - `42` is a valid jq\nexpression that takes an input, ignores it, and returns 42\ninstead.\n\nNumbers in jq are internally represented by their IEEE754 double\nprecision approximation. Any arithmetic operation with numbers,\nwhether they are literals or results of previous filters, will\nproduce a double precision floating point result.\n\nHowever, when parsing a literal jq will store the original literal\nstring. If no mutation is applied to this value then it will make\nto the output in its original form, even if conversion to double\nwould result in a loss.\n</requirement>\n<requirement name=\"array-construction\" stories=\"parser,core,constructors\">\nAs in JSON, `[]` is used to construct arrays, as in\n`[1,2,3]`. The elements of the arrays can be any jq\nexpression, including a pipeline. All of the results produced\nby all of the expressions are collected into one big array.\nYou can use it to construct an array out of a known quantity\nof values (as in `[.foo, .bar, .baz]`) or to \"collect\" all the\nresults of a filter into an array (as in `[.items[].name]`)\n</requirement>\n<requirement name=\"object-construction\" stories=\"parser,constructors,bindings\">\nLike JSON, `{}` is for constructing objects (aka\ndictionaries or hashes), as in: `{\"a\": 42, \"b\": 17}`.\n\nIf the keys are \"identifier-like\", then the quotes can be left\noff, as in `{a:42, b:17}`.  Variable references as key\nexpressions use the value of the variable as the key.  Key\nexpressions other than constant literals, identifiers, or\nvariable references, need to be parenthesized, e.g.,\n`{(\"a\"+\"b\"):59}`.\n\nThe value can be any expression (although you may need to wrap\nit in parentheses if, for example, it contains colons), which\ngets applied to the {} expression's input (remember, all\nfilters have an input and an output).\n</requirement>\n<requirement name=\"object-construction-shorthand\" stories=\"parser,constructors,bindings\">\nBecause that is so common, there's a shortcut syntax for it:\n`{user, title}`.\n</requirement>\n<requirement name=\"object-construction-generators\" stories=\"core,constructors\">\nIf one of the expressions produces multiple results,\nmultiple dictionaries will be produced.\n</requirement>\n<requirement name=\"recursive-descent\" stories=\"parser,traversal\">\nRecursively descends `.`, producing every value.  This is the\nsame as the zero-argument `recurse` builtin (see below).\n</requirement>\n<requirement name=\"operator-types\" stories=\"operators\">\nSome jq operators (for instance, `+`) do different things\ndepending on the type of their arguments (arrays, numbers,\netc.). However, jq never does implicit type conversions. If you\ntry to add a string to an object you'll get an error message and\nno result.\n</requirement>\n<requirement name=\"addition\" stories=\"operators\">\nThe operator `+` takes two filters, applies them both\nto the same input, and adds the results together. What\n\"adding\" means depends on the types involved:\n\n- **Numbers** are added by normal arithmetic.\n\n- **Arrays** are added by being concatenated into a larger array.\n\n- **Strings** are added by being joined into a larger string.\n\n- **Objects** are added by merging, that is, inserting all\n  the key-value pairs from both objects into a single\n  combined object. If both objects contain a value for the\n  same key, the object on the right of the `+` wins. (For\n  recursive merge use the `*` operator.)\n\n`null` can be added to any value, and returns the other\nvalue unchanged.\n</requirement>\n<requirement name=\"subtraction\" stories=\"operators\">\nAs well as normal arithmetic subtraction on numbers, the `-`\noperator can be used on arrays to remove all occurrences of\nthe second array's elements from the first array.\n</requirement>\n<requirement name=\"multiplication-division-modulo\" stories=\"operators\">\nThese infix operators behave as expected when given two numbers.\nDivision by zero raises an error. `x % y` computes x modulo y.\n\nMultiplying a string by a number produces the concatenation of\nthat string that many times. `\"x\" * 0` produces `\"\"`.\n\nDividing a string by another splits the first using the second\nas separators.\n\nMultiplying two objects will merge them recursively: this works\nlike addition but if both objects contain a value for the\nsame key, and the values are objects, the two are merged with\nthe same strategy.\n</requirement>\n<requirement name=\"abs\" stories=\"numeric\">\nThe builtin function `abs` is defined naively as: `if . < 0 then - . else . end`.\n</requirement>\n<requirement name=\"length\" stories=\"collection-builtins,strings\">\nThe builtin function `length` gets the length of various\ndifferent types of value:\n\n- The length of a **string** is the number of Unicode\n  codepoints it contains (which will be the same as its\n  JSON-encoded length in bytes if it's pure ASCII).\n\n- The length of a **number** is its absolute value.\n\n- The length of an **array** is the number of elements.\n\n- The length of an **object** is the number of key-value pairs.\n\n- The length of **null** is zero.\n\n- It is an error to use `length` on a **boolean**.\n</requirement>\n<requirement name=\"utf8-byte-length\" stories=\"strings\">\nThe builtin function `utf8bytelength` outputs the number of\nbytes used to encode a string in UTF-8.\n</requirement>\n<requirement name=\"keys\" stories=\"collection-builtins\">\nThe builtin function `keys`, when given an object, returns\nits keys in an array.\n\nThe keys are sorted \"alphabetically\", by unicode codepoint\norder. This is not an order that makes particular sense in\nany particular language, but you can count on it being the\nsame for any two objects with the same set of keys,\nregardless of locale settings.\n\nWhen `keys` is given an array, it returns the valid indices\nfor that array: the integers from 0 to length-1.\n\nThe `keys_unsorted` function is just like `keys`, but if\nthe input is an object then the keys will not be sorted,\ninstead the keys will roughly be in insertion order.\n</requirement>\n<requirement name=\"has\" stories=\"collection-builtins\">\nThe builtin function `has` returns whether the input object\nhas the given key, or the input array has an element at the\ngiven index.\n</requirement>\n<requirement name=\"in\" stories=\"collection-builtins\">\nThe builtin function `in` returns whether or not the input key is in the\ngiven object, or the input index corresponds to an element\nin the given array. It is, essentially, an inversed version\nof `has`.\n</requirement>\n<requirement name=\"map\" stories=\"collection-builtins\">\nFor any filter `f`, `map(f)` and `map_values(f)` apply `f`\nto each of the values in the input array or object, that is,\nto the values of `.[]`.\n\nIn the absence of errors, `map(f)` always outputs an array\nwhereas `map_values(f)` outputs an array if given an array,\nor an object if given an object.\n\nWhen the input to `map_values(f)` is an object, the output\nobject has the same keys as the input object except for\nthose keys whose values when piped to `f` produce no values\nat all.\n\nThe key difference between `map(f)` and `map_values(f)` is\nthat the former simply forms an array from all the values of\n`($x|f)` for each value, `$x`, in the input array or object,\nbut `map_values(f)` only uses `first($x|f)`.\n</requirement>\n<requirement name=\"pick\" stories=\"paths,collection-builtins\">\nEmit the projection of the input object or array defined by the\nspecified sequence of path expressions, such that if `p` is any\none of these specifications, then `(. | p)` will evaluate to the\nsame value as `(. | pick(pathexps) | p)`. For arrays, negative\nindices and `.[m:n]` specifications should not be used.\n</requirement>\n<requirement name=\"path\" stories=\"paths\">\nOutputs array representations of the given path expression\nin `.`.  The outputs are arrays of strings (object keys)\nand/or numbers (array indices).\n\nPath expressions are jq expressions like `.a`, but also `.[]`.\nThere are two types of path expressions: ones that can match\nexactly, and ones that cannot.  For example, `.a.b.c` is an\nexact match path expression, while `.a[].b` is not.\n\n`path(exact_path_expression)` will produce the array\nrepresentation of the path expression even if it does not\nexist in `.`, if `.` is `null` or an array or an object.\n\n`path(pattern)` will produce array representations of the\npaths matching `pattern` if the paths exist in `.`.\n</requirement>\n<requirement name=\"del\" stories=\"paths,assignment\">\nThe builtin function `del` removes a key and its corresponding\nvalue from an object.\n</requirement>\n<requirement name=\"getpath\" stories=\"paths\">\nThe builtin function `getpath` outputs the values in `.` found\nat each path in `PATHS`.\n</requirement>\n<requirement name=\"setpath\" stories=\"paths,assignment\">\nThe builtin function `setpath` sets the `PATHS` in `.` to `VALUE`.\n</requirement>\n<requirement name=\"delpaths\" stories=\"paths,assignment\">\nThe builtin function `delpaths` deletes the `PATHS` in `.`.\n`PATHS` must be an array of paths, where each path is an array\nof strings and numbers.\n</requirement>\n<requirement name=\"entries\" stories=\"collection-builtins\">\nThese functions convert between an object and an array of\nkey-value pairs. If `to_entries` is passed an object, then\nfor each `k: v` entry in the input, the output array\nincludes `{\"key\": k, \"value\": v}`.\n\n`from_entries` does the opposite conversion, and `with_entries(f)`\nis a shorthand for `to_entries | map(f) | from_entries`, useful for\ndoing some operation to all keys and values of an object.\n`from_entries` accepts `\"key\"`, `\"Key\"`, `\"name\"`, `\"Name\"`,\n`\"value\"`, and `\"Value\"` as keys.\n</requirement>\n<requirement name=\"select\" stories=\"control\">\nThe function `select(f)` produces its input unchanged if\n`f` returns true for that input, and produces no output\notherwise.\n</requirement>\n<requirement name=\"type-selectors\" stories=\"conversion\">\nThese built-ins select only inputs that are arrays, objects,\niterables (arrays or objects), booleans, numbers, normal\nnumbers, finite numbers, strings, null, non-null values, and\nnon-iterables, respectively.\n</requirement>\n<requirement name=\"empty\" stories=\"core\">\n`empty` returns no results. None at all. Not even `null`.\n</requirement>\n<requirement name=\"error\" stories=\"control\">\nProduces an error with the input value, or with the message\ngiven as the argument. Errors can be caught with try/catch;\nsee below.\n</requirement>\n<requirement name=\"halt\" stories=\"control,io\">\nStops the jq program with no further outputs.  jq will exit\nwith exit status `0`.\n</requirement>\n<requirement name=\"halt-error\" stories=\"control,io\">\nStops the jq program with no further outputs.  The input will\nbe printed on `stderr` as raw output (i.e., strings will not\nhave double quotes) with no decoration, not even a newline.\n\nThe given `exit_code` (defaulting to `5`) will be jq's exit\nstatus.\n</requirement>\n<requirement name=\"source-location\" stories=\"lexer,parser,io\">\nProduces an object with a \"file\" key and a \"line\" key, with\nthe filename and line number where `$__loc__` occurs, as\nvalues.\n</requirement>\n<requirement name=\"paths\" stories=\"paths,traversal\">\n`paths` outputs the paths to all the elements in its input\n(except it does not output the empty list, representing .\nitself).\n\n`paths(f)` outputs the paths to any values for which `f` is `true`.\nThat is, `paths(type == \"number\")` outputs the paths to all numeric\nvalues.\n</requirement>\n<requirement name=\"add\" stories=\"collection-builtins\">\nThe filter `add` takes as input an array, and produces as\noutput the elements of the array added together. This might\nmean summed, concatenated or merged depending on the types\nof the elements of the input array - the rules are the same\nas those for the `+` operator (described above).\n\nIf the input is an empty array, `add` returns `null`.\n\n`add(generator)` operates on the given generator rather than\nthe input.\n</requirement>\n<requirement name=\"any\" stories=\"collection-builtins,loops\">\nThe filter `any` takes as input an array of boolean values,\nand produces `true` as output if any of the elements of\nthe array are `true`.\n\nIf the input is an empty array, `any` returns `false`.\n\nThe `any(condition)` form applies the given condition to the\nelements of the input array.\n\nThe `any(generator; condition)` form applies the given\ncondition to all the outputs of the given generator.\n</requirement>\n<requirement name=\"all\" stories=\"collection-builtins,loops\">\nThe filter `all` takes as input an array of boolean values,\nand produces `true` as output if all of the elements of\nthe array are `true`.\n\nThe `all(condition)` form applies the given condition to the\nelements of the input array.\n\nThe `all(generator; condition)` form applies the given\ncondition to all the outputs of the given generator.\n\nIf the input is an empty array, `all` returns `true`.\n</requirement>\n<requirement name=\"flatten\" stories=\"collection-builtins\">\nThe filter `flatten` takes as input an array of nested arrays,\nand produces a flat array in which all arrays inside the original\narray have been recursively replaced by their values. You can pass\nan argument to it to specify how many levels of nesting to flatten.\n</requirement>\n<requirement name=\"range\" stories=\"loops\">\nThe `range` function produces a range of numbers. `range(4; 10)`\nproduces 6 numbers, from 4 (inclusive) to 10 (exclusive). The numbers\nare produced as separate outputs. Use `[range(4; 10)]` to get a range as\nan array.\n\nThe one argument form generates numbers from 0 to the given\nnumber, with an increment of 1.\n\nThe two argument form generates numbers from `from` to `upto`\nwith an increment of 1.\n\nThe three argument form generates numbers `from` to `upto`\nwith an increment of `by`.\n</requirement>\n<requirement name=\"floor\" stories=\"numeric\">\nThe `floor` function returns the floor of its numeric input.\n</requirement>\n<requirement name=\"sqrt\" stories=\"numeric\">\nThe `sqrt` function returns the square root of its numeric input.\n</requirement>\n<requirement name=\"tonumber\" stories=\"conversion\">\nThe `tonumber` function parses its input as a number. It\nwill convert correctly-formatted strings to their numeric\nequivalent, leave numbers alone, and give an error on all other input.\n</requirement>\n<requirement name=\"toboolean\" stories=\"conversion\">\nThe `toboolean` function parses its input as a boolean. It\nwill convert correctly-formatted strings to their boolean\nequivalent, leave booleans alone, and give an error on all other input.\n</requirement>\n<requirement name=\"tostring\" stories=\"conversion\">\nThe `tostring` function prints its input as a\nstring. Strings are left unchanged, and all other values are\nJSON-encoded.\n</requirement>\n<requirement name=\"type\" stories=\"conversion\">\nThe `type` function returns the type of its argument as a\nstring, which is one of null, boolean, number, string, array\nor object.\n</requirement>\n<requirement name=\"numeric-special-values\" stories=\"numeric\">\nSome arithmetic operations can yield infinities and \"not a\nnumber\" (NaN) values.  The `isinfinite` builtin returns `true`\nif its input is infinite.  The `isnan` builtin returns `true`\nif its input is a NaN.  The `infinite` builtin returns a\npositive infinite value.  The `nan` builtin returns a NaN.\nThe `isnormal` builtin returns true if its input is a normal\nnumber.\n</requirement>\n<requirement name=\"sort\" stories=\"collection-builtins,operators\">\nThe `sort` functions sorts its input, which must be an\narray. Values are sorted in the following order:\n\n* `null`\n* `false`\n* `true`\n* numbers\n* strings, in alphabetical order (by unicode codepoint value)\n* arrays, in lexical order\n* objects\n\nThe ordering for objects is a little complex: first they're\ncompared by comparing their sets of keys (as arrays in\nsorted order), and if their keys are equal then the values\nare compared key by key.\n\n`sort_by` may be used to sort by a particular field of an\nobject, or by applying any jq filter. `sort_by(f)` compares\ntwo elements by comparing the result of `f` on each element.\nWhen `f` produces multiple values, it firstly compares the\nfirst values, and the second values if the first values are\nequal, and so on.\n</requirement>\n<requirement name=\"group-by\" stories=\"collection-builtins\">\n`group_by(.foo)` takes as input an array, groups the\nelements having the same `.foo` field into separate arrays,\nand produces all of these arrays as elements of a larger\narray, sorted by the value of the `.foo` field.\n\nAny jq expression, not just a field access, may be used in\nplace of `.foo`. The sorting order is the same as described\nin the `sort` function above.\n</requirement>\n<requirement name=\"min-max\" stories=\"collection-builtins\">\nFind the minimum or maximum element of the input array.\n\nThe `min_by(path_exp)` and `max_by(path_exp)` functions allow\nyou to specify a particular field or property to examine, e.g.\n`min_by(.foo)` finds the object with the smallest `foo` field.\n</requirement>\n<requirement name=\"unique\" stories=\"collection-builtins\">\nThe `unique` function takes as input an array and produces\nan array of the same elements, in sorted order, with\nduplicates removed.\n\nThe `unique_by(path_exp)` function will keep only one element\nfor each value obtained by applying the argument. Think of it\nas making an array by taking one element out of every group\nproduced by `group`.\n</requirement>\n<requirement name=\"reverse\" stories=\"collection-builtins\">\nThis function reverses an array.\n</requirement>\n<requirement name=\"contains\" stories=\"collection-builtins,strings\">\nThe filter `contains(b)` will produce true if b is\ncompletely contained within the input. A string B is\ncontained in a string A if B is a substring of A. An array B\nis contained in an array A if all elements in B are\ncontained in any element in A. An object B is contained in\nobject A if all of the values in B are contained in the\nvalue in A with the same key. All other types are assumed to\nbe contained in each other if they are equal.\n</requirement>\n<requirement name=\"indices\" stories=\"collection-builtins,strings\">\nOutputs an array containing the indices in `.` where `s`\noccurs.  The input may be an array, in which case if `s` is an\narray then the indices output will be those where all elements\nin `.` match those of `s`.\n</requirement>\n<requirement name=\"index-rindex\" stories=\"collection-builtins,strings\">\nOutputs the index of the first (`index`) or last (`rindex`)\noccurrence of `s` in the input.\n</requirement>\n<requirement name=\"inside\" stories=\"collection-builtins,strings\">\nThe filter `inside(b)` will produce true if the input is\ncompletely contained within b. It is, essentially, an\ninversed version of `contains`.\n</requirement>\n<requirement name=\"startswith\" stories=\"strings\">\nOutputs `true` if . starts with the given string argument.\n</requirement>\n<requirement name=\"endswith\" stories=\"strings\">\nOutputs `true` if . ends with the given string argument.\n</requirement>\n<requirement name=\"combinations\" stories=\"collection-builtins\">\nOutputs all combinations of the elements of the arrays in the\ninput array. If given an argument `n`, it outputs all combinations\nof `n` repetitions of the input array.\n</requirement>\n<requirement name=\"ltrimstr\" stories=\"strings\">\nOutputs its input with the given prefix string removed, if it\nstarts with it.\n</requirement>\n<requirement name=\"rtrimstr\" stories=\"strings\">\nOutputs its input with the given suffix string removed, if it\nends with it.\n</requirement>\n<requirement name=\"trimstr\" stories=\"strings\">\nOutputs its input with the given string removed at both ends, if it\nstarts or ends with it.\n</requirement>\n<requirement name=\"trim-whitespace\" stories=\"strings\">\n`trim` trims both leading and trailing whitespace.\n\n`ltrim` trims only leading (left side) whitespace.\n\n`rtrim` trims only trailing (right side) whitespace.\n\nWhitespace characters are the usual `\" \"`, `\"\\n\"` `\"\\t\"`, `\"\\r\"`\nand also all characters in the Unicode character database with the\nwhitespace property. Note that what considers whitespace might\nchange in the future.\n</requirement>\n<requirement name=\"explode\" stories=\"strings\">\nConverts an input string into an array of the string's\ncodepoint numbers.\n</requirement>\n<requirement name=\"implode\" stories=\"strings\">\nThe inverse of explode.\n</requirement>\n<requirement name=\"split\" stories=\"strings\">\nSplits an input string on the separator argument.\n\n`split` can also split on regex matches when called with\ntwo arguments (see the regular expressions section below).\n</requirement>\n<requirement name=\"join\" stories=\"strings\">\nJoins the array of elements given as input, using the\nargument as separator. It is the inverse of `split`: that is,\nrunning `split(\"foo\") | join(\"foo\")` over any input string\nreturns said input string.\n\nNumbers and booleans in the input are converted to strings.\nNull values are treated as empty strings. Arrays and objects\nin the input are not supported.\n</requirement>\n<requirement name=\"ascii-case\" stories=\"strings\">\nEmit a copy of the input string with its alphabetic characters (a-z and A-Z)\nconverted to the specified case.\n</requirement>\n<requirement name=\"while\" stories=\"loops\">\nThe `while(cond; update)` function allows you to repeatedly\napply an update to `.` until `cond` is false.\n</requirement>\n<requirement name=\"repeat\" stories=\"loops\">\nThe `repeat(exp)` function allows you to repeatedly\napply expression `exp` to `.` until an error is raised.\n</requirement>\n<requirement name=\"until\" stories=\"loops\">\nThe `until(cond; next)` function allows you to repeatedly\napply the expression `next`, initially to `.` then to its own\noutput, until `cond` is true.\n</requirement>\n<requirement name=\"recurse\" stories=\"traversal,loops\">\nWhen called without an argument, `recurse` is equivalent to\n`recurse(.[]?)`.\n\n`recurse(f)` is identical to `recurse(f; true)` and can be\nused without concerns about recursion depth.\n\n`recurse(f; condition)` is a generator which begins by\nemitting . and then emits in turn .|f, .|f|f, .|f|f|f, ...  so long\nas the computed value satisfies the condition.\n</requirement>\n<requirement name=\"walk\" stories=\"traversal\">\nThe `walk(f)` function applies f recursively to every\ncomponent of the input entity.  When an array is\nencountered, f is first applied to its elements and then to\nthe array itself; when an object is encountered, f is first\napplied to all the values and then to the object.\n</requirement>\n<requirement name=\"have-literal-numbers\" stories=\"numeric\">\nThis builtin returns true if jq's build configuration\nincludes support for preservation of input number literals.\n</requirement>\n<requirement name=\"have-decnum\" stories=\"numeric\">\nThis builtin returns true if jq was built with \"decnum\",\nwhich is the current literal number preserving numeric\nbackend implementation for jq.\n</requirement>\n<requirement name=\"build-configuration\" stories=\"io\">\nThis builtin binding shows the jq executable's build\nconfiguration.  Its value has no particular format, but\nit can be expected to be at least the `./configure`\ncommand-line arguments, and may be enriched in the\nfuture to include the version strings for the build\ntooling used.\n</requirement>\n<requirement name=\"environment\" stories=\"io\">\n`$ENV` is an object representing the environment variables as\nset when the jq program started.\n\n`env` outputs an object representing jq's current environment.\n</requirement>\n<requirement name=\"transpose\" stories=\"collection-builtins\">\nTranspose a possibly jagged matrix (an array of arrays).\nRows are padded with nulls so the result is always rectangular.\n</requirement>\n<requirement name=\"bsearch\" stories=\"collection-builtins\">\n`bsearch(x)` conducts a binary search for x in the input\narray.  If the input is sorted and contains x, then\n`bsearch(x)` will return its index in the array; otherwise, if\nthe array is sorted, it will return (-1 - ix) where ix is an\ninsertion point such that the array would still be sorted\nafter the insertion of x at ix.  If the array is not sorted,\n`bsearch(x)` will return an integer that is probably of no\ninterest.\n</requirement>\n<requirement name=\"string-interpolation\" stories=\"lexer,parser,strings\">\nInside a string, you can put an expression inside parens\nafter a backslash. Whatever the expression returns will be\ninterpolated into the string.\n</requirement>\n<requirement name=\"json-conversion\" stories=\"conversion\">\nThe `tojson` and `fromjson` builtins dump values as JSON texts\nor parse JSON texts into values, respectively.  The `tojson`\nbuiltin differs from `tostring` in that `tostring` returns strings\nunmodified, while `tojson` encodes strings as JSON strings.\n</requirement>\n<requirement name=\"format-strings\" stories=\"lexer,parser,formats\">\nThe `@foo` syntax is used to format and escape strings,\nwhich is useful for building URLs, documents in a language\nlike HTML or XML, and so forth. `@foo` can be used as a\nfilter on its own, the possible escapings are:\n\n* `@text`:\n\n  Calls `tostring`, see that function for details.\n\n* `@json`:\n\n  Serializes the input as JSON.\n\n* `@html`:\n\n  Applies HTML/XML escaping, by mapping the characters\n  `<>&'\"` to their entity equivalents `&lt;`, `&gt;`,\n  `&amp;`, `&apos;`, `&quot;`.\n\n* `@uri`:\n\n  Applies percent-encoding, by mapping all reserved URI\n  characters to a `%XX` sequence.\n\n* `@urid`:\n\n  The inverse of `@uri`, applies percent-decoding, by mapping\n  all `%XX` sequences to their corresponding URI characters.\n\n* `@csv`:\n\n  The input must be an array, and it is rendered as CSV\n  with double quotes for strings, and quotes escaped by\n  repetition.\n\n* `@tsv`:\n\n  The input must be an array, and it is rendered as TSV\n  (tab-separated values). Each input array will be printed as\n  a single line. Fields are separated by a single\n  tab (ascii `0x09`). Input characters line-feed (ascii `0x0a`),\n  carriage-return (ascii `0x0d`), tab (ascii `0x09`) and\n  backslash (ascii `0x5c`) will be output as escape sequences\n  `\\n`, `\\r`, `\\t`, `\\\\` respectively.\n\n* `@sh`:\n\n  The input is escaped suitable for use in a command-line\n  for a POSIX shell. If the input is an array, the output\n  will be a series of space-separated strings.\n\n* `@base64`:\n\n  The input is converted to base64 as specified by RFC 4648.\n\n* `@base64d`:\n\n  The inverse of `@base64`, input is decoded as specified by RFC 4648.\n  Note\\: If the decoded string is not UTF-8, the results are undefined.\n</requirement>\n<requirement name=\"format-interpolation\" stories=\"lexer,parser,formats\">\nThis syntax can be combined with string interpolation in a\nuseful way. You can follow a `@foo` token with a string\nliteral. The contents of the string literal will *not* be\nescaped. However, all interpolations made inside that string\nliteral will be escaped.\n</requirement>\n<requirement name=\"date-builtins\" stories=\"dates\">\nThe `fromdateiso8601` builtin parses datetimes in the ISO 8601\nformat to a number of seconds since the Unix epoch\n(1970-01-01T00:00:00Z).  The `todateiso8601` builtin does the\ninverse.\n\nThe `fromdate` builtin parses datetime strings.  Currently\n`fromdate` only supports ISO 8601 datetime strings, but in the\nfuture it will attempt to parse datetime strings in more\nformats.\n\nThe `todate` builtin is an alias for `todateiso8601`.\n\nThe `now` builtin outputs the current time, in seconds since\nthe Unix epoch.\n</requirement>\n<requirement name=\"low-level-date-builtins\" stories=\"dates\">\nLow-level jq interfaces to the C-library time functions are\nalso provided: `strptime`, `strftime`, `strflocaltime`,\n`mktime`, `gmtime`, and `localtime`.\n</requirement>\n<requirement name=\"sql-index\" stories=\"sql\">\nThis builtin produces an object whose keys are computed by\nthe given index expression applied to each value from the\ngiven stream.\n</requirement>\n<requirement name=\"sql-join\" stories=\"sql\">\nThis builtin joins the values from the given stream to the\ngiven index.  The index's keys are computed by applying the\ngiven index expression to each value from the given stream.\nAn array of the value in the stream and the corresponding\nvalue from the index is fed to the given join expression to\nproduce each result.\n</requirement>\n<requirement name=\"sql-in\" stories=\"sql\">\n* `IN(s)`:\n\n  This builtin outputs `true` if `.` appears in the given\n  stream, otherwise it outputs `false`.\n\n* `IN(source; s)`:\n\n  This builtin outputs `true` if any value in the source stream\n  appears in the second stream, otherwise it outputs `false`.\n</requirement>\n<requirement name=\"builtins-inventory\" stories=\"sql\">\nReturns a list of all builtin functions in the format `name/arity`.\nSince functions with the same name but different arities are considered\nseparate functions, `all/0`, `all/1`, and `all/2` would all be present\nin the list.\n</requirement>\n<requirement name=\"equality\" stories=\"operators\">\nThe expression 'a == b' will produce 'true' if the results of evaluating\na and b are equal (that is, if they represent equivalent JSON values) and\n'false' otherwise. In particular, strings are never considered equal\nto numbers.  In checking for the equality of JSON objects, the ordering of keys\nis irrelevant.  If you're coming from JavaScript, please note that jq's `==` is like\nJavaScript's `===`, the \"strict equality\" operator.\n\n!= is \"not equal\", and 'a != b' returns the opposite value of 'a == b'\n</requirement>\n<requirement name=\"conditionals\" stories=\"parser,control\">\n`if A then B else C end` will act the same as `B` if `A`\nproduces a value other than false or null, but act the same\nas `C` otherwise.\n\n`if A then B end` is the same as `if A then B else .  end`.\nThat is, the `else` branch is optional, and if absent is the\nsame as `.`. This also applies to `elif` with absent ending `else` branch.\n</requirement>\n<requirement name=\"conditional-generators\" stories=\"control\">\nIf the condition `A` produces multiple results, then `B` is evaluated\nonce for each result that is not false or null, and `C` is evaluated\nonce for each false or null.\n\nMore cases can be added to an if using `elif A then B` syntax.\n</requirement>\n<requirement name=\"comparisons\" stories=\"operators\">\nThe comparison operators `>`, `>=`, `<=`, `<` return whether\ntheir left argument is greater than, greater than or equal\nto, less than or equal to or less than their right argument\n(respectively).\n\nThe ordering is the same as that described for `sort`, above.\n</requirement>\n<requirement name=\"boolean-operators\" stories=\"parser,operators,control\">\njq supports the normal Boolean operators `and`, `or`, `not`.\nThey have the same standard of truth as if expressions -\n`false` and `null` are considered \"false values\", and\nanything else is a \"true value\".\n\nIf an operand of one of these operators produces multiple\nresults, the operator itself will produce a result for each input.\n\n`not` is in fact a builtin function rather than an operator,\nso it is called as a filter to which things can be piped\nrather than with special syntax, as in `.foo and .bar |\nnot`.\n</requirement>\n<requirement name=\"alternative\" stories=\"parser,control\">\nThe `//` operator produces all the values of its left-hand\nside that are neither `false` nor `null`. If the\nleft-hand side produces no values other than `false` or\n`null`, then `//` produces all the values of its right-hand\nside.\n</requirement>\n<requirement name=\"try-catch\" stories=\"parser,control\">\nErrors can be caught by using `try EXP catch EXP`.  The first\nexpression is executed, and if it fails then the second is\nexecuted with the error message.  The output of the handler,\nif any, is output as if it had been the output of the\nexpression to try.\n\nThe `try EXP` form uses `empty` as the exception handler.\n</requirement>\n<requirement name=\"label-break\" stories=\"parser,control\">\njq has a syntax for named lexical labels to \"break\" or \"go (back) to\":\n\n    label $out | ... break $out ...\n\nThe `break $label_name` expression will cause the program to\nact as though the nearest (to the left) `label $label_name`\nproduced `empty`.\n\nThe relationship between the `break` and corresponding `label`\nis lexical: the label has to be \"visible\" from the break.\n</requirement>\n<requirement name=\"optional-operator\" stories=\"parser,control\">\nThe `?` operator, used as `EXP?`, is shorthand for `try EXP`.\n</requirement>\n<requirement name=\"regex-syntax\" stories=\"strings\">\njq uses the\n[Oniguruma regular expression library](https://github.com/kkos/oniguruma/blob/master/doc/RE),\nas do PHP, TextMate, Sublime Text, etc, so the\ndescription here will focus on jq specifics.\n\nOniguruma supports several flavors of regular expression, so it is important to know\nthat jq uses the [\"Perl NG\" (Perl with named groups)](https://github.com/kkos/oniguruma/blob/master/doc/SYNTAX.md) flavor.\n</requirement>\n<requirement name=\"regex-flags\" stories=\"strings\">\nFLAGS is a string consisting of one of more of the supported flags:\n\n* `g` - Global search (find all matches, not just the first)\n* `i` - Case insensitive search\n* `m` - Multi line mode (`.` will match newlines)\n* `n` - Ignore empty matches\n* `p` - Both s and m modes are enabled\n* `s` - Single line mode (`^` -> `\\A`, `$` -> `\\Z`)\n* `l` - Find longest possible matches\n* `x` - Extended regex format (ignore whitespace and comments)\n</requirement>\n<requirement name=\"regex-test\" stories=\"strings\">\nLike `match`, but does not return match objects, only `true` or `false`\nfor whether or not the regex matches the input.\n</requirement>\n<requirement name=\"regex-match\" stories=\"strings\">\n**match** outputs an object for each match it finds.  Matches have\nthe following fields:\n\n* `offset` - offset in UTF-8 codepoints from the beginning of the input\n* `length` - length in UTF-8 codepoints of the match\n* `string` - the string that it matched\n* `captures` - an array of objects representing capturing groups.\n\nCapturing group objects have the following fields:\n\n* `offset` - offset in UTF-8 codepoints from the beginning of the input\n* `length` - length in UTF-8 codepoints of this capturing group\n* `string` - the string that was captured\n* `name` - the name of the capturing group (or `null` if it was unnamed)\n\nCapturing groups that did not match anything return an offset of -1\n</requirement>\n<requirement name=\"regex-capture\" stories=\"strings\">\nCollects the named captures in a JSON object, with the name\nof each capture as the key, and the matched string as the\ncorresponding value.\n</requirement>\n<requirement name=\"regex-scan\" stories=\"strings\">\nEmit a stream of the non-overlapping substrings of the input\nthat match the regex in accordance with the flags, if any\nhave been specified.  If there is no match, the stream is empty.\nTo capture all the matches for each input string, use the idiom\n`[ expr ]`, e.g. `[ scan(regex) ]`.  If the regex contains capturing\ngroups, the filter emits a stream of arrays, each of which contains\nthe captured strings.\n</requirement>\n<requirement name=\"regex-split\" stories=\"strings\">\nSplits an input string on each regex match.\n\nFor backwards compatibility, when called with a single argument,\n`split` splits on a string, not a regex.\n</requirement>\n<requirement name=\"regex-splits\" stories=\"strings\">\nThese provide the same results as their `split` counterparts,\nbut as a stream instead of an array.\n</requirement>\n<requirement name=\"regex-sub\" stories=\"strings\">\nEmit the string obtained by replacing the first match of\nregex in the input string with `tostring`, after\ninterpolation.  `tostring` should be a jq string or a stream\nof such strings, each of which may contain references to\nnamed captures. The named captures are, in effect, presented\nas a JSON object (as constructed by `capture`) to\n`tostring`, so a reference to a captured variable named \"x\"\nwould take the form: `\"\\(.x)\"`.\n</requirement>\n<requirement name=\"regex-gsub\" stories=\"strings\">\n`gsub` is like `sub` but all the non-overlapping occurrences of the regex are\nreplaced by `tostring`, after interpolation. If the second argument is a stream\nof jq strings, then `gsub` will produce a corresponding stream of JSON strings.\n</requirement>\n<requirement name=\"variable-binding\" stories=\"parser,bindings\">\nThe expression `exp as $x | ...` means: for each value of expression\n`exp`, run the rest of the pipeline with the entire original input, and\nwith `$x` set to that value.  Thus `as` functions as something of a\nforeach loop.\n</requirement>\n<requirement name=\"destructuring\" stories=\"parser,bindings\">\nMultiple variables may be declared using a single `as` expression by\nproviding a pattern that matches the structure of the input\n(this is known as \"destructuring\"):\n\n    . as {realnames: $names, posts: [$first, $second]} | ...\n\nThe variable declarations in array patterns (e.g., `. as\n[$first, $second]`) bind to the elements of the array in from\nthe element at index zero on up, in order.  When there is no\nvalue at the index for an array pattern element, `null` is\nbound to that variable.\n</requirement>\n<requirement name=\"destructuring-alternative\" stories=\"parser,bindings\">\nThe destructuring alternative operator provides a concise mechanism\nfor destructuring an input that can take one of several forms.\n</requirement>\n<requirement name=\"destructuring-alternative-bindings\" stories=\"bindings\">\nEach alternative need not define all of the same variables, but all named\nvariables will be available to the subsequent expression. Variables not\nmatched in the alternative that succeeded will be `null`:\n</requirement>\n<requirement name=\"destructuring-alternative-errors\" stories=\"bindings,control\">\nAdditionally, if the subsequent expression returns an error, the\nalternative operator will attempt to try the next binding. Errors\nthat occur during the final alternative are passed through.\n</requirement>\n<requirement name=\"function-definitions\" stories=\"parser,bindings\">\nYou can give a filter a name using \"def\" syntax:\n\n    def increment: . + 1;\n\nFrom then on, `increment` is usable as a filter just like a\nbuiltin function (in fact, this is how many of the builtins\nare defined). A function may take arguments:\n\n    def map(f): [.[] | f];\n\nArguments are passed as _filters_ (functions with no\narguments), _not_ as values. The same argument may be\nreferenced multiple times with different inputs (here `f` is\nrun for each element of the input array).\n</requirement>\n<requirement name=\"function-value-arguments\" stories=\"parser,bindings\">\nIf you want the value-argument behaviour for defining simple\nfunctions, you can just use a variable:\n\n    def addvalue(f): f as $f | map(. + $f);\n\nOr use the short-hand:\n\n    def addvalue($f): ...;\n</requirement>\n<requirement name=\"function-redefinition\" stories=\"bindings\">\nMultiple definitions using the same function name are allowed.\nEach re-definition replaces the previous one for the same\nnumber of function arguments, but only for references from\nfunctions (or main program) subsequent to the re-definition.\n</requirement>\n<requirement name=\"lexical-scoping\" stories=\"parser,bindings\">\nThere are two types of symbols in jq: value bindings (a.k.a.,\n\"variables\"), and functions.  Both are scoped lexically,\nwith expressions being able to refer only to symbols that\nhave been defined \"to the left\" of them.  The only exception\nto this rule is that functions can refer to themselves so as\nto be able to create recursive functions.\n</requirement>\n<requirement name=\"isempty\" stories=\"loops\">\nReturns true if `exp` produces no outputs, false otherwise.\n</requirement>\n<requirement name=\"limit\" stories=\"loops\">\nThe `limit` function extracts up to `n` outputs from `expr`.\n</requirement>\n<requirement name=\"skip\" stories=\"loops\">\nThe `skip` function skips the first `n` outputs from `expr`.\n</requirement>\n<requirement name=\"generator-first-last-nth\" stories=\"loops\">\nThe `first(expr)` and `last(expr)` functions extract the first\nand last values from `expr`, respectively.\n\nThe `nth(n; expr)` function extracts the nth value output by `expr`.\nNote that `nth(n; expr)` doesn't support negative values of `n`.\n</requirement>\n<requirement name=\"array-first-last-nth\" stories=\"collection-builtins\">\nThe `first` and `last` functions extract the first\nand last values from any array at `.`.\n\nThe `nth(n)` function extracts the nth value of any array at `.`.\n</requirement>\n<requirement name=\"reduce\" stories=\"parser,loops,bindings\">\nThe `reduce` syntax allows you to combine all of the results of\nan expression by accumulating them into a single answer.\nThe form is `reduce EXP as $var (INIT; UPDATE)`.\n</requirement>\n<requirement name=\"foreach\" stories=\"parser,loops,bindings\">\nThe `foreach` syntax is similar to `reduce`, but intended to\nallow the construction of `limit` and reducers that produce\nintermediate results.\n\nThe form is `foreach EXP as $var (INIT; UPDATE; EXTRACT)`.\n</requirement>\n<requirement name=\"foreach-default-extract\" stories=\"loops\">\nWhen `EXTRACT` is omitted, the identity filter is used.\nThat is, it outputs the intermediate values as they are.\n</requirement>\n<requirement name=\"tail-recursion\" stories=\"bindings,loops\">\nTail calls are optimized whenever the expression to the left of\nthe recursive call outputs its last value.  In practice this\nmeans that the expression to the left of the recursive call\nshould not produce more than one output for each input.\n</requirement>\n<requirement name=\"math-functions\" stories=\"numeric\">\nBesides simple arithmetic operators such as `+`, jq also has most\nstandard math functions from the C math library.  C math functions\nthat take a single input argument (e.g., `sin()`) are available as\nzero-argument jq functions.  C math functions that take two input\narguments (e.g., `pow()`) are available as two-argument jq\nfunctions that ignore `.`.  C math functions that take three input\narguments are available as three-argument jq functions that ignore\n`.`.\n\nAvailability of standard math functions depends on the\navailability of the corresponding math functions in your operating\nsystem and C math library.  Unavailable math functions will be\ndefined but will raise an error.\n</requirement>\n<requirement name=\"input\" stories=\"io\">\nOutputs one new input.\n</requirement>\n<requirement name=\"inputs\" stories=\"io\">\nOutputs all remaining inputs, one by one.\n</requirement>\n<requirement name=\"debug\" stories=\"io\">\nThese two filters are like `.` but have as a side-effect the\nproduction of one or more messages on stderr.\n\nThe message produced by the `debug` filter has the form\n\n    [\"DEBUG:\",<input-value>]\n\nwhere `<input-value>` is a compact rendition of the input\nvalue.  This format may change in the future.\n\nThe `debug(msgs)` filter is defined as `(msgs | debug | empty), .`\nthus allowing great flexibility in the content of the message,\nwhile also allowing multi-line debugging statements to be created.\n</requirement>\n<requirement name=\"stderr\" stories=\"io\">\nPrints its input in raw and compact mode to stderr with no\nadditional decoration, not even a newline.\n</requirement>\n<requirement name=\"input-filename\" stories=\"io\">\nReturns the name of the file whose input is currently being\nfiltered.  Note that this will not work well unless jq is\nrunning in a UTF-8 locale.\n</requirement>\n<requirement name=\"input-line-number\" stories=\"io\">\nReturns the line number of the input currently being filtered.\n</requirement>\n<requirement name=\"truncate-stream\" stories=\"traversal\">\nConsumes a number as input and truncates the corresponding\nnumber of path elements from the left of the outputs of the\ngiven streaming expression.\n</requirement>\n<requirement name=\"fromstream\" stories=\"traversal\">\nOutputs values corresponding to the stream expression's\noutputs.\n</requirement>\n<requirement name=\"tostream\" stories=\"traversal\">\nThe `tostream` builtin outputs the streamed form of its input.\n</requirement>\n<requirement name=\"assignment-paths\" stories=\"parser,paths,assignment\">\nAll the assignment operators in jq have path expressions on the\nleft-hand side (LHS).  The right-hand side (RHS) provides values\nto set to the paths named by the LHS path expressions.\n\nValues in jq are always immutable.  Internally, assignment works\nby using a reduction to compute new, replacement values for `.` that\nhave had all the desired assignments applied to `.`, then\noutputting the modified value.\n</requirement>\n<requirement name=\"update-assignment\" stories=\"parser,assignment\">\nThis is the \"update\" operator `|=`.  It takes a filter on the\nright-hand side and works out the new value for the property\nof `.` being assigned to by running the old value through this\nexpression. For instance, `(.foo, .bar) |= .+1` will build an\nobject with the `foo` field set to the input's `foo` plus 1,\nand the `bar` field set to the input's `bar` plus 1.\n\nThe left-hand side can be any general path expression; see `path()`.\n</requirement>\n<requirement name=\"update-assignment-results\" stories=\"assignment\">\nIf the right-hand side outputs no values (i.e., `empty`), then\nthe left-hand side path will be deleted, as with `del(path)`.\n\nIf the right-hand side outputs multiple values, only the first\none will be used (COMPATIBILITY NOTE: in jq 1.5 and earlier\nreleases, it used to be that only the last one was used).\n</requirement>\n<requirement name=\"arithmetic-update-assignment\" stories=\"parser,assignment,operators\">\njq has a few operators of the form `a op= b`, which are all\nequivalent to `a |= . op b`. So, `+= 1` can be used to\nincrement values, being the same as `|= . + 1`.\n</requirement>\n<requirement name=\"plain-assignment\" stories=\"parser,assignment\">\nThis is the plain assignment operator.  Unlike the others, the\ninput to the right-hand side (RHS) is the same as the input to\nthe left-hand side (LHS) rather than the value at the LHS\npath, and all values output by the RHS will be used (as shown\nbelow).\n\nIf the RHS of `=` produces multiple values, then for each such\nvalue jq will set the paths on the left-hand side to the value\nand then it will output the modified `.`.\n</requirement>\n<requirement name=\"complex-assignment\" stories=\"paths,assignment\">\nWhen jq encounters an assignment like 'a = b', it records the \"path\"\ntaken to select a part of the input document while executing a. This\npath is then used to find which part of the input to change while\nexecuting the assignment. Any filter may be used on the\nleft-hand side of an equals - whichever paths it selects from the\ninput will be where the assignment is performed.\n</requirement>\n<requirement name=\"comments\" stories=\"lexer\">\nA `#` character (not part of a string) starts a comment.\nAll characters from `#` to the end of the line are ignored.\n\nIf the end of the line is preceded by an odd number of backslash\ncharacters, the following line is also considered part of the\ncomment and is ignored.\n</requirement>\n<requirement name=\"module-search\" stories=\"parser,bindings\">\nModules imported by a program are searched for in a default search\npath (see below).  The `import` and `include` directives allow the\nimporter to alter this path.\n\nPaths in the search path are subject to various substitutions.\n</requirement>\n<requirement name=\"module-import\" stories=\"parser,bindings\">\nImports a module found at the given path relative to a\ndirectory in a search path.  A `.jq` suffix will be added to\nthe relative path string.  The module's symbols are prefixed\nwith `NAME::`.\n</requirement>\n<requirement name=\"module-include\" stories=\"parser,bindings\">\nImports a module found at the given path relative to a\ndirectory in a search path as if it were included in place.  A\n`.jq` suffix will be added to the relative path string.  The\nmodule's symbols are imported into the caller's namespace as\nif the module's content had been included directly.\n</requirement>\n<requirement name=\"json-import\" stories=\"parser,bindings\">\nImports a JSON file found at the given path relative to a\ndirectory in a search path.  A `.json` suffix will be added to\nthe relative path string.  The file's data will be available\nas `$NAME::NAME`.\n</requirement>\n<requirement name=\"module-metadata\" stories=\"parser,bindings\">\nThis directive is entirely optional.  It's not required for\nproper operation.  It serves only the purpose of providing\nmetadata that can be read with the `modulemeta` builtin.\n</requirement>\n<requirement name=\"modulemeta\" stories=\"bindings\">\nTakes a module name as input and outputs the module's metadata\nas an object, with the module's imports (including metadata)\nas an array value for the `deps` key and the module's defined\nfunctions as an array value for the `defs` key.\n</requirement>\n<unattached story=\"foundation\"/>\n<unattached story=\"corpus-staging\"/>\n<unattached story=\"cli\"/>\n<unattached story=\"documentation\"/>\n<unattached story=\"scoped-integration\"/>\n<unattached story=\"terminal-verification\"/>"}}
{"type":"turn.completed","usage":{"input_tokens":45931,"cached_input_tokens":12160,"cache_write_input_tokens":0,"output_tokens":12781,"reasoning_output_tokens":0}}