@w6w/cli 0.4.0 → 0.5.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.
package/dist/mod.d.ts CHANGED
@@ -30,7 +30,7 @@ import type { EnvReader } from "./src/client.ts";
30
30
  import type { Output } from "./src/output.ts";
31
31
  import type { HelpCommand } from "./src/help.generated.ts";
32
32
  import type { CliIo } from "./src/runtime.ts";
33
- import type { FetchLike, W6wClient } from "@w6w/sdk";
33
+ import type { FetchLike, W6WClient } from "@w6w/sdk";
34
34
  export { parse } from "./src/args.ts";
35
35
  export type { FlagSpec, GlobalOptions, Invocation, ParseOptions, ParseResult } from "./src/args.ts";
36
36
  export { createClient, ENV_BASE_URL, ENV_TOKEN, envValue, NO_ENV } from "./src/client.ts";
@@ -78,7 +78,7 @@ export interface CommandContext {
78
78
  *
79
79
  * @throws {ConfigError} When the base URL or token is missing or unusable.
80
80
  */
81
- client(): W6wClient;
81
+ client(): W6WClient;
82
82
  }
83
83
  /**
84
84
  * One command's implementation.
package/dist/mod.js CHANGED
@@ -51,7 +51,7 @@ export { COMMAND_PATHS, EXIT_CODES, GLOBAL_FLAGS, HELP_TREE } from "./src/help.g
51
51
  * The explicit `: string` annotation is required, not decorative: JSR publishes
52
52
  * this file as TypeScript source and rejects inferred public types.
53
53
  */
54
- export const VERSION = "0.4.0";
54
+ export const VERSION = "0.5.0";
55
55
  /** `w6w help <command>` is accepted as an alias for `w6w <command> --help`. */
56
56
  const HELP_COMMAND = "help";
57
57
  /**
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * @module
25
25
  */
26
- import { type FetchLike, W6wClient } from "@w6w/sdk";
26
+ import { type FetchLike, W6WClient } from "@w6w/sdk";
27
27
  import type { GlobalOptions } from "./args.ts";
28
28
  /**
29
29
  * Reads one environment variable, or `undefined` where the host has none.
@@ -87,5 +87,5 @@ export interface ClientOptions {
87
87
  * @returns A configured client.
88
88
  * @throws {ConfigError} When the base URL or token is missing or unusable — a usage error.
89
89
  */
90
- export declare function createClient(globals: GlobalOptions, env?: EnvReader, options?: ClientOptions): W6wClient;
90
+ export declare function createClient(globals: GlobalOptions, env?: EnvReader, options?: ClientOptions): W6WClient;
91
91
  //# sourceMappingURL=client.d.ts.map
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * @module
25
25
  */
26
- import { ConfigError, W6wClient } from "@w6w/sdk";
26
+ import { ConfigError, W6WClient } from "@w6w/sdk";
27
27
  /** Environment variable holding the server **origin**. Falls behind `--base-url`. */
28
28
  export const ENV_BASE_URL = "W6W_BASE_URL";
29
29
  /** Environment variable holding the bearer token. Falls behind `--token`. */
@@ -163,7 +163,7 @@ export function createClient(globals, env = NO_ENV, options = {}) {
163
163
  // The join rule (origin in, base path appended, never doubled) belongs to the
164
164
  // SDK and is applied by the constructor. Nothing here re-derives it — read it
165
165
  // back off `client.config.baseUrl` if you need to know where a request went.
166
- return new W6wClient({
166
+ return new W6WClient({
167
167
  baseUrl: requireAbsolute(baseUrl.trim()),
168
168
  token: requireSendableToken(token),
169
169
  project: options.project,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w6w/cli",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "The w6w command-line client. Thin transport over the w6w HTTP API, with help generated from the shared wrapper contract.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "build": "tsc -p tsconfig.build.json && node scripts/fix-shebang.mjs"
33
33
  },
34
34
  "dependencies": {
35
- "@w6w/sdk": "^0.4.0"
35
+ "@w6w/sdk": "^0.5.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "typescript": "^5.7.2"