@attest-it/cli 0.6.0 → 0.6.1

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/dist/index.cjs CHANGED
@@ -1714,7 +1714,7 @@ function KeygenInteractive(props) {
1714
1714
  } else if (value === "1password") {
1715
1715
  setSelectedProvider("1password");
1716
1716
  if (accounts.length === 1 && accounts[0]) {
1717
- setSelectedAccount(accounts[0].email);
1717
+ setSelectedAccount(accounts[0].user_uuid);
1718
1718
  setStep("select-vault");
1719
1719
  } else {
1720
1720
  setStep("select-account");
@@ -1761,8 +1761,12 @@ function KeygenInteractive(props) {
1761
1761
  if (!selectedVault || !itemName) {
1762
1762
  throw new Error("Vault and item name are required for 1Password");
1763
1763
  }
1764
+ const vault = vaults.find((v) => v.id === selectedVault);
1765
+ if (!vault) {
1766
+ throw new Error("Selected vault not found");
1767
+ }
1764
1768
  const providerOptions = {
1765
- vault: selectedVault,
1769
+ vault: vault.name,
1766
1770
  itemName
1767
1771
  };
1768
1772
  if (selectedAccount !== void 0) {
@@ -1779,7 +1783,7 @@ function KeygenInteractive(props) {
1779
1783
  publicKeyPath: result.publicKeyPath,
1780
1784
  privateKeyRef: result.privateKeyRef,
1781
1785
  storageDescription: result.storageDescription,
1782
- vault: selectedVault,
1786
+ vault: vault.name,
1783
1787
  itemName
1784
1788
  };
1785
1789
  if (selectedAccount !== void 0) {
@@ -1845,7 +1849,7 @@ function KeygenInteractive(props) {
1845
1849
  if (step === "select-account") {
1846
1850
  const options = accounts.map((account) => ({
1847
1851
  label: account.email,
1848
- value: account.email
1852
+ value: account.user_uuid
1849
1853
  }));
1850
1854
  return /* @__PURE__ */ jsxRuntime.jsxs(ink.Box, { flexDirection: "column", children: [
1851
1855
  /* @__PURE__ */ jsxRuntime.jsx(ink.Text, { bold: true, children: "Select 1Password account:" }),
@@ -1862,7 +1866,7 @@ function KeygenInteractive(props) {
1862
1866
  }
1863
1867
  const options = vaults.map((vault) => ({
1864
1868
  label: vault.name,
1865
- value: vault.name
1869
+ value: vault.id
1866
1870
  }));
1867
1871
  return /* @__PURE__ */ jsxRuntime.jsxs(ink.Box, { flexDirection: "column", children: [
1868
1872
  /* @__PURE__ */ jsxRuntime.jsx(ink.Text, { bold: true, children: "Select vault for private key storage:" }),