agentful 0.4.11 → 0.4.13

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/README.md CHANGED
@@ -28,7 +28,7 @@ agentful open # open the preview
28
28
  | `push [--prebuilt [--dir <path>]]` | Upload the source and build in the cloud; `--prebuilt` uploads a local build |
29
29
  | `open` | Open the live preview |
30
30
  | `share [--private]` | Make the preview public, or private again |
31
- | `publish <subdomain>` | Publish at `https://<subdomain>.agentful.dev` |
31
+ | `publish <subdomain>` | Publish at `https://<subdomain>.agentful.page` |
32
32
  | `pull [--force]` | Fetch the cloud state into this directory |
33
33
  | `models [--add-local]` | Show available models, manage your own providers |
34
34
  | `upgrade` | Update the CLI to the latest published version |
package/dist/index.cjs CHANGED
@@ -3044,7 +3044,7 @@ var VERSION, brand, useColor, wrap, paint, tuiDesign, sym, ui;
3044
3044
  var init_branding = __esm({
3045
3045
  "src/branding.ts"() {
3046
3046
  "use strict";
3047
- VERSION = "0.4.11" ? "0.4.11" : null.version;
3047
+ VERSION = "0.4.13" ? "0.4.13" : null.version;
3048
3048
  brand = {
3049
3049
  name: "agentful",
3050
3050
  // the command users type
@@ -4015,7 +4015,7 @@ var PB_URL = (process.env.AGENTFUL_PB_URL || "https://pb.agentful.dev").replace(
4015
4015
  var API_URL = (process.env.AGENTFUL_API_URL || PB_URL).replace(/\/$/, "");
4016
4016
  var APP_URL = (process.env.AGENTFUL_APP_URL || "https://app.agentful.dev").replace(/\/$/, "");
4017
4017
  var PUBLIC_API_URL = (process.env.AGENTFUL_PUBLIC_API_URL || "https://api.agentful.dev").replace(/\/$/, "");
4018
- var PREVIEW_DOMAIN = "agentful.dev";
4018
+ var PREVIEW_DOMAIN = "agentful.page";
4019
4019
  var PUBLISHED_DOMAIN = "agentful.page";
4020
4020
  function configDir() {
4021
4021
  if (process.platform === "win32" && process.env.APPDATA) {
@@ -6659,9 +6659,7 @@ function brandPreviewUrl(previewUrl, projectId) {
6659
6659
  if (!previewUrl) return fallback;
6660
6660
  try {
6661
6661
  const url = new URL(previewUrl);
6662
- if (url.hostname.endsWith(".mainmvp.com")) {
6663
- url.hostname = url.hostname.replace(/\.mainmvp\.com$/, `.${PREVIEW_DOMAIN}`);
6664
- }
6662
+ url.hostname = url.hostname.replace(/\.(?:mainmvp\.com|agentful\.dev)$/, `.${PREVIEW_DOMAIN}`);
6665
6663
  return url.toString();
6666
6664
  } catch {
6667
6665
  return fallback;
@@ -7233,7 +7231,7 @@ var SLASH_COMMANDS = {
7233
7231
  },
7234
7232
  status: {
7235
7233
  description: `${brand.displayName}: show the linked project and account`,
7236
- template: "Run `agentful whoami` using the bash tool. Then read .agentful/project.json and report the linked project title and id, plus the preview URL https://preview-<projectId>.agentful.dev/. If the file does not exist, say that this directory is not linked yet and that `/setup` creates the link."
7234
+ template: "Run `agentful whoami` using the bash tool. Then read .agentful/project.json and report the linked project title and id, plus the preview URL https://preview-<projectId>.agentful.page/. If the file does not exist, say that this directory is not linked yet and that `/setup` creates the link."
7237
7235
  }
7238
7236
  };
7239
7237
  function commandMarkdown(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentful",
3
- "version": "0.4.11",
3
+ "version": "0.4.13",
4
4
  "description": "Agentful in your terminal — local development with push-to-cloud previews",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://agentful.dev",