pairit 0.3.0 → 0.3.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.js +11 -1
- package/package.json +40 -40
package/dist/index.js
CHANGED
|
@@ -9513,9 +9513,13 @@ function getEnvName() {
|
|
|
9513
9513
|
return fromEnv ? parseEnvName(fromEnv) : "production";
|
|
9514
9514
|
}
|
|
9515
9515
|
function getApiUrl() {
|
|
9516
|
+
if (selected)
|
|
9517
|
+
return ENVIRONMENTS[selected].api;
|
|
9516
9518
|
return process2.env.PAIRIT_API_URL || ENVIRONMENTS[getEnvName()].api;
|
|
9517
9519
|
}
|
|
9518
9520
|
function getLabUrl() {
|
|
9521
|
+
if (selected)
|
|
9522
|
+
return ENVIRONMENTS[selected].lab;
|
|
9519
9523
|
return process2.env.PAIRIT_LAB_URL || ENVIRONMENTS[getEnvName()].lab;
|
|
9520
9524
|
}
|
|
9521
9525
|
function getCredentialKey() {
|
|
@@ -9805,7 +9809,7 @@ async function attachHtmlToCompiledConfig(configPath, compiled) {
|
|
|
9805
9809
|
|
|
9806
9810
|
// src/index.ts
|
|
9807
9811
|
var program2 = new Command;
|
|
9808
|
-
program2.name("pairit").description("CLI for Pairit experiment configs").version("0.3.
|
|
9812
|
+
program2.name("pairit").description("CLI for Pairit experiment configs").version("0.3.1").option("--env <name>", "Target environment: staging or production", (value) => {
|
|
9809
9813
|
try {
|
|
9810
9814
|
return parseEnvName(value);
|
|
9811
9815
|
} catch (error) {
|
|
@@ -10089,6 +10093,12 @@ async function lintConfig(configPath) {
|
|
|
10089
10093
|
if (!page.id) {
|
|
10090
10094
|
errors.push(`pages[${index}] is missing id`);
|
|
10091
10095
|
}
|
|
10096
|
+
page.components?.forEach((component, componentIndex) => {
|
|
10097
|
+
const column = component?.column;
|
|
10098
|
+
if (column !== undefined && column !== "left" && column !== "right") {
|
|
10099
|
+
errors.push(`pages[${index}].components[${componentIndex}].column must be "left" or "right"`);
|
|
10100
|
+
}
|
|
10101
|
+
});
|
|
10092
10102
|
});
|
|
10093
10103
|
}
|
|
10094
10104
|
if (errors.length) {
|
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
2
|
+
"name": "pairit",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "CLI for the Pairit behavioral science experiment platform",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"pairit": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "bun build src/index.ts --outdir dist --target node",
|
|
14
|
+
"lint": "tsc --noEmit",
|
|
15
|
+
"prepublishOnly": "bun run build"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"experiment",
|
|
19
|
+
"behavioral-science",
|
|
20
|
+
"research",
|
|
21
|
+
"cli"
|
|
22
|
+
],
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/pairium/pairit.git",
|
|
26
|
+
"directory": "apps/manager/cli"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://docs.pairium.ai/pairit/",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"optionalDependencies": {
|
|
31
|
+
"keytar": "^7.9.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/bun": "^1.1.13",
|
|
35
|
+
"@types/open": "^6.2.1",
|
|
36
|
+
"better-auth": "^1.4.7",
|
|
37
|
+
"commander": "^12.1.0",
|
|
38
|
+
"open": "^11.0.0",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"yaml": "^2.6.0"
|
|
41
|
+
}
|
|
42
42
|
}
|