ソースを参照

chore: generate

opencode-agent[bot] 4 ヶ月 前
コミット
7ded0ec9e9

+ 1 - 2
packages/opencode/src/session/retry.ts

@@ -74,8 +74,7 @@ export function retryable(error: Err) {
         message: GO_UPSELL_MESSAGE,
         action: {
           title: "Free limit reached",
-          message:
-            "Subscribe to OpenCode Go for reliable access to the best open-source models, starting at $5/month.",
+          message: "Subscribe to OpenCode Go for reliable access to the best open-source models, starting at $5/month.",
           label: "subscribe",
           link: GO_UPSELL_URL,
         },

+ 2 - 4
packages/opencode/test/session/retry.test.ts

@@ -250,8 +250,7 @@ describe("session.retry.retryable", () => {
       message: SessionRetry.GO_UPSELL_MESSAGE,
       action: {
         title: "Free limit reached",
-        message:
-          "Subscribe to OpenCode Go for reliable access to the best open-source models, starting at $5/month.",
+        message: "Subscribe to OpenCode Go for reliable access to the best open-source models, starting at $5/month.",
         label: "subscribe",
         link: SessionRetry.GO_UPSELL_URL,
       },
@@ -283,8 +282,7 @@ describe("session.retry.retryable", () => {
       message: SessionRetry.PAYG_UPSELL_MESSAGE,
       action: {
         title: "Go limit reached",
-        message:
-          "You hit your 5 hour limit. It will reset in 5 hours 23 minutes. You can also enable pay-as-you-go.",
+        message: "You hit your 5 hour limit. It will reset in 5 hours 23 minutes. You can also enable pay-as-you-go.",
         label: "enable PAYG",
         link: "https://opencode.ai/workspace/wrk_01K6XGM22R6FM8JVABE9XDQXGH/go",
       },

+ 19 - 0
packages/sdk/openapi.json

@@ -9401,6 +9401,25 @@
               "message": {
                 "type": "string"
               },
+              "action": {
+                "type": "object",
+                "properties": {
+                  "title": {
+                    "type": "string"
+                  },
+                  "message": {
+                    "type": "string"
+                  },
+                  "label": {
+                    "type": "string"
+                  },
+                  "link": {
+                    "type": "string"
+                  }
+                },
+                "required": ["title", "message", "label"],
+                "additionalProperties": false
+              },
               "next": {
                 "type": "integer",
                 "minimum": 0