@somewhere-cloud/cli 0.38.125 → 0.38.127
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/CHANGELOG.md +11 -0
- package/README.md +2 -2
- package/dist/lib/bundle.js +195 -132
- package/dist/lib/bundle.js.map +2 -2
- package/dist/types/lib/app-test.d.ts +12 -10
- package/dist/types/lib/test-report.d.ts +8 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
|
@@ -31,13 +31,17 @@ export interface DataResult {
|
|
|
31
31
|
}
|
|
32
32
|
type Who = Page | BrowserContext | APIRequestContext;
|
|
33
33
|
/** One check's outcome, including whether a prerequisite kept it from running. */
|
|
34
|
-
export interface Check {
|
|
35
|
-
name: string;
|
|
36
|
-
ok: boolean;
|
|
34
|
+
export interface Check extends ReportCheck {
|
|
37
35
|
ms: number;
|
|
38
|
-
error?: string;
|
|
39
|
-
skipped?: ReportCheck['skipped'];
|
|
40
36
|
}
|
|
37
|
+
export interface CheckOptions {
|
|
38
|
+
expected?: string;
|
|
39
|
+
requires?: {
|
|
40
|
+
name: string;
|
|
41
|
+
passed: boolean;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
type MarkStep = (step: string, evidence?: string) => void;
|
|
41
45
|
/** What a result file was run against. */
|
|
42
46
|
export interface RunIdentity {
|
|
43
47
|
project_id: string;
|
|
@@ -116,11 +120,9 @@ export declare class AppTest {
|
|
|
116
120
|
expectRefused(who: Who, request: DataRequest, options?: {
|
|
117
121
|
allowed?: Who;
|
|
118
122
|
}): Promise<DataResult>;
|
|
119
|
-
/** Run one named check
|
|
120
|
-
*
|
|
121
|
-
|
|
122
|
-
* so setup done inside earlier checks runs again. */
|
|
123
|
-
check(label: string, work: () => unknown | Promise<unknown>): Promise<boolean>;
|
|
123
|
+
/** Run one named check unless its prerequisite did not pass. Use at() inside a
|
|
124
|
+
* check that has several steps. `somewhere test --failed` reruns the whole script. */
|
|
125
|
+
check(label: string, work: (at: MarkStep) => unknown | Promise<unknown>, options?: CheckOptions): Promise<boolean>;
|
|
124
126
|
/** Confirm the release did not change, delete this script's sign-up accounts by exact id, write
|
|
125
127
|
* the result once, print one summary, and set a non-zero exit code if anything failed. */
|
|
126
128
|
finish(): Promise<{
|
|
@@ -4,11 +4,18 @@ export declare const DEPLOY_COMMAND = "npx @somewhere-cloud/cli deploy";
|
|
|
4
4
|
export declare const TEST_COMMAND = "npx @somewhere-cloud/cli test";
|
|
5
5
|
export declare const TEST_INBOX_CLAIM_REASON = "needs a claimed app: run somewhere claim";
|
|
6
6
|
export declare const TEST_INBOX_CLAIM_NEXT = "Next: run somewhere claim, open its link, then run somewhere test again.";
|
|
7
|
+
export interface CheckFailure {
|
|
8
|
+
expected: string;
|
|
9
|
+
happened: string;
|
|
10
|
+
step: string;
|
|
11
|
+
evidence?: string;
|
|
12
|
+
}
|
|
7
13
|
export interface ReportCheck {
|
|
8
14
|
name: string;
|
|
9
15
|
ok: boolean;
|
|
10
|
-
skipped?: 'after-failure' | 'needs-claim';
|
|
16
|
+
skipped?: 'after-failure' | 'needs-claim' | 'prerequisite';
|
|
11
17
|
error?: string;
|
|
18
|
+
failure?: CheckFailure;
|
|
12
19
|
}
|
|
13
20
|
export interface ReportGroup {
|
|
14
21
|
script: string;
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@somewhere-cloud/cli",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.127",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@somewhere-cloud/cli",
|
|
9
|
-
"version": "0.38.
|
|
9
|
+
"version": "0.38.127",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"bin": {
|
|
12
12
|
"cli": "bin/somewhere.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@somewhere-cloud/cli",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.127",
|
|
4
4
|
"description": "CLI for somewhere.cloud — auth, projects, deploy, pull, promote, db, logs, env, MCP bridge.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"somewhere",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
},
|
|
68
68
|
"bundleDependencies": [],
|
|
69
69
|
"bundledDependencies": [],
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "384e655a48f97e932f97024c79f6c3e1dfb80bee"
|
|
71
71
|
}
|