antpath 0.9.0 → 0.9.1

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,7 +2,7 @@ export type FetchLike = (input: string | URL | Request, init?: RequestInit) => P
2
2
  export interface HttpClientOptions {
3
3
  /**
4
4
  * Dashboard BFF root. Optional — defaults to `ANTPATH_DEFAULT_BASE_URL`
5
- * (`https://antpath.ai`). Self-hosted deployments override with their
5
+ * (`https://www.antpath.ai`). Self-hosted deployments override with their
6
6
  * own URL; no env var consults this value.
7
7
  */
8
8
  readonly baseUrl?: string;
@@ -2,6 +2,12 @@
2
2
  * Canonical hosted antpath URL. Used as the default `baseUrl` for the
3
3
  * SDK `AntpathClient` and the host-side CLI `--dashboard-url` flag.
4
4
  *
5
+ * Pinned to the `www.` host on purpose: the apex `antpath.ai` issues a
6
+ * 307 redirect to `https://www.antpath.ai`, and HTTP clients strip the
7
+ * `Authorization` header on cross-origin redirects (WHATWG Fetch §5.5).
8
+ * Hitting the apex would make every authenticated call from a default
9
+ * client land as a 401 `authentication required`. Always go direct.
10
+ *
5
11
  * A single canonical default is not a "footnote mode" — it is the
6
12
  * canonical product. Self-hosted deployments override via the
7
13
  * explicit `baseUrl` / `--dashboard-url` parameter. The value lives in
@@ -11,6 +17,6 @@
11
17
  * See `references/development-principles.md` (Agent-first surface
12
18
  * design, Concrete rule 3).
13
19
  */
14
- export declare const ANTPATH_DEFAULT_BASE_URL = "https://antpath.ai";
20
+ export declare const ANTPATH_DEFAULT_BASE_URL = "https://www.antpath.ai";
15
21
  export declare function stableStringify(value: unknown): string;
16
22
  export declare function sha256(value: unknown): string;
@@ -3,6 +3,12 @@ import { createHash } from "node:crypto";
3
3
  * Canonical hosted antpath URL. Used as the default `baseUrl` for the
4
4
  * SDK `AntpathClient` and the host-side CLI `--dashboard-url` flag.
5
5
  *
6
+ * Pinned to the `www.` host on purpose: the apex `antpath.ai` issues a
7
+ * 307 redirect to `https://www.antpath.ai`, and HTTP clients strip the
8
+ * `Authorization` header on cross-origin redirects (WHATWG Fetch §5.5).
9
+ * Hitting the apex would make every authenticated call from a default
10
+ * client land as a 401 `authentication required`. Always go direct.
11
+ *
6
12
  * A single canonical default is not a "footnote mode" — it is the
7
13
  * canonical product. Self-hosted deployments override via the
8
14
  * explicit `baseUrl` / `--dashboard-url` parameter. The value lives in
@@ -12,7 +18,7 @@ import { createHash } from "node:crypto";
12
18
  * See `references/development-principles.md` (Agent-first surface
13
19
  * design, Concrete rule 3).
14
20
  */
15
- export const ANTPATH_DEFAULT_BASE_URL = "https://antpath.ai";
21
+ export const ANTPATH_DEFAULT_BASE_URL = "https://www.antpath.ai";
16
22
  export function stableStringify(value) {
17
23
  return JSON.stringify(sortValue(value));
18
24
  }
package/dist/cli.mjs CHANGED
@@ -379,7 +379,7 @@ var PROXY_ENDPOINT_DEFAULTS = {
379
379
 
380
380
  // ../shared/dist/stable.js
381
381
  import { createHash } from "node:crypto";
382
- var ANTPATH_DEFAULT_BASE_URL = "https://antpath.ai";
382
+ var ANTPATH_DEFAULT_BASE_URL = "https://www.antpath.ai";
383
383
 
384
384
  // ../shared/dist/sdk-secrets.js
385
385
  var SECRET_PATTERNS = [
@@ -2931,7 +2931,7 @@ Protocol version: ${manifest.protocolVersion}
2931
2931
  io2.stdout(" antpath --help\n\n");
2932
2932
  io2.stdout("Common flags on every host subcommand:\n");
2933
2933
  io2.stdout(" --api-token <token> REQUIRED \u2014 antpath SDK API token (workspace is derived from it)\n");
2934
- io2.stdout(" --dashboard-url <url> Optional; defaults to https://antpath.ai (set for self-hosted)\n\n");
2934
+ io2.stdout(" --dashboard-url <url> Optional; defaults to https://www.antpath.ai (set for self-hosted)\n\n");
2935
2935
  io2.stdout("antpath run flags:\n");
2936
2936
  io2.stdout(" --anthropic-api-key <key> REQUIRED \u2014 provider key (never stored)\n");
2937
2937
  io2.stdout(" --config <path> JSON Blueprint (mutually exclusive with the flat --model/--prompt flags)\n");
@@ -1 +1 @@
1
- c4520d53e89222d7073d467e376774789532d5b9a932c7ae6821e527cb718e0e cli.mjs
1
+ f176fe0055e6734c13959869bba99513459b1caf7f982a7088e638a69bbdd528 cli.mjs
package/dist/client.d.ts CHANGED
@@ -8,7 +8,7 @@ export interface AntpathClientOptions {
8
8
  readonly apiToken: string;
9
9
  /**
10
10
  * Dashboard BFF root, e.g. `https://antpath.example.com`. Optional —
11
- * defaults to the canonical hosted URL (`https://antpath.ai`).
11
+ * defaults to the canonical hosted URL (`https://www.antpath.ai`).
12
12
  * Self-hosted deployments override; the default lives in source so
13
13
  * the agent reading the SDK call site can see exactly where the call
14
14
  * goes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antpath",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "TypeScript SDK for running autonomous Claude Managed Agents sessions.",
5
5
  "repository": {
6
6
  "type": "git",