Scan your whole stack
From OX Research Newsroom
Are you using @orz/query?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.2-master.20261127083915.gf6fce9e
@orz/query was last scanned on 27 Nov 2026 at version 0.1.2-master.20261127083915.gf6fce9e. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.2-master.20261127083915.gf6fce9e LATEST | 27 Nov 2026 | No rules fired |
| 0.1.2-master.20261127075817.gdd5b46d | 27 Nov 2026 | No rules fired |
| 0.1.2-master.20261126185430.ga3bf9ac | 26 Nov 2026 | No rules fired |
| 0.1.2-master.20261126061418.gf2622ab | 26 Nov 2026 | Not shown |
| 0.1.2-master.20261125204259.gaf8791f | 25 Nov 2026 | Not shown |
Findings for v0.1.2-master.20261127083915.gf6fce9e. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.2-master.20261127083915.gf6fce9e; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The grammar half of a search box and a slash-command composer, driven by a schema the app supplies: value specs, a query parser with diagnostics, a command registry and line parser, shell-style words, brace expansion and completion locators.
It has no runtime dependencies and does not use React or the DOM, so an app's server, CLI and web
client can import the same module and read a query or a command line the same way. The React and
CodeMirror halves live in @orz/ui (QueryBox, HighlightedInput) and @orz/ui-codemirror.
pnpm add @orz/query
A qualifier value and a command argument are both a ValueSpec: an enum the schema knows, a
named value the app resolves through a provider (labels, members), or a free value. Providers
are passed at the point of use, so the schema itself stays static and shareable with a server:
import { valueVerdict } from "@orz/query";
const providers = {
label: { options: [{ value: "kind:bug" }, { value: "area:web" }] },
member: { search: (prefix, signal) => fetchMembers(prefix, signal) },
};
valueVerdict({ kind: "named", source: "label" }, "kind:bug", providers.label); // "valid"
import { defineQuerySchema, parseQuery, queryFilters } from "@orz/query";
const schema = defineQuerySchema({
qualifiers: {
state: { value: { kind: "enum", values: ["open", "closed"] }, hint: "open or closed" },
label: { value: { kind: "named", source: "label" } },
assignee: { value: { kind: "named", source: "member", special: ["@me"] } },
},
braces: true,
});
const parts = parseQuery(schema, 'label:area:{web,ui} -state:closed "deploy failed"');
queryFilters(parts);
// [{ key: "label", negated: false, values: ["area:web", "area:ui"] },
// { key: "state", negated: true, values: ["closed"] }]
Unknown keys are plain text, so https://app.example and 12:30 stay searchable. The parts tile
the input, which is what lets a highlighter paint under an <input>. escapes: "shell" switches
quoting to shell rules (label:'a,b', don\'t); the default keeps backslashes ordinary.
import { createCommandRegistry, parseCommandLines } from "@orz/query";
const registry = createCommandRegistry([
{
name: "close",
detail: "→ Closed",
args: [],
summarize: () => "close",
compile: () => ({ type: "close" }),
},
{
name: "label",
detail: "add labels",
args: [{ name: "label", value: { kind: "named", source: "label" }, rest: true, multiple: true }],
summarize: ([labels]) => `label ${[labels].flat().join(", ")}`,
compile: ([labels]) => ({ type: "label", names: [labels].flat() }),
},
]);
parseCommandLines("Looks done.\n/label {kind:bug,area:web}\n/close", registry, providers);
// body: "Looks done.", commands: [{ type: "label", … }, { type: "close" }]
A command is a whole line starting with /name; anything else, including /close the door, is
prose. Arguments are shell words, a rest argument takes the remainder of the line unquoted, and
brace expansion applies only to arguments declared multiple, which compile receives as a list.
A value with an invalid verdict, an unclosed quote or an expansion past 64 values breaks the line
before compile runs; the reason lands in invalid.
queryCompletionSlot and commandCompletionSlot say what is being typed at the caret: a key, a
value, a command or an argument, with its extent and value spec. Inside a brace group the slot is
only the current alternative. slotValues lists what fits (or answers "fetch" for a search
provider), keyRows and valueRows turn a query slot into rows that carry the rewritten query,
and orderRows keeps the submit row first unless something is genuinely being completed.
shellWords(text) splits shell-style words, recording which characters were quoted;
quoteShellWord(value) quotes a value so it reads back as one word.expandBraces(word) expands bash's comma form ({a,b}, nested, at most 64 words);
quoted and escaped braces stay literal.didYouMean(value, candidates) suggests the closest candidate within a small edit distance.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.