@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.
Files changed (2) hide show
  1. package/bin/artium-axi.mjs +21 -7
  2. package/package.json +1 -1
@@ -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.51",
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.3",
36763
- integrity: "sha512-5JtlI0Drtc7/x+2Ss/fjGs3WHUdAD1xgOgqK9ziEA8Vh5n45QhlBZT0ivHyJQ5hsl1qcxHWF24PT1WR1PtlBrA==",
36762
+ version: "0.1.4",
36763
+ integrity: "sha512-6WGsZ6QElQ38ugbCetjKjB9NPQd8fGVogBfJl7eiuezyfGdXNEKHsuJLDIA+qYnoyLcdPtHa6dMH2fZ9l573kw==",
36764
36764
  sources: [
36765
36765
  {
36766
36766
  path: "package.json",
36767
- sha256: "0f9aa7218f9bb26f23d0ab9467641a4f593afaf51a6d46f65a7c272cd15c22d1"
36767
+ sha256: "fc83b9fea493aee0e1840b0299b4e655a6e807634c3126215f1eb84c51cd6d6a"
36768
36768
  },
36769
36769
  {
36770
36770
  path: "README.md",
36771
- sha256: "065a66abd150f22b96eea42b77915c096579bfc54aadf21190dbbd6f08e1f12d"
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: "6fc4df85c2ba04cf02599089c8158ea619bfe57bbbf569151bb59f56debe85da"
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: "1327dd1af417bcb9a2cb82de28bb93117c9967e3e7976923f6d69927e75dbc8c"
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowttl/artium-axi",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "description": "Client CLI and embedded skill for the Artium managed tools server.",
5
5
  "license": "MIT",
6
6
  "type": "module",