@kanonak-protocol/cli 8.5.0 → 8.6.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.
|
@@ -2,12 +2,12 @@ import { KanonakParser, LocalFirstRepository } from '@kanonak-protocol/sdk';
|
|
|
2
2
|
import type { IKanonakDocumentRepository } from '@kanonak-protocol/sdk';
|
|
3
3
|
export { LocalFirstRepository };
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
5
|
+
* The workspace a folder belongs to: the nearest folder at or above it that is
|
|
6
|
+
* a git repository's root, the unit whose packages are versioned, ignored and
|
|
7
|
+
* validated together. Outside any repository, the folder itself, so nothing
|
|
8
|
+
* above it is read. A folder's name says nothing: guessing a publisher domain
|
|
9
|
+
* from a dot climbed into the system's temp folder (typescript#80) and stopped
|
|
10
|
+
* short of a sibling package (typescript#27).
|
|
11
11
|
*/
|
|
12
12
|
export declare function findWorkspaceRoot(dir: string): string;
|
|
13
13
|
/**
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import type { AuthenticatedFetchFn, PackageUrlTemplates } from '@kanonak-protocol/sdk';
|
|
1
|
+
import type { AuthenticatedFetchFn, PackageUrlTemplates, TemplateTrustedRead } from '@kanonak-protocol/sdk';
|
|
2
2
|
/** How the CLI reaches publishers. */
|
|
3
3
|
export interface CliRemote {
|
|
4
4
|
/** The one credentialed transport (see {@link cliFetch}). */
|
|
5
5
|
fetchFn: AuthenticatedFetchFn;
|
|
6
6
|
/** The user's package URL templates, when any are configured (#130). */
|
|
7
7
|
packageUrlTemplates?: PackageUrlTemplates;
|
|
8
|
+
/** The publishers whose template the user trusts for bytes, when any are named (#222). */
|
|
9
|
+
templateTrustedPublishers?: readonly string[];
|
|
10
|
+
/** Says, once per publisher, that a version was read on that trust (see {@link templateTrustNotice}). */
|
|
11
|
+
onTemplateTrustedRead?: (read: TemplateTrustedRead) => void;
|
|
8
12
|
}
|
|
9
13
|
/**
|
|
10
14
|
* How the CLI reaches publishers, one per process: the credentialed transport,
|
|
@@ -14,3 +18,8 @@ export interface CliRemote {
|
|
|
14
18
|
* into its options, so no command fetches with one and not the other.
|
|
15
19
|
*/
|
|
16
20
|
export declare function cliRemote(): CliRemote;
|
|
21
|
+
/**
|
|
22
|
+
* Says, the first time a run reads a publisher's version on `templateTrustedPublishers`' trust, that its bytes were
|
|
23
|
+
* checked against nothing, so every log shows each run that relied on the setting rather than staying silent.
|
|
24
|
+
*/
|
|
25
|
+
export declare function templateTrustNotice(write: (line: string) => void): (read: TemplateTrustedRead) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanonak-protocol/cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0",
|
|
4
4
|
"description": "Command-line tool for the Kanonak Protocol — validate, resolve, preview, and publish semantic ontology packages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"semantic-web"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@kanonak-protocol/sdk": "^8.
|
|
39
|
-
"@kanonak-protocol/types": "^8.
|
|
38
|
+
"@kanonak-protocol/sdk": "^8.6.0",
|
|
39
|
+
"@kanonak-protocol/types": "^8.6.0",
|
|
40
40
|
"commander": "^13.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|