@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/README.md +2 -1
- package/dist/cli.cjs +4 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +4 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -159,7 +159,8 @@ interface ParsedArgs {
|
|
|
159
159
|
/**
|
|
160
160
|
* #2539: optional expiry (unix seconds) for `budget grant`. Absent lets
|
|
161
161
|
* the backend default (now + 90 days), the same default the dashboard's
|
|
162
|
-
* builds get.
|
|
162
|
+
* builds get. #4351: capped at 365 days out, the same bound the build
|
|
163
|
+
* route enforces — the parse refuses past-cap values with that text.
|
|
163
164
|
*/
|
|
164
165
|
expires?: number;
|
|
165
166
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -159,7 +159,8 @@ interface ParsedArgs {
|
|
|
159
159
|
/**
|
|
160
160
|
* #2539: optional expiry (unix seconds) for `budget grant`. Absent lets
|
|
161
161
|
* the backend default (now + 90 days), the same default the dashboard's
|
|
162
|
-
* builds get.
|
|
162
|
+
* builds get. #4351: capped at 365 days out, the same bound the build
|
|
163
|
+
* route enforces — the parse refuses past-cap values with that text.
|
|
163
164
|
*/
|
|
164
165
|
expires?: number;
|
|
165
166
|
/**
|
package/dist/index.js
CHANGED
|
@@ -86,6 +86,9 @@ function parseArgs(argv) {
|
|
|
86
86
|
} else if (arg === "--expires") {
|
|
87
87
|
const n = Number(value);
|
|
88
88
|
if (!Number.isInteger(n) || n <= 0) throw new Error("--expires must be a unix timestamp in seconds");
|
|
89
|
+
if (n > Math.floor(Date.now() / 1e3) + 365 * 86400) {
|
|
90
|
+
throw new Error("--expires must be at most 365 days from now");
|
|
91
|
+
}
|
|
89
92
|
flags.expires = n;
|
|
90
93
|
} else if (arg === "--format") {
|
|
91
94
|
if (value !== "csv" && value !== "sie") throw new Error('--format must be "csv" or "sie"');
|
|
@@ -3148,7 +3151,7 @@ async function checkTextForSecrets(text, deps) {
|
|
|
3148
3151
|
|
|
3149
3152
|
// src/commands.ts
|
|
3150
3153
|
var DEFAULT_API = "https://havenbackend-production-8a00.up.railway.app";
|
|
3151
|
-
var CLI_VERSION = "0.0.0-dev.
|
|
3154
|
+
var CLI_VERSION = "0.0.0-dev.202610231728.63dccc8";
|
|
3152
3155
|
var CLI_CLIENT_IDENTITY = `@haven_ai/cli/${CLI_VERSION}`;
|
|
3153
3156
|
function accountAddressOf(s) {
|
|
3154
3157
|
return s.account_address ?? "";
|