@kanonak-protocol/cli 8.10.1 → 8.11.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.
@@ -18,6 +18,10 @@
18
18
  * ending in `.kan.yml` is treated as a path, anything else as a
19
19
  * Kanonak package address.
20
20
  *
21
+ * `--offline` reads the workspace and the global cache only, as
22
+ * `validate --offline` does, so a hash never depends on what a
23
+ * publisher answers when it's run.
24
+ *
21
25
  * Prints the hash on stdout and `--verbose` also prints the
22
26
  * canonical form (the JSON that was hashed) on stderr so a user
23
27
  * debugging a hash divergence can compare forms.
@@ -29,4 +33,5 @@
29
33
  export declare function hashCommand(target: string, options?: {
30
34
  verbose?: boolean;
31
35
  frozen?: boolean;
36
+ offline?: boolean;
32
37
  }): Promise<void>;
@@ -16,5 +16,12 @@ export interface ValidateOptions {
16
16
  * for schema.
17
17
  */
18
18
  offline?: boolean;
19
+ /**
20
+ * Print one JSON document instead of text: every version validated, clean
21
+ * ones too, each with its file, its namespace and its issues as the SDK
22
+ * reports them. So a caller can compare two runs version by version, such as
23
+ * a release against the one before it, without reading the text.
24
+ */
25
+ json?: boolean;
19
26
  }
20
27
  export declare function validateCommand(path: string, options?: ValidateOptions): Promise<void>;