@plune-ai/cli 0.26.0 → 0.28.0
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 +33 -6
- package/dist/cli.cjs +590 -187
- package/dist/index.cjs +272 -137
- package/dist/index.d.cts +52 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +267 -136
- package/dist/reporter-core.cjs +3 -0
- package/dist/reporter-core.d.cts +2 -0
- package/dist/reporter-core.d.ts +2 -0
- package/dist/reporter-core.js +3 -0
- package/package.json +4 -2
package/dist/reporter-core.d.cts
CHANGED
|
@@ -445,6 +445,8 @@ interface EnvSettings {
|
|
|
445
445
|
shard?: ShardOf;
|
|
446
446
|
/** `PLUNE_SHARD` was set to something that is not `k/N`. A configuration error: the caller refuses to start. */
|
|
447
447
|
shardError?: string;
|
|
448
|
+
/** `PLUNE_IMPORT_TIMEOUT` in seconds, when set and usable. */
|
|
449
|
+
importTimeout?: number;
|
|
448
450
|
/** Variables that were set and have nowhere to land. The caller says so once. */
|
|
449
451
|
ignored: string[];
|
|
450
452
|
/** Variables that were set to something unusable and fell back to their default. The caller says so once. */
|
package/dist/reporter-core.d.ts
CHANGED
|
@@ -445,6 +445,8 @@ interface EnvSettings {
|
|
|
445
445
|
shard?: ShardOf;
|
|
446
446
|
/** `PLUNE_SHARD` was set to something that is not `k/N`. A configuration error: the caller refuses to start. */
|
|
447
447
|
shardError?: string;
|
|
448
|
+
/** `PLUNE_IMPORT_TIMEOUT` in seconds, when set and usable. */
|
|
449
|
+
importTimeout?: number;
|
|
448
450
|
/** Variables that were set and have nowhere to land. The caller says so once. */
|
|
449
451
|
ignored: string[];
|
|
450
452
|
/** Variables that were set to something unusable and fell back to their default. The caller says so once. */
|
package/dist/reporter-core.js
CHANGED
|
@@ -267,6 +267,7 @@ function shardOf(env) {
|
|
|
267
267
|
}
|
|
268
268
|
var UPLOAD_CONCURRENCY = { min: 1, max: 32, default: 16 };
|
|
269
269
|
var UPLOAD_RETRIES = { min: 0, max: 20, default: 6 };
|
|
270
|
+
var IMPORT_TIMEOUT = { min: 0, max: 86400, default: 600 };
|
|
270
271
|
function value(env, name) {
|
|
271
272
|
const raw = env[name]?.trim();
|
|
272
273
|
return raw === void 0 || raw === "" ? void 0 : raw;
|
|
@@ -304,6 +305,7 @@ function readEnv(env = process.env) {
|
|
|
304
305
|
const warnings = [];
|
|
305
306
|
const uploadConcurrency = bounded(env, "PLUNE_UPLOAD_CONCURRENCY", UPLOAD_CONCURRENCY, warnings);
|
|
306
307
|
const uploadRetries = bounded(env, "PLUNE_UPLOAD_RETRIES", UPLOAD_RETRIES, warnings);
|
|
308
|
+
const importTimeout = bounded(env, "PLUNE_IMPORT_TIMEOUT", IMPORT_TIMEOUT, warnings);
|
|
307
309
|
const title = value(env, "PLUNE_RUN_TITLE");
|
|
308
310
|
const environment = value(env, "PLUNE_ENV");
|
|
309
311
|
const labels = list(env, "PLUNE_LABELS");
|
|
@@ -335,6 +337,7 @@ function readEnv(env = process.env) {
|
|
|
335
337
|
keepOpen: flag(env, "PLUNE_SHARED_RUN") || flag(env, "PLUNE_PROCEED") || shard !== void 0 || shardError !== void 0,
|
|
336
338
|
...shard !== void 0 ? { shard } : {},
|
|
337
339
|
...shardError !== void 0 ? { shardError } : {},
|
|
340
|
+
...importTimeout !== void 0 ? { importTimeout } : {},
|
|
338
341
|
ignored: UNSUPPORTED_VARS.filter((name) => value(env, name) !== void 0),
|
|
339
342
|
warnings
|
|
340
343
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plune-ai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "AI-powered assertion testing for LLM apps — write assertions, run them against any provider, get a pass/fail report (local, CI, or diff).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -64,13 +64,15 @@
|
|
|
64
64
|
"@anthropic-ai/sdk": "^0.102.0",
|
|
65
65
|
"@clack/prompts": "^1.5.1",
|
|
66
66
|
"ajv": "^8.17.1",
|
|
67
|
-
"better-sqlite3": "^12.10.0",
|
|
68
67
|
"commander": "^12.0.0",
|
|
69
68
|
"dotenv": "^16.4.0",
|
|
70
69
|
"openai": "^6.42.0",
|
|
71
70
|
"yaml": "^2.9.0",
|
|
72
71
|
"zod": "^4.5.4"
|
|
73
72
|
},
|
|
73
|
+
"optionalDependencies": {
|
|
74
|
+
"better-sqlite3": "^12.10.0"
|
|
75
|
+
},
|
|
74
76
|
"devDependencies": {
|
|
75
77
|
"@huggingface/transformers": "4.2.0",
|
|
76
78
|
"@types/better-sqlite3": "^7.6.13",
|