@knowttl/artium-axi 0.0.51 → 0.0.52
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/bin/artium-axi.mjs +21 -7
- package/package.json +1 -1
package/bin/artium-axi.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var init_package = __esm({
|
|
|
43
43
|
"package.json"() {
|
|
44
44
|
package_default = {
|
|
45
45
|
name: "artium-axi",
|
|
46
|
-
version: "0.0.
|
|
46
|
+
version: "0.0.52",
|
|
47
47
|
private: true,
|
|
48
48
|
license: "MIT",
|
|
49
49
|
type: "module",
|
|
@@ -36759,16 +36759,16 @@ var init_proxmox_axi = __esm({
|
|
|
36759
36759
|
generatedBy: "scripts/network-read-inventory.ts",
|
|
36760
36760
|
tool: "proxmox-axi",
|
|
36761
36761
|
package: "@knowttl/proxmox-axi",
|
|
36762
|
-
version: "0.1.
|
|
36763
|
-
integrity: "sha512-
|
|
36762
|
+
version: "0.1.4",
|
|
36763
|
+
integrity: "sha512-6WGsZ6QElQ38ugbCetjKjB9NPQd8fGVogBfJl7eiuezyfGdXNEKHsuJLDIA+qYnoyLcdPtHa6dMH2fZ9l573kw==",
|
|
36764
36764
|
sources: [
|
|
36765
36765
|
{
|
|
36766
36766
|
path: "package.json",
|
|
36767
|
-
sha256: "
|
|
36767
|
+
sha256: "fc83b9fea493aee0e1840b0299b4e655a6e807634c3126215f1eb84c51cd6d6a"
|
|
36768
36768
|
},
|
|
36769
36769
|
{
|
|
36770
36770
|
path: "README.md",
|
|
36771
|
-
sha256: "
|
|
36771
|
+
sha256: "568c73106073e36d5abffde8ed81ca54c15471d7e84a7d8e2249e71ef9298846"
|
|
36772
36772
|
},
|
|
36773
36773
|
{
|
|
36774
36774
|
path: "artium-invocations.json",
|
|
@@ -36812,7 +36812,7 @@ var init_proxmox_axi = __esm({
|
|
|
36812
36812
|
},
|
|
36813
36813
|
{
|
|
36814
36814
|
path: "dist/journal.js",
|
|
36815
|
-
sha256: "
|
|
36815
|
+
sha256: "c0ed16c78b6fa6721c78e5ef2bb40a4670be3e76d706ba60ee9998d3ae10d49b"
|
|
36816
36816
|
},
|
|
36817
36817
|
{
|
|
36818
36818
|
path: "dist/node-network.js",
|
|
@@ -36832,7 +36832,7 @@ var init_proxmox_axi = __esm({
|
|
|
36832
36832
|
},
|
|
36833
36833
|
{
|
|
36834
36834
|
path: "dist/private-file.js",
|
|
36835
|
-
sha256: "
|
|
36835
|
+
sha256: "deb0023ab3bbbee75a7e95ecbcf1931c57f7c2d85f2376b375d34a4a87f16150"
|
|
36836
36836
|
},
|
|
36837
36837
|
{
|
|
36838
36838
|
path: "dist/private-results.js",
|
|
@@ -102780,6 +102780,11 @@ function inputFileFlags(tool, args2) {
|
|
|
102780
102780
|
if (!route) return [];
|
|
102781
102781
|
return flags.filter((name) => Object.hasOwn(route.flags, name));
|
|
102782
102782
|
}
|
|
102783
|
+
function falconGraphqlQueryIndex(args2) {
|
|
102784
|
+
if (args2[0] !== "identity" || args2[1] !== "graphql" || args2.includes("--help")) return void 0;
|
|
102785
|
+
const index = args2.indexOf("--query", 2) + 1;
|
|
102786
|
+
return /^@./.test(args2[index] ?? "") ? index : void 0;
|
|
102787
|
+
}
|
|
102783
102788
|
function ghReleaseUploadFileIndexes(args2) {
|
|
102784
102789
|
if (args2[0] !== "release" || args2[1] !== "upload" || args2.some((arg) => ["--help", "-h"].includes(arg))) return [];
|
|
102785
102790
|
const positionals = [];
|
|
@@ -102795,6 +102800,8 @@ function validateFileInput(tool, args2, input2) {
|
|
|
102795
102800
|
const flags = inputFileFlags(tool, args2);
|
|
102796
102801
|
const names = /* @__PURE__ */ new Set();
|
|
102797
102802
|
if (tool === "gh-axi") for (const index of ghReleaseUploadFileIndexes(args2)) names.add(args2[index]);
|
|
102803
|
+
const graphqlQuery = tool === "falcon-axi" ? falconGraphqlQueryIndex(args2) : void 0;
|
|
102804
|
+
if (graphqlQuery !== void 0) names.add(args2[graphqlQuery].slice(1));
|
|
102798
102805
|
if (!args2.some((arg) => ["--help", "-h", "--version", "-v", "-V"].includes(arg))) {
|
|
102799
102806
|
for (let index = 0; index < args2.length; index++) {
|
|
102800
102807
|
const token = args2[index];
|
|
@@ -102984,6 +102991,13 @@ async function toolInput(tool, original) {
|
|
|
102984
102991
|
input2.files ??= [];
|
|
102985
102992
|
input2.files.push({ name, size: content.length, contentBase64: content.toString("base64") });
|
|
102986
102993
|
}
|
|
102994
|
+
const falconQuery = tool === "falcon-axi" ? falconGraphqlQueryIndex(args2) : void 0;
|
|
102995
|
+
if (falconQuery !== void 0) {
|
|
102996
|
+
const path = args2[falconQuery].slice(1);
|
|
102997
|
+
const name = basename(path);
|
|
102998
|
+
await stageFile(path, name, inputLimits.fileBytes);
|
|
102999
|
+
args2[falconQuery] = `@${name}`;
|
|
103000
|
+
}
|
|
102987
103001
|
if (tool === "gh-axi") for (const index of ghReleaseUploadFileIndexes(args2)) {
|
|
102988
103002
|
const name = basename(args2[index]);
|
|
102989
103003
|
await stageFile(args2[index], name, inputLimits.fileBytes);
|