@kanonak-protocol/cli 6.2.0 → 6.4.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.
@@ -16,7 +16,8 @@ export declare function collectKanonakFiles(dir: string, files: string[]): void;
16
16
  * `buildLocalFirstRepository`), wiring HTTP write-through to the CLI's
17
17
  * persistent `FileCache` so fetched packages land in `~/.kanonak/packages/`,
18
18
  * and fetching through the CLI's one credentialed transport, so every command
19
- * resolves a gated import the way `install` does (#127).
19
+ * resolves a gated import the way `install` does (#127), from the registry or
20
+ * mirror the user chose, if any (#130).
20
21
  */
21
22
  export declare function buildRepository(workspaceRoot: string, parser: KanonakParser, options?: {
22
23
  offline?: boolean;
@@ -0,0 +1,16 @@
1
+ import type { AuthenticatedFetchFn, PackageUrlTemplates } from '@kanonak-protocol/sdk';
2
+ /** How the CLI reaches publishers. */
3
+ export interface CliRemote {
4
+ /** The one credentialed transport (see {@link cliFetch}). */
5
+ fetchFn: AuthenticatedFetchFn;
6
+ /** The user's package URL templates, when any are configured (#130). */
7
+ packageUrlTemplates?: PackageUrlTemplates;
8
+ }
9
+ /**
10
+ * How the CLI reaches publishers, one per process: the credentialed transport,
11
+ * and where package sources are fetched from when the user chose a registry or
12
+ * mirror (`packageUrlTemplates` in `~/.kanonak/config.json`, or
13
+ * `KANONAK_PACKAGE_URL_TEMPLATE`). Every command that fetches spreads this
14
+ * into its options, so no command fetches with one and not the other.
15
+ */
16
+ export declare function cliRemote(): CliRemote;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanonak-protocol/cli",
3
- "version": "6.2.0",
3
+ "version": "6.4.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": "^6.2.0",
39
- "@kanonak-protocol/types": "^6.2.0",
38
+ "@kanonak-protocol/sdk": "^6.4.0",
39
+ "@kanonak-protocol/types": "^6.4.0",
40
40
  "commander": "^13.0.0"
41
41
  },
42
42
  "devDependencies": {