@kanonak-protocol/cli 6.1.0 → 6.2.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,8 +1,13 @@
1
1
  import type { AuthenticatedFetchFn } from '@kanonak-protocol/sdk';
2
2
  /**
3
- * The open CLI's consumption transport. Gated reads present the credential the
4
- * user configured (see `credentialProviderFromConfig`): an exec credential
5
- * helper named by `KANONAK_CREDENTIAL_HELPER` or `credentialHelper` in
3
+ * The open CLI's consumption transport, one per process: every command that
4
+ * fetches (install, validate, deps, serve, publish, ...) goes through it, so a
5
+ * gated import resolves wherever `install` can reach it, credentials are
6
+ * cached once, and a helper is asked once per scope (#127).
7
+ *
8
+ * Gated reads present the credential the user configured (see
9
+ * `credentialProviderFromConfig`): an exec credential helper named by
10
+ * `KANONAK_CREDENTIAL_HELPER` or `credentialHelper` in
6
11
  * `~/.kanonak/config.json`, or else a BYO bearer token from `KANONAK_TOKEN` /
7
12
  * `KANONAK_TOKEN_<AUTHORITY>`. Public publishers resolve anonymously.
8
13
  *
@@ -10,4 +15,4 @@ import type { AuthenticatedFetchFn } from '@kanonak-protocol/sdk';
10
15
  * here: a helper does it, behind the same `CredentialProvider` seam. See
11
16
  * ideas/protocol-vs-platform-auth-split.md and #126.
12
17
  */
13
- export declare function createCliFetch(): AuthenticatedFetchFn;
18
+ export declare function cliFetch(): AuthenticatedFetchFn;