@taskless/cli-nightly 0.11.2-20260915060137xc3bd15e → 0.11.2-20260916174053x057ddfb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Nightly build of [`@taskless/cli`](https://www.npmjs.com/package/@taskless/cli)
|
|
|
6
6
|
|
|
7
7
|
## What this is
|
|
8
8
|
|
|
9
|
-
This build is `0.11.2-
|
|
9
|
+
This build is `0.11.2-20260916174053x057ddfb`. The version reads as `<next release>-<UTC build time>x<commit>`, so it names the release it anticipates, when it was built, and the commit it came from.
|
|
10
10
|
|
|
11
11
|
It installs the same `taskless` executable as the release. **Do not install both globally** — they collide on that name, and that configuration is not supported.
|
|
12
12
|
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { AsyncLocalStorage as bf } from "node:async_hooks";
|
|
|
10
10
|
import { execFile as Lt, spawn as It } from "node:child_process";
|
|
11
11
|
import { RULES_DIRECTORY as J, TASKLESS_DIRECTORY as vf, ENGINES as at, ENGINE_LAYOUTS as Pt, isKnownEngine as zi, RULE_TESTS_DIRECTORY as Me } from "./layout.js";
|
|
12
12
|
import { homedir as Sf, tmpdir as Ji } from "node:os";
|
|
13
|
-
import { c as jt, d as qa, g as Hi, V as kf, e as Ef, f as Yi, A as Qi, w as Va, r as Ka, P as $f, h as Wa, i as _f, j as If, k as Af, o as Jr, l as Tf, m as Hr } from "./recipes-
|
|
13
|
+
import { c as jt, d as qa, g as Hi, V as kf, e as Ef, f as Yi, A as Qi, w as Va, r as Ka, P as $f, h as Wa, i as _f, j as If, k as Af, o as Jr, l as Tf, m as Hr } from "./recipes-SoknVxy5.js";
|
|
14
14
|
import { StringDecoder as At } from "node:string_decoder";
|
|
15
15
|
import { fileURLToPath as Cf } from "node:url";
|
|
16
16
|
import { r as Ff, A as Yr, p as Of, b as Rf, v as xf } from "./binary-DSACXL6n.js";
|
|
@@ -4935,7 +4935,7 @@ async function Ng(t) {
|
|
|
4935
4935
|
} catch {
|
|
4936
4936
|
}
|
|
4937
4937
|
}
|
|
4938
|
-
const lt = "0.11.2-
|
|
4938
|
+
const lt = "0.11.2-20260916174053x057ddfb", sn = "x-taskless-cli-version", Lg = "phc_stymptTiUskp4zM3m9StNSGheHwjskaYagpxV7rDjZyc", Pg = "https://z.taskless.io", jg = "anonymous_id";
|
|
4939
4939
|
async function Dg(t) {
|
|
4940
4940
|
try {
|
|
4941
4941
|
const e = await Qe(t, { silent: !0 });
|
|
@@ -11924,7 +11924,7 @@ function Lw() {
|
|
|
11924
11924
|
return s === "truecolor" || s === "24bit" ? 3 : /-256(color)?$/i.test(n) ? 2 : n === "" || n === "dumb" ? 0 : 1;
|
|
11925
11925
|
}
|
|
11926
11926
|
as.level = Lw();
|
|
11927
|
-
const Nc = "0.11.2-
|
|
11927
|
+
const Nc = "0.11.2-20260916174053x057ddfb", Pw = `
|
|
11928
11928
|
██████████
|
|
11929
11929
|
▄▄▄▄ ▗▄▄ ▗▄█▙▄▖ ▗▄▄▖ ▄▄▄ ▐█ ▄▖ ▀▀█ ▄▄▖ ▄▄▄ ▄▄▄
|
|
11930
11930
|
██▛▘▗▟████ ▝▀█▛▀▘ ▀ ▝█▖ █▙ ▝▘▐█▗▟▀ █ ▗█▘ ▜▙ █▙ ▝▘ █▙ ▝▘
|
|
@@ -15482,7 +15482,7 @@ See [transformation doc](https://ast-grep.github.io/reference/yaml/transformatio
|
|
|
15482
15482
|
It can reference metavariables appeared in rule.
|
|
15483
15483
|
See details in fix [object reference](https://ast-grep.github.io/reference/yaml/fix.html#fixconfig).`, anyOf: [{ $ref: "#/$defs/SerializableFixer" }, { type: "null" }] }, rewriters: { description: "Rewrite rules for `rewrite` transformation", type: ["array", "null"], items: { $ref: "#/$defs/SerializableRewriter" } }, id: { description: "Unique, descriptive identifier, e.g., no-unused-variable", type: "string", default: "" }, language: { description: "Specify the language to parse and the file extension to include in matching.", $ref: "#/$defs/Language" }, message: { description: `Main message highlighting why this rule fired. It should be single line and concise,
|
|
15484
15484
|
but specific enough to be understood without additional context.`, type: "string", default: "" }, note: { description: "Additional notes to elaborate the message and provide potential fix to the issue.\n`notes` can contain markdown syntax, but it cannot reference meta-variables.", type: ["string", "null"] }, severity: { description: "One of: hint, info, warning, or error", $ref: "#/$defs/Severity", default: "hint" }, labels: { description: `Custom label dictionary to configure reporting. Key is the meta-variable name and
|
|
15485
|
-
value is the label message and label style.`, type: ["object", "null"], additionalProperties: { $ref: "#/$defs/LabelConfig" } }, files: { description: "Glob patterns to specify that the rule only applies to matching files", type: ["array", "null"], items: { $ref: "#/$defs/RuleFileGlob" } }, ignores: { description: "Glob patterns that exclude rules from applying to files", type: ["array", "null"], items: { $ref: "#/$defs/RuleFileGlob" } }, url: { description: "Documentation link to this rule", type: ["string", "null"] }, metadata: { description: "Extra information for the rule", anyOf: [{ $ref: "#/$defs/Metadata" }, { type: "null" }] } }, sS = ["rule", "language"], iS = /* @__PURE__ */ JSON.parse('{"SerializableRule":{"description":"A rule object to find matching AST nodes. We have three categories of rules in ast-grep.\\n\\n* Atomic: the most basic rule to match AST. We have two variants: Pattern and Kind.\\n\\n* Relational: filter matched target according to their position relative to other nodes.\\n\\n* Composite: use logic operation all/any/not to compose the above rules to larger rules.\\n\\nEvery rule has it\'s unique name so we can combine several rules in one object.","type":"object","properties":{"pattern":{"description":"A pattern string or a pattern object.","$ref":"#/$defs/PatternStyle"},"kind":{"description":"The kind name of the node to match. You can look up code\'s kind names in playground.","type":"string"},"regex":{"description":"A Rust regular expression to match the node\'s text. https://docs.rs/regex/latest/regex/#syntax","type":"string"},"nthChild":{"description":"`nth_child` accepts number, string or object.\\nIt specifies the position in nodes\' sibling list.","$ref":"#/$defs/SerializableNthChild"},"range":{"description":"`range` accepts a range object.\\nthe target node must exactly appear in the range.","$ref":"#/$defs/SerializableRange"},"inside":{"description":"`inside` accepts a relational rule object.\\nthe target node must appear inside of another node matching the `inside` sub-rule.","$ref":"#/$defs/Relation"},"has":{"description":"`has` accepts a relational rule object.\\nthe target node must has a descendant node matching the `has` sub-rule.","$ref":"#/$defs/Relation"},"precedes":{"description":"`precedes` accepts a relational rule object.\\nthe target node must appear before another node matching the `precedes` sub-rule.","$ref":"#/$defs/Relation"},"follows":{"description":"`follows` accepts a relational rule object.\\nthe target node must appear after another node matching the `follows` sub-rule.","$ref":"#/$defs/Relation"},"all":{"description":"A list of sub rules and matches a node if all of sub rules match.\\nThe meta variables of the matched node contain all variables from the sub-rules.","type":"array","items":{"$ref":"#/$defs/SerializableRule"}},"any":{"description":"A list of sub rules and matches a node if any of sub rules match.\\nThe meta variables of the matched node only contain those of the matched sub-rule.","type":"array","items":{"$ref":"#/$defs/SerializableRule"}},"not":{"description":"A single sub-rule and matches a node if the sub rule does not match.","$ref":"#/$defs/SerializableRule"},"matches":{"description":"A utility rule id or parameterized utility call object.\\nWhen multiple utility calls are present, they are combined with logical `all`.","$ref":"#/$defs/SerializableMatches"}},"additionalProperties":false},"PatternStyle":{"description":"A String pattern will match one single AST node according to pattern syntax.\\nOr an object with field `context`, `selector` and optionally `strictness`.","anyOf":[{"type":"string"},{"type":"object","properties":{"context":{"description":"The surrounding code that helps to resolve any ambiguity in the syntax.","type":"string"},"selector":{"description":"The sub-syntax node kind that is the actual matcher of the pattern.","type":["string","null"]},"strictness":{"description":"Strictness of the pattern. More strict pattern matches fewer nodes.","anyOf":[{"$ref":"#/$defs/Strictness"},{"type":"null"}]}},"additionalProperties":false,"required":["context"]}]},"Strictness":{"oneOf":[{"description":"all nodes are matched","type":"string","const":"cst"},{"description":"all nodes except source trivial nodes are matched.","type":"string","const":"smart"},{"description":"only ast nodes are matched","type":"string","const":"ast"},{"description":"ast-nodes excluding comments are matched","type":"string","const":"relaxed"},{"description":"ast-nodes excluding comments, without text","type":"string","const":"signature"},{"description":"similar to smart, but node kinds are ignored, only text is matched.","type":"string","const":"template"}]},"SerializableNthChild":{"description":"`nthChild` accepts either a number, a string or an object.","anyOf":[{"description":"Simple syntax","$ref":"#/$defs/NthChildSimple"},{"description":"Object style syntax","type":"object","properties":{"position":{"description":"nth-child syntax","$ref":"#/$defs/NthChildSimple"},"ofRule":{"description":"select the nth node that matches the rule, like CSS\'s of syntax","anyOf":[{"$ref":"#/$defs/SerializableRule"},{"type":"null"}]},"reverse":{"description":"matches from the end instead like CSS\'s nth-last-child","type":"boolean","default":false}},"required":["position"]}]},"NthChildSimple":{"description":"A string or number describing the indices of matching nodes in a list of siblings.","anyOf":[{"description":"A number indicating the precise element index","type":"integer","format":"uint","minimum":0},{"description":"Functional notation like CSS\'s An + B","type":"string"}]},"SerializableRange":{"description":"Represents a position in source code using 0-based line and column numbers","type":"object","properties":{"start":{"description":"start position in the source code","$ref":"#/$defs/SerializablePosition"},"end":{"description":"end position in the source code","$ref":"#/$defs/SerializablePosition"}},"required":["start","end"]},"SerializablePosition":{"description":"Represents a zero-based character-wise position in a document","type":"object","properties":{"line":{"description":"0-based line number in the source code","type":"integer","format":"uint","minimum":0},"column":{"description":"0-based column number in the source code","type":["integer","null"],"format":"uint","minimum":0}},"required":["line"]},"Relation":{"description":"A relational rule object, which is a Rule object with two additional fields stopBy and field.","type":"object","properties":{"pattern":{"description":"A pattern string or a pattern object.","$ref":"#/$defs/PatternStyle"},"kind":{"description":"The kind name of the node to match. You can look up code\'s kind names in playground.","type":"string"},"regex":{"description":"A Rust regular expression to match the node\'s text. https://docs.rs/regex/latest/regex/#syntax","type":"string"},"nthChild":{"description":"`nth_child` accepts number, string or object.\\nIt specifies the position in nodes\' sibling list.","$ref":"#/$defs/SerializableNthChild"},"range":{"description":"`range` accepts a range object.\\nthe target node must exactly appear in the range.","$ref":"#/$defs/SerializableRange"},"inside":{"description":"`inside` accepts a relational rule object.\\nthe target node must appear inside of another node matching the `inside` sub-rule.","$ref":"#/$defs/Relation"},"has":{"description":"`has` accepts a relational rule object.\\nthe target node must has a descendant node matching the `has` sub-rule.","$ref":"#/$defs/Relation"},"precedes":{"description":"`precedes` accepts a relational rule object.\\nthe target node must appear before another node matching the `precedes` sub-rule.","$ref":"#/$defs/Relation"},"follows":{"description":"`follows` accepts a relational rule object.\\nthe target node must appear after another node matching the `follows` sub-rule.","$ref":"#/$defs/Relation"},"all":{"description":"A list of sub rules and matches a node if all of sub rules match.\\nThe meta variables of the matched node contain all variables from the sub-rules.","type":"array","items":{"$ref":"#/$defs/SerializableRule"}},"any":{"description":"A list of sub rules and matches a node if any of sub rules match.\\nThe meta variables of the matched node only contain those of the matched sub-rule.","type":"array","items":{"$ref":"#/$defs/SerializableRule"}},"not":{"description":"A single sub-rule and matches a node if the sub rule does not match.","$ref":"#/$defs/SerializableRule"},"matches":{"description":"A utility rule id or parameterized utility call object.\\nWhen multiple utility calls are present, they are combined with logical `all`.","$ref":"#/$defs/SerializableMatches"},"stopBy":{"$ref":"#/$defs/SerializableStopBy","default":"neighbor"},"field":{"type":["string","null"]}}},"SerializableMatches":{"anyOf":[{"type":"string"},{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/$defs/SerializableRule"}}}]},"SerializableStopBy":{"description":"Control how the relational rule search should stop","oneOf":[{"type":"string","enum":["neighbor","end"]},{"$ref":"#/$defs/SerializableRule"}]},"Transformation":{"anyOf":[{"type":"string"},{"$ref":"#/$defs/Trans"}]},"Trans":{"description":"Represents a transformation that can be applied to a matched AST node.\\nAvailable transformations are `substring`, `replace` and `convert`.","oneOf":[{"type":"object","properties":{"substring":{"$ref":"#/$defs/Substring"}},"required":["substring"],"additionalProperties":false},{"type":"object","properties":{"replace":{"$ref":"#/$defs/Replace"}},"required":["replace"],"additionalProperties":false},{"type":"object","properties":{"convert":{"$ref":"#/$defs/Convert"}},"required":["convert"],"additionalProperties":false},{"type":"object","properties":{"rewrite":{"$ref":"#/$defs/Rewrite"}},"required":["rewrite"],"additionalProperties":false}]},"Substring":{"description":"Extracts a substring from the meta variable\'s text content.\\n\\nBoth `start_char` and `end_char` support negative indexing,\\nwhich counts character from the end of an array, moving backwards.","type":"object","properties":{"source":{"description":"source meta variable to be transformed","type":"string"},"startChar":{"description":"optional starting character index of the substring, defaults to 0.","type":["integer","null"],"format":"int32"},"endChar":{"description":"optional ending character index of the substring, defaults to the end of the string.","type":["integer","null"],"format":"int32"}},"required":["source"]},"Replace":{"description":"Replaces a substring in the meta variable\'s text content with another string.","type":"object","properties":{"source":{"description":"source meta variable to be transformed","type":"string"},"replace":{"description":"a regex to find substring to be replaced","type":"string"},"by":{"description":"the replacement string","type":"string"}},"required":["source","replace","by"]},"Convert":{"description":"Converts the source meta variable\'s text content to a specified case format.","type":"object","properties":{"source":{"description":"source meta variable to be transformed","type":"string"},"toCase":{"description":"the target case format to convert the text content to","$ref":"#/$defs/StringCase"},"separatedBy":{"description":"optional separators to specify how to separate word","type":["array","null"],"items":{"$ref":"#/$defs/Separator"}}},"required":["source","toCase"]},"StringCase":{"description":"An enumeration representing different cases for strings.","type":"string","enum":["lowerCase","upperCase","capitalize","camelCase","snakeCase","kebabCase","pascalCase"]},"Separator":{"description":"Separator to split string. e.g. `user_accountName` -> `user`, `accountName`\\nIt will be rejoin according to `StringCase`.","type":"string","enum":["caseChange","dash","dot","slash","space","underscore"]},"Rewrite":{"type":"object","properties":{"source":{"type":"string"},"rewriters":{"type":"array","items":{"type":"string"}},"joinBy":{"type":["string","null"]}},"required":["source","rewriters"]},"SerializableFixer":{"description":"A pattern string or fix object to auto fix the issue.\\nIt can reference metavariables appeared in rule.","anyOf":[{"type":"string"},{"$ref":"#/$defs/SerializableFixConfig"},{"type":"array","items":{"$ref":"#/$defs/SerializableFixConfig"}}]},"SerializableFixConfig":{"type":"object","properties":{"template":{"type":"string"},"expandEnd":{"$ref":"#/$defs/Relation"},"expandStart":{"$ref":"#/$defs/Relation"},"title":{"type":["string","null"]}},"required":["template"]},"SerializableRewriter":{"description":"Used for global rules, rewriters, and pyo3/napi","type":"object","properties":{"id":{"description":"Unique, descriptive identifier, e.g., no-unused-variable","type":"string"},"fix":{"description":"A pattern string or a FixConfig object to auto fix the issue.\\nIt can reference metavariables appeared in rule.\\nSee details in fix [object reference](https://ast-grep.github.io/reference/yaml/fix.html#fixconfig).","$ref":"#/$defs/SerializableFixer"},"rule":{"description":"A rule object to find matching AST nodes","$ref":"#/$defs/SerializableRule"},"constraints":{"description":"Additional meta variables pattern to filter matching","type":["object","null"],"additionalProperties":{"$ref":"#/$defs/SerializableRule"}},"utils":{"description":"Utility rules that can be used in `matches`","type":["object","null"],"additionalProperties":{"$ref":"#/$defs/SerializableRule"}},"transform":{"description":"A dictionary for metavariable manipulation. Dict key is the new variable name.\\nDict value is a [transformation] that specifies how meta var is processed.\\nSee [transformation doc](https://ast-grep.github.io/reference/yaml/transformation.html).","type":["object","null"],"additionalProperties":{"$ref":"#/$defs/Transformation"}}},"required":["id","fix","rule"]},"Language":{"description":"Placeholder for language, used in JSON schema only.","type":"string","example":"typescript"},"Severity":{"oneOf":[{"description":"A kind reminder for code with potential improvement.","type":"string","const":"hint"},{"description":"A suggestion that code can be improved or optimized.","type":"string","const":"info"},{"description":"A warning that code might produce bugs or does not follow best practice.","type":"string","const":"warning"},{"description":"An error that code produces bugs or has logic errors.","type":"string","const":"error"},{"description":"Turns off the rule.","type":"string","const":"off"}]},"LabelConfig":{"type":"object","properties":{"style":{"$ref":"#/$defs/LabelStyle"},"message":{"type":["string","null"]}},"required":["style"]},"LabelStyle":{"oneOf":[{"description":"Labels that describe the primary cause of a diagnostic.","type":"string","const":"primary"},{"description":"Labels that provide additional context for a diagnostic.","type":"string","const":"secondary"}]},"RuleFileGlob":{"anyOf":[{"description":"A glob pattern string","type":"string"},{"type":"object","properties":{"glob":{"description":"A glob pattern string","type":"string"},"caseInsensitive":{"description":"Whether the glob matching is case insensitive","type":"boolean","default":false}},"required":["glob"]}]},"Metadata":{"description":"Additional metadata for the rule, can be used to store extra information.","type":"object","additionalProperties":true}}'), rS = "Generated by fetch-ast-grep-schema.ts at 2026-08-26T03:59:55.871Z from ast-grep v0.45.2 (https://raw.githubusercontent.com/ast-grep/ast-grep/0.45.2/schemas/rule.json)", oS = {
|
|
15485
|
+
value is the label message and label style.`, type: ["object", "null"], additionalProperties: { $ref: "#/$defs/LabelConfig" } }, files: { description: "Glob patterns to specify that the rule only applies to matching files", type: ["array", "null"], items: { $ref: "#/$defs/RuleFileGlob" } }, ignores: { description: "Glob patterns that exclude rules from applying to files", type: ["array", "null"], items: { $ref: "#/$defs/RuleFileGlob" } }, url: { description: "Documentation link to this rule", type: ["string", "null"] }, metadata: { description: "Extra information for the rule", anyOf: [{ $ref: "#/$defs/Metadata" }, { type: "null" }] } }, sS = ["rule", "language"], iS = /* @__PURE__ */ JSON.parse('{"SerializableRule":{"description":"A rule object to find matching AST nodes. We have three categories of rules in ast-grep.\\n\\n* Atomic: the most basic rule to match AST. We have two variants: Pattern and Kind.\\n\\n* Relational: filter matched target according to their position relative to other nodes.\\n\\n* Composite: use logic operation all/any/not to compose the above rules to larger rules.\\n\\nEvery rule has it\'s unique name so we can combine several rules in one object.","type":"object","properties":{"pattern":{"description":"A pattern string or a pattern object.","$ref":"#/$defs/PatternStyle"},"kind":{"description":"The kind name of the node to match. You can look up code\'s kind names in playground.","type":"string"},"regex":{"description":"A Rust regular expression to match the node\'s text. https://docs.rs/regex/latest/regex/#syntax","type":"string"},"nthChild":{"description":"`nth_child` accepts number, string or object.\\nIt specifies the position in nodes\' sibling list.","$ref":"#/$defs/SerializableNthChild"},"range":{"description":"`range` accepts a range object.\\nthe target node must exactly appear in the range.","$ref":"#/$defs/SerializableRange"},"inside":{"description":"`inside` accepts a relational rule object.\\nthe target node must appear inside of another node matching the `inside` sub-rule.","$ref":"#/$defs/Relation"},"has":{"description":"`has` accepts a relational rule object.\\nthe target node must has a descendant node matching the `has` sub-rule.","$ref":"#/$defs/Relation"},"precedes":{"description":"`precedes` accepts a relational rule object.\\nthe target node must appear before another node matching the `precedes` sub-rule.","$ref":"#/$defs/Relation"},"follows":{"description":"`follows` accepts a relational rule object.\\nthe target node must appear after another node matching the `follows` sub-rule.","$ref":"#/$defs/Relation"},"all":{"description":"A list of sub rules and matches a node if all of sub rules match.\\nThe meta variables of the matched node contain all variables from the sub-rules.","type":"array","items":{"$ref":"#/$defs/SerializableRule"}},"any":{"description":"A list of sub rules and matches a node if any of sub rules match.\\nThe meta variables of the matched node only contain those of the matched sub-rule.","type":"array","items":{"$ref":"#/$defs/SerializableRule"}},"not":{"description":"A single sub-rule and matches a node if the sub rule does not match.","$ref":"#/$defs/SerializableRule"},"matches":{"description":"A utility rule id or parameterized utility call object.\\nWhen multiple utility calls are present, they are combined with logical `all`.","$ref":"#/$defs/SerializableMatches"}},"additionalProperties":false},"PatternStyle":{"description":"A String pattern will match one single AST node according to pattern syntax.\\nOr an object with field `context`, `selector` and optionally `strictness`.","anyOf":[{"type":"string"},{"type":"object","properties":{"context":{"description":"The surrounding code that helps to resolve any ambiguity in the syntax.","type":"string"},"selector":{"description":"The sub-syntax node kind that is the actual matcher of the pattern.","type":["string","null"]},"strictness":{"description":"Strictness of the pattern. More strict pattern matches fewer nodes.","anyOf":[{"$ref":"#/$defs/Strictness"},{"type":"null"}]}},"additionalProperties":false,"required":["context"]}]},"Strictness":{"oneOf":[{"description":"all nodes are matched","type":"string","const":"cst"},{"description":"all nodes except source trivial nodes are matched.","type":"string","const":"smart"},{"description":"only ast nodes are matched","type":"string","const":"ast"},{"description":"ast-nodes excluding comments are matched","type":"string","const":"relaxed"},{"description":"ast-nodes excluding comments, without text","type":"string","const":"signature"},{"description":"similar to smart, but node kinds are ignored, only text is matched.","type":"string","const":"template"}]},"SerializableNthChild":{"description":"`nthChild` accepts either a number, a string or an object.","anyOf":[{"description":"Simple syntax","$ref":"#/$defs/NthChildSimple"},{"description":"Object style syntax","type":"object","properties":{"position":{"description":"nth-child syntax","$ref":"#/$defs/NthChildSimple"},"ofRule":{"description":"select the nth node that matches the rule, like CSS\'s of syntax","anyOf":[{"$ref":"#/$defs/SerializableRule"},{"type":"null"}]},"reverse":{"description":"matches from the end instead like CSS\'s nth-last-child","type":"boolean","default":false}},"required":["position"]}]},"NthChildSimple":{"description":"A string or number describing the indices of matching nodes in a list of siblings.","anyOf":[{"description":"A number indicating the precise element index","type":"integer","format":"uint","minimum":0},{"description":"Functional notation like CSS\'s An + B","type":"string"}]},"SerializableRange":{"description":"Represents a position in source code using 0-based line and column numbers","type":"object","properties":{"start":{"description":"start position in the source code","$ref":"#/$defs/SerializablePosition"},"end":{"description":"end position in the source code","$ref":"#/$defs/SerializablePosition"}},"required":["start","end"]},"SerializablePosition":{"description":"Represents a zero-based character-wise position in a document","type":"object","properties":{"line":{"description":"0-based line number in the source code","type":"integer","format":"uint","minimum":0},"column":{"description":"0-based column number in the source code","type":["integer","null"],"format":"uint","minimum":0}},"required":["line"]},"Relation":{"description":"A relational rule object, which is a Rule object with two additional fields stopBy and field.","type":"object","properties":{"pattern":{"description":"A pattern string or a pattern object.","$ref":"#/$defs/PatternStyle"},"kind":{"description":"The kind name of the node to match. You can look up code\'s kind names in playground.","type":"string"},"regex":{"description":"A Rust regular expression to match the node\'s text. https://docs.rs/regex/latest/regex/#syntax","type":"string"},"nthChild":{"description":"`nth_child` accepts number, string or object.\\nIt specifies the position in nodes\' sibling list.","$ref":"#/$defs/SerializableNthChild"},"range":{"description":"`range` accepts a range object.\\nthe target node must exactly appear in the range.","$ref":"#/$defs/SerializableRange"},"inside":{"description":"`inside` accepts a relational rule object.\\nthe target node must appear inside of another node matching the `inside` sub-rule.","$ref":"#/$defs/Relation"},"has":{"description":"`has` accepts a relational rule object.\\nthe target node must has a descendant node matching the `has` sub-rule.","$ref":"#/$defs/Relation"},"precedes":{"description":"`precedes` accepts a relational rule object.\\nthe target node must appear before another node matching the `precedes` sub-rule.","$ref":"#/$defs/Relation"},"follows":{"description":"`follows` accepts a relational rule object.\\nthe target node must appear after another node matching the `follows` sub-rule.","$ref":"#/$defs/Relation"},"all":{"description":"A list of sub rules and matches a node if all of sub rules match.\\nThe meta variables of the matched node contain all variables from the sub-rules.","type":"array","items":{"$ref":"#/$defs/SerializableRule"}},"any":{"description":"A list of sub rules and matches a node if any of sub rules match.\\nThe meta variables of the matched node only contain those of the matched sub-rule.","type":"array","items":{"$ref":"#/$defs/SerializableRule"}},"not":{"description":"A single sub-rule and matches a node if the sub rule does not match.","$ref":"#/$defs/SerializableRule"},"matches":{"description":"A utility rule id or parameterized utility call object.\\nWhen multiple utility calls are present, they are combined with logical `all`.","$ref":"#/$defs/SerializableMatches"},"stopBy":{"$ref":"#/$defs/SerializableStopBy","default":"neighbor"},"field":{"type":["string","null"]}}},"SerializableMatches":{"anyOf":[{"type":"string"},{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/$defs/SerializableRule"}}}]},"SerializableStopBy":{"description":"Control how the relational rule search should stop","oneOf":[{"type":"string","enum":["neighbor","end"]},{"$ref":"#/$defs/SerializableRule"}]},"Transformation":{"anyOf":[{"type":"string"},{"$ref":"#/$defs/Trans"}]},"Trans":{"description":"Represents a transformation that can be applied to a matched AST node.\\nAvailable transformations are `substring`, `replace` and `convert`.","oneOf":[{"type":"object","properties":{"substring":{"$ref":"#/$defs/Substring"}},"required":["substring"],"additionalProperties":false},{"type":"object","properties":{"replace":{"$ref":"#/$defs/Replace"}},"required":["replace"],"additionalProperties":false},{"type":"object","properties":{"convert":{"$ref":"#/$defs/Convert"}},"required":["convert"],"additionalProperties":false},{"type":"object","properties":{"rewrite":{"$ref":"#/$defs/Rewrite"}},"required":["rewrite"],"additionalProperties":false}]},"Substring":{"description":"Extracts a substring from the meta variable\'s text content.\\n\\nBoth `start_char` and `end_char` support negative indexing,\\nwhich counts character from the end of an array, moving backwards.","type":"object","properties":{"source":{"description":"source meta variable to be transformed","type":"string"},"startChar":{"description":"optional starting character index of the substring, defaults to 0.","type":["integer","null"],"format":"int32"},"endChar":{"description":"optional ending character index of the substring, defaults to the end of the string.","type":["integer","null"],"format":"int32"}},"required":["source"]},"Replace":{"description":"Replaces a substring in the meta variable\'s text content with another string.","type":"object","properties":{"source":{"description":"source meta variable to be transformed","type":"string"},"replace":{"description":"a regex to find substring to be replaced","type":"string"},"by":{"description":"the replacement string","type":"string"}},"required":["source","replace","by"]},"Convert":{"description":"Converts the source meta variable\'s text content to a specified case format.","type":"object","properties":{"source":{"description":"source meta variable to be transformed","type":"string"},"toCase":{"description":"the target case format to convert the text content to","$ref":"#/$defs/StringCase"},"separatedBy":{"description":"optional separators to specify how to separate word","type":["array","null"],"items":{"$ref":"#/$defs/Separator"}}},"required":["source","toCase"]},"StringCase":{"description":"An enumeration representing different cases for strings.","type":"string","enum":["lowerCase","upperCase","capitalize","camelCase","snakeCase","kebabCase","pascalCase"]},"Separator":{"description":"Separator to split string. e.g. `user_accountName` -> `user`, `accountName`\\nIt will be rejoin according to `StringCase`.","type":"string","enum":["caseChange","dash","dot","slash","space","underscore"]},"Rewrite":{"type":"object","properties":{"source":{"type":"string"},"rewriters":{"type":"array","items":{"type":"string"}},"joinBy":{"type":["string","null"]}},"required":["source","rewriters"]},"SerializableFixer":{"description":"A pattern string or fix object to auto fix the issue.\\nIt can reference metavariables appeared in rule.","anyOf":[{"type":"string"},{"$ref":"#/$defs/SerializableFixConfig"},{"type":"array","items":{"$ref":"#/$defs/SerializableFixConfig"}}]},"SerializableFixConfig":{"type":"object","properties":{"template":{"type":"string"},"expandEnd":{"$ref":"#/$defs/Relation"},"expandStart":{"$ref":"#/$defs/Relation"},"title":{"type":["string","null"]}},"required":["template"]},"SerializableRewriter":{"description":"Used for global rules, rewriters, and pyo3/napi","type":"object","properties":{"id":{"description":"Unique, descriptive identifier, e.g., no-unused-variable","type":"string"},"fix":{"description":"A pattern string or a FixConfig object to auto fix the issue.\\nIt can reference metavariables appeared in rule.\\nSee details in fix [object reference](https://ast-grep.github.io/reference/yaml/fix.html#fixconfig).","$ref":"#/$defs/SerializableFixer"},"rule":{"description":"A rule object to find matching AST nodes","$ref":"#/$defs/SerializableRule"},"constraints":{"description":"Additional meta variables pattern to filter matching","type":["object","null"],"additionalProperties":{"$ref":"#/$defs/SerializableRule"}},"utils":{"description":"Utility rules that can be used in `matches`","type":["object","null"],"additionalProperties":{"$ref":"#/$defs/SerializableRule"}},"transform":{"description":"A dictionary for metavariable manipulation. Dict key is the new variable name.\\nDict value is a [transformation] that specifies how meta var is processed.\\nSee [transformation doc](https://ast-grep.github.io/reference/yaml/transformation.html).","type":["object","null"],"additionalProperties":{"$ref":"#/$defs/Transformation"}}},"required":["id","fix","rule"]},"Language":{"description":"Placeholder for language, used in JSON schema only.","type":"string","example":"typescript"},"Severity":{"oneOf":[{"description":"Turns off the rule.","type":"string","const":"off"},{"description":"A kind reminder for code with potential improvement.","type":"string","const":"hint"},{"description":"A suggestion that code can be improved or optimized.","type":"string","const":"info"},{"description":"A warning that code might produce bugs or does not follow best practice.","type":"string","const":"warning"},{"description":"An error that code produces bugs or has logic errors.","type":"string","const":"error"}]},"LabelConfig":{"type":"object","properties":{"style":{"$ref":"#/$defs/LabelStyle"},"message":{"type":["string","null"]}},"required":["style"]},"LabelStyle":{"oneOf":[{"description":"Labels that describe the primary cause of a diagnostic.","type":"string","const":"primary"},{"description":"Labels that provide additional context for a diagnostic.","type":"string","const":"secondary"}]},"RuleFileGlob":{"anyOf":[{"description":"A glob pattern string","type":"string"},{"type":"object","properties":{"glob":{"description":"A glob pattern string","type":"string"},"caseInsensitive":{"description":"Whether the glob matching is case insensitive","type":"boolean","default":false}},"required":["glob"]}]},"Metadata":{"description":"Additional metadata for the rule, can be used to store extra information.","type":"object","additionalProperties":true}}'), rS = "Generated by fetch-ast-grep-schema.ts at 2026-09-15T23:43:40.361Z from ast-grep v0.45.3 (https://raw.githubusercontent.com/ast-grep/ast-grep/0.45.3/schemas/rule.json)", oS = {
|
|
15486
15486
|
$schema: Xv,
|
|
15487
15487
|
title: Zv,
|
|
15488
15488
|
description: eS,
|
|
@@ -16380,7 +16380,7 @@ const NS = {
|
|
|
16380
16380
|
}
|
|
16381
16381
|
const a = {
|
|
16382
16382
|
success: !0,
|
|
16383
|
-
version: "0.11.2-
|
|
16383
|
+
version: "0.11.2-20260916174053x057ddfb",
|
|
16384
16384
|
tools: n,
|
|
16385
16385
|
loggedIn: s !== void 0,
|
|
16386
16386
|
auth: o,
|
|
@@ -16429,7 +16429,7 @@ const NS = {
|
|
|
16429
16429
|
console.log(JSON.stringify(l.data));
|
|
16430
16430
|
return;
|
|
16431
16431
|
}
|
|
16432
|
-
if (console.log(`Taskless CLI v0.11.2-
|
|
16432
|
+
if (console.log(`Taskless CLI v0.11.2-20260916174053x057ddfb
|
|
16433
16433
|
`), n.length === 0)
|
|
16434
16434
|
console.log("Tools: none detected");
|
|
16435
16435
|
else {
|
|
@@ -17831,7 +17831,7 @@ const tf = {
|
|
|
17831
17831
|
}, xa = Qg(tf), Na = {
|
|
17832
17832
|
meta: {
|
|
17833
17833
|
name: "taskless",
|
|
17834
|
-
version: "0.11.2-
|
|
17834
|
+
version: "0.11.2-20260916174053x057ddfb",
|
|
17835
17835
|
description: "Taskless CLI"
|
|
17836
17836
|
},
|
|
17837
17837
|
args: {
|
package/dist/prompts.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { o as f, a as g, s as o, l as V, t as $ } from "./schemas-OhdGAhu_.js";
|
|
2
2
|
const C = "npx @taskless/cli";
|
|
3
3
|
function W() {
|
|
4
|
-
return "npx @taskless/cli-nightly@0.11.2-
|
|
4
|
+
return "npx @taskless/cli-nightly@0.11.2-20260916174053x057ddfb";
|
|
5
5
|
}
|
|
6
6
|
const z = "%(TASKLESS_CLI)s";
|
|
7
7
|
function Ue(n) {
|
|
8
|
-
return n.replaceAll(z, "npx @taskless/cli-nightly@0.11.2-
|
|
8
|
+
return n.replaceAll(z, "npx @taskless/cli-nightly@0.11.2-20260916174053x057ddfb");
|
|
9
9
|
}
|
|
10
10
|
function A(n) {
|
|
11
|
-
return n.replaceAll(`${C}@latest`, "npx @taskless/cli-nightly@0.11.2-
|
|
11
|
+
return n.replaceAll(`${C}@latest`, "npx @taskless/cli-nightly@0.11.2-20260916174053x057ddfb").replaceAll(C, "npx @taskless/cli-nightly@0.11.2-20260916174053x057ddfb");
|
|
12
12
|
}
|
|
13
13
|
function Fe(n) {
|
|
14
14
|
return n;
|
|
@@ -3354,7 +3354,7 @@ const me = f({
|
|
|
3354
3354
|
f({
|
|
3355
3355
|
error: o().describe("Error message")
|
|
3356
3356
|
});
|
|
3357
|
-
const fe = "0.45.
|
|
3357
|
+
const fe = "0.45.3", P = [
|
|
3358
3358
|
"Bash",
|
|
3359
3359
|
"C",
|
|
3360
3360
|
"Cpp",
|
|
@@ -3580,7 +3580,7 @@ function b(n) {
|
|
|
3580
3580
|
}
|
|
3581
3581
|
function Ge(n, t, s = {}) {
|
|
3582
3582
|
const r = {
|
|
3583
|
-
CLI_VERSION: "0.11.2-
|
|
3583
|
+
CLI_VERSION: "0.11.2-20260916174053x057ddfb",
|
|
3584
3584
|
// Engine reach, from the pinned engine versions rather than transcribed
|
|
3585
3585
|
// into a recipe. A recipe carrying these lists by hand would go stale on
|
|
3586
3586
|
// the next binary bump with nothing to catch it, and stale prose about
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
* Pinned against the binary by `test/ast-grep-vendor-contract.test.ts`
|
|
39
39
|
* ("engine capabilities" → "reports the pinned version").
|
|
40
40
|
*/
|
|
41
|
-
export declare const AST_GREP_VERSION = "0.45.
|
|
41
|
+
export declare const AST_GREP_VERSION = "0.45.3";
|
|
42
42
|
/**
|
|
43
43
|
* Every language ast-grep can parse, verbatim from
|
|
44
44
|
* `sg run -h` → `Supported languages are: [...]` at
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taskless/cli-nightly",
|
|
3
|
-
"version": "0.11.2-
|
|
3
|
+
"version": "0.11.2-20260916174053x057ddfb",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"zod": "^4.3.6"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@ast-grep/cli": "0.45.
|
|
72
|
+
"@ast-grep/cli": "0.45.3",
|
|
73
73
|
"@types/sprintf-js": "^1.1.4",
|
|
74
74
|
"openapi-typescript": "^7.13.0",
|
|
75
75
|
"prettier": "^3.8.1",
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
"taskless": "./dist/index.js"
|
|
83
83
|
},
|
|
84
84
|
"optionalDependencies": {
|
|
85
|
-
"@ast-grep/cli-darwin-arm64": "0.45.
|
|
86
|
-
"@ast-grep/cli-darwin-x64": "0.45.
|
|
87
|
-
"@ast-grep/cli-linux-arm64-gnu": "0.45.
|
|
88
|
-
"@ast-grep/cli-linux-x64-gnu": "0.45.
|
|
89
|
-
"@ast-grep/cli-win32-arm64-msvc": "0.45.
|
|
90
|
-
"@ast-grep/cli-win32-ia32-msvc": "0.45.
|
|
91
|
-
"@ast-grep/cli-win32-x64-msvc": "0.45.
|
|
85
|
+
"@ast-grep/cli-darwin-arm64": "0.45.3",
|
|
86
|
+
"@ast-grep/cli-darwin-x64": "0.45.3",
|
|
87
|
+
"@ast-grep/cli-linux-arm64-gnu": "0.45.3",
|
|
88
|
+
"@ast-grep/cli-linux-x64-gnu": "0.45.3",
|
|
89
|
+
"@ast-grep/cli-win32-arm64-msvc": "0.45.3",
|
|
90
|
+
"@ast-grep/cli-win32-ia32-msvc": "0.45.3",
|
|
91
|
+
"@ast-grep/cli-win32-x64-msvc": "0.45.3",
|
|
92
92
|
"@taskless/vale-darwin-arm64": "3.20.0-20260907164938",
|
|
93
93
|
"@taskless/vale-darwin-x64": "3.20.0-20260907164938",
|
|
94
94
|
"@taskless/vale-linux-arm64": "3.20.0-20260907164938",
|