@haven_ai/cli 0.0.0-dev.202610231710.79f6802 → 0.0.0-dev.202610231728.63dccc8

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/cli.js CHANGED
@@ -88,6 +88,9 @@ function parseArgs(argv) {
88
88
  } else if (arg === "--expires") {
89
89
  const n = Number(value);
90
90
  if (!Number.isInteger(n) || n <= 0) throw new Error("--expires must be a unix timestamp in seconds");
91
+ if (n > Math.floor(Date.now() / 1e3) + 365 * 86400) {
92
+ throw new Error("--expires must be at most 365 days from now");
93
+ }
91
94
  flags.expires = n;
92
95
  } else if (arg === "--format") {
93
96
  if (value !== "csv" && value !== "sie") throw new Error('--format must be "csv" or "sie"');
@@ -3150,7 +3153,7 @@ async function checkTextForSecrets(text, deps) {
3150
3153
 
3151
3154
  // src/commands.ts
3152
3155
  var DEFAULT_API = "https://havenbackend-production-8a00.up.railway.app";
3153
- var CLI_VERSION = "0.0.0-dev.202610231710.79f6802";
3156
+ var CLI_VERSION = "0.0.0-dev.202610231728.63dccc8";
3154
3157
  var CLI_CLIENT_IDENTITY = `@haven_ai/cli/${CLI_VERSION}`;
3155
3158
  function accountAddressOf(s) {
3156
3159
  return s.account_address ?? "";