@botiverse/stamp-cli 0.1.0 → 0.2.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/bin/stamp.mjs +7 -4
- package/package.json +19 -8
package/bin/stamp.mjs
CHANGED
|
@@ -51,13 +51,16 @@ switch (cmd) {
|
|
|
51
51
|
}
|
|
52
52
|
case "run": {
|
|
53
53
|
const app = flag("app", "raft-android");
|
|
54
|
-
const apk = flag("apk"
|
|
54
|
+
const apk = flag("apk"); // http url = test that exact package
|
|
55
|
+
const ref = flag("ref"); // git ref to build from (default main)
|
|
56
|
+
const apkRun = flag("apk-run"); // CI run id whose APK artifact to reuse (same bits)
|
|
55
57
|
const release = flag("release");
|
|
56
58
|
const by = flag("by", process.env.USER || "stamp-cli");
|
|
57
59
|
const caseIds = args.filter((a) => !a.startsWith("--"));
|
|
58
|
-
if (!caseIds.length) die("usage: stamp run <case-id...> [--app slug] [--apk
|
|
60
|
+
if (!caseIds.length) die("usage: stamp run <case-id...> [--app slug] [--ref branch] [--apk url] [--apk-run ci-run-id] [--release id]");
|
|
59
61
|
const out = await api("POST", "/runs", {
|
|
60
|
-
app_slug: app, case_ids: caseIds, apk_ref: apk,
|
|
62
|
+
app_slug: app, case_ids: caseIds, apk_ref: apk, ref, apk_run_id: apkRun,
|
|
63
|
+
hands_release_id: release, requested_by: by,
|
|
61
64
|
});
|
|
62
65
|
console.log(`run ${out.run_id} — ${out.cases} case(s), ${out.dispatched} dispatched`);
|
|
63
66
|
console.log(`${URL_BASE}/runs/${out.run_id}`);
|
|
@@ -88,7 +91,7 @@ switch (cmd) {
|
|
|
88
91
|
default:
|
|
89
92
|
console.log("stamp — the acceptance stamp in the Raft release loop\n");
|
|
90
93
|
console.log(" stamp cases list the case library");
|
|
91
|
-
console.log(" stamp run <case-id...> [--app --apk --release --by]");
|
|
94
|
+
console.log(" stamp run <case-id...> [--app --ref --apk --apk-run --release --by]");
|
|
92
95
|
console.log(" stamp runs list recent runs");
|
|
93
96
|
console.log(" stamp show <run-id> run detail");
|
|
94
97
|
console.log("\nauth: STAMP_TOKEN env; instance: STAMP_URL (default raft-app-stamp.botiverse.dev)");
|
package/package.json
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botiverse/stamp-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "CLI for Stamp
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "CLI for Stamp \u2014 the acceptance stamp in the Raft release loop",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"bin": {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
"bin": {
|
|
8
|
+
"stamp": "bin/stamp.mjs"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=18"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/botiverse/stamp.git"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
}
|
|
23
|
+
}
|