@kanonak-protocol/cli 8.16.0 → 8.17.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.
@@ -1,4 +1,4 @@
1
- import type { AuthenticatedFetchFn, PackageUrlTemplates, TemplateTrustedRead } from '@kanonak-protocol/sdk';
1
+ import type { AuthenticatedFetchFn, PackageUrlTemplates, TemplateTrustedRead, TemplateVersionsRead, VersionsUrlTemplates } 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}). */
@@ -9,6 +9,10 @@ export interface CliRemote {
9
9
  templateTrustedPublishers?: readonly string[];
10
10
  /** Says, once per publisher, that a version was read on that trust (see {@link templateTrustNotice}). */
11
11
  onTemplateTrustedRead?: (read: TemplateTrustedRead) => void;
12
+ /** The user's versions URL templates, when any are configured (#274). */
13
+ versionsUrlTemplates?: VersionsUrlTemplates;
14
+ /** Says, once per publisher, that its versions were read from a versions URL template (see {@link templateVersionsNotice}). */
15
+ onTemplateVersionsRead?: (read: TemplateVersionsRead) => void;
12
16
  }
13
17
  /**
14
18
  * How the CLI reaches publishers, one per process: the credentialed transport,
@@ -23,3 +27,8 @@ export declare function cliRemote(): CliRemote;
23
27
  * checked against nothing, so every log shows each run that relied on the setting rather than staying silent.
24
28
  */
25
29
  export declare function templateTrustNotice(write: (line: string) => void): (read: TemplateTrustedRead) => void;
30
+ /**
31
+ * Says, the first time a run reads a publisher's versions from a versions URL template, that the template's host, not
32
+ * the publisher, said which versions exist, so every log shows each run that relied on `versionsUrlTemplates`.
33
+ */
34
+ export declare function templateVersionsNotice(write: (line: string) => void): (read: TemplateVersionsRead) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanonak-protocol/cli",
3
- "version": "8.16.0",
3
+ "version": "8.17.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.16.0",
39
- "@kanonak-protocol/types": "^8.16.0",
38
+ "@kanonak-protocol/sdk": "^8.17.0",
39
+ "@kanonak-protocol/types": "^8.17.0",
40
40
  "commander": "^13.0.0"
41
41
  },
42
42
  "devDependencies": {