zinkee 0.1.27 → 0.1.28
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/.claude/settings.local.json +3 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/records.test.ts +104 -0
- package/src/commands/records.ts +10 -4
|
@@ -50,7 +50,9 @@
|
|
|
50
50
|
"Bash(grep -rn \"navigation resources move.*--type\\\\|resourceType\" docs/ README.md)",
|
|
51
51
|
"Bash(zinkee --version)",
|
|
52
52
|
"Bash(zinkee --json profiles list)",
|
|
53
|
-
"Bash(zinkee displays *)"
|
|
53
|
+
"Bash(zinkee displays *)",
|
|
54
|
+
"Bash(chmod +x /tmp/audit_search.sh)",
|
|
55
|
+
"Bash(/tmp/audit_search.sh)"
|
|
54
56
|
]
|
|
55
57
|
}
|
|
56
58
|
}
|
package/dist/index.js
CHANGED
|
@@ -10857,11 +10857,17 @@ function parseJsonKeyValueAssignment(input) {
|
|
|
10857
10857
|
throw new InvalidArgumentError8(message);
|
|
10858
10858
|
}
|
|
10859
10859
|
}
|
|
10860
|
+
function dedupeStrings(values) {
|
|
10861
|
+
return [...new Set(values)];
|
|
10862
|
+
}
|
|
10860
10863
|
function collectStringValues(value, previous = []) {
|
|
10861
10864
|
return [...previous, value];
|
|
10862
10865
|
}
|
|
10866
|
+
function collectSelectValues(value, previous = []) {
|
|
10867
|
+
return dedupeStrings([...previous, ...parseCommaSeparatedValues(value, "--select")]);
|
|
10868
|
+
}
|
|
10863
10869
|
function collectSortValues(value, previous = []) {
|
|
10864
|
-
return [...previous, ...parseCommaSeparatedValues(value, "--sort")];
|
|
10870
|
+
return dedupeStrings([...previous, ...parseCommaSeparatedValues(value, "--sort")]);
|
|
10865
10871
|
}
|
|
10866
10872
|
function collectWhereExpressions(value, previous = []) {
|
|
10867
10873
|
return [...previous, parseExpressionValue(value)];
|
|
@@ -11092,7 +11098,7 @@ function registerRecordsCommands(program, options = {}) {
|
|
|
11092
11098
|
}
|
|
11093
11099
|
emitTable4(stdout, recordsData);
|
|
11094
11100
|
});
|
|
11095
|
-
records.command("query").description("Query records for a schema").argument("<schema>", "schema uuid or slug", parseUuidOrSlugSelector8).option("--select <fields>", "comma-separated
|
|
11101
|
+
records.command("query").description("Query records for a schema").argument("<schema>", "schema uuid or slug", parseUuidOrSlugSelector8).option("--select <fields>", "field selection (comma-separated, repeatable)", collectSelectValues, []).option("--where <expression>", "where expression", collectWhereExpressions, []).option(
|
|
11096
11102
|
"--search <term>",
|
|
11097
11103
|
"free-text search term (matched across the schema's searchable fields)"
|
|
11098
11104
|
).option("--sort <field:direction>", "sort field(s)", collectSortValues, []).option("--limit <number>", "limit results", parseNonNegativeInteger2).option("--offset <number>", "offset results", parseNonNegativeInteger2).option("--raw <json>", "raw JSON object payload").option("--raw-file <path>", "path to a raw JSON object payload").action(async function action(schema, commandOptions) {
|