agentful 0.4.30 → 0.4.31

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.
Files changed (2) hide show
  1. package/dist/index.cjs +21 -2
  2. package/package.json +1 -1
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.30" ? "0.4.30" : null.version;
3047
+ VERSION = "0.4.31" ? "0.4.31" : null.version;
3048
3048
  brand = {
3049
3049
  name: "agentful",
3050
3050
  // the command users type
@@ -7308,6 +7308,23 @@ function renderPublishedCopyLine(state) {
7308
7308
  kind: "warn",
7309
7309
  text: "Your published site was only partly updated: writing to it failed, so it may show the previous push or a mix of both. Push again to retry."
7310
7310
  };
7311
+ // Automatic publishing off (site versions, AP11 step 2): the push became
7312
+ // a version, the published site was not touched.
7313
+ case "versioned":
7314
+ return {
7315
+ kind: "ok",
7316
+ text: "Automatic publishing is off for this project: this push is saved as a new version and your published site stays as it is. Switch it live in the Publish dialog of the editor."
7317
+ };
7318
+ case "version_incomplete":
7319
+ return {
7320
+ kind: "warn",
7321
+ text: "Automatic publishing is off for this project, and saving this push as a version ran out of time. Your published site stays as it is. The preview shows this push."
7322
+ };
7323
+ case "version_failed":
7324
+ return {
7325
+ kind: "warn",
7326
+ text: "Automatic publishing is off for this project, and saving this push as a version failed. Your published site stays as it is. Push again to retry."
7327
+ };
7311
7328
  case "check_failed":
7312
7329
  return {
7313
7330
  kind: "warn",
@@ -10150,7 +10167,9 @@ async function publishCommand(subdomain) {
10150
10167
  `${PUBLIC_API_URL}/api/publish`,
10151
10168
  {
10152
10169
  token: auth.pb_token,
10153
- body: { user_id: project.userId, project_id: project.projectId, subdomain: name },
10170
+ // publish_newest: the newest build goes live, also with "publish new
10171
+ // builds automatically" off (default for new projects since O8).
10172
+ body: { user_id: project.userId, project_id: project.projectId, subdomain: name, publish_newest: true },
10154
10173
  timeoutMs: 12e4
10155
10174
  }
10156
10175
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentful",
3
- "version": "0.4.30",
3
+ "version": "0.4.31",
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",