@mote-farm/sandbox 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.
@@ -13664,6 +13664,9 @@ var errorZhCN = {
13664
13664
  "already_member": "\u8BE5\u7528\u6237\u5DF2\u662F\u7EC4\u7EC7\u6210\u5458",
13665
13665
  "org_user_limit_reached": "\u8BE5\u7EC4\u7EC7\u5DF2\u8FBE\u5230\u5957\u9910\u7684\u7528\u6237\u4E0A\u9650\u3002\u6709\u7A7A\u4F59\u540D\u989D\u540E\u624D\u80FD\u6DFB\u52A0\u5176\u4ED6\u7528\u6237\u3002",
13666
13666
  "org_farm_limit_reached": "\u8BE5\u7EC4\u7EC7\u5DF2\u8FBE\u5230\u5957\u9910\u7684\u519C\u573A\u6570\u91CF\u4E0A\u9650\u3002",
13667
+ "org_plan_changed": "\u53E6\u4E00\u4F4D\u7BA1\u7406\u5458\u5DF2\u66F4\u6539\u6B64\u5206\u914D\u3002\u8BF7\u6838\u5BF9\u5F53\u524D\u5957\u9910\u540E\u91CD\u8BD5\u3002",
13668
+ "facilitator_assignment_changed": "\u6B64\u5206\u914D\u5DF2\u66F4\u6539\u3002\u8BF7\u6838\u5BF9\u5F53\u524D\u7EC4\u7EC7\u540E\u91CD\u65B0\u4FDD\u5B58\u3002",
13669
+ "invalid_org_plan": "\u8BF7\u9009\u62E9\u53EF\u7528\u7684\u7EC4\u7EC7\u5957\u9910\u3002",
13667
13670
  "account_not_found": "\u672A\u627E\u5230\u7B26\u5408\u6761\u4EF6\u7684\u8D26\u53F7\uFF0C\u8BF7\u6838\u5BF9\u6CE8\u518C\u90AE\u7BB1\u3002",
13668
13671
  "already member": "\u8BE5\u7528\u6237\u5DF2\u662F\u7EC4\u7EC7\u6210\u5458",
13669
13672
  "already_registered": "\u8BE5\u90AE\u7BB1\u5DF2\u6CE8\u518C",
@@ -13681,6 +13684,7 @@ var errorZhCN = {
13681
13684
  "file_quota_exceeded": "\u6587\u4EF6\u5B58\u50A8\u7A7A\u95F4\u5DF2\u6EE1",
13682
13685
  "file quota exceeded": "\u6587\u4EF6\u5B58\u50A8\u7A7A\u95F4\u5DF2\u6EE1",
13683
13686
  "dashboard_conflict": "\u4EEA\u8868\u76D8\u5DF2\u66F4\u6539\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D",
13687
+ "dashboard_creation_disabled": "\u5F53\u524D\u5DF2\u5173\u95ED\u81EA\u5B9A\u4E49\u4EEA\u8868\u76D8\u7684\u521B\u5EFA\u529F\u80FD\u3002",
13684
13688
  "dashboard conflict": "\u4EEA\u8868\u76D8\u5DF2\u66F4\u6539\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D",
13685
13689
  "farm_changed": "\u6253\u5F00\u540E\u6B64\u519C\u573A\u7684\u5730\u5757\u5DF2\u6709\u53D8\u66F4\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D\u519C\u573A\u540E\u518D\u4FEE\u6539",
13686
13690
  "season_overlap": "\u8FD9\u4E9B\u5730\u5757\u4E2D\u6709\u5730\u5757\u5728\u91CD\u53E0\u7684\u65E5\u671F\u4E0A\u5DF2\u5C5E\u4E8E\u5176\u4ED6\u751F\u4EA7\u5B63\u3002\u4E00\u4E2A\u5730\u5757\u540C\u4E00\u65F6\u95F4\u53EA\u80FD\u5C5E\u4E8E\u4E00\u4E2A\u751F\u4EA7\u5B63",
@@ -14216,10 +14220,10 @@ var runErrorsZhCN = {
14216
14220
  };
14217
14221
 
14218
14222
  // ../core/dist/contracts/form-descriptions.js
14219
- var OPEN_FORM = "Open an editable form. kind is application (fertilizer and pesticide applications and irrigation: one recipe delivered to plots in runs; a product without a registration number is recorded by its own names), farm_event, farm (a new farm, a farm's details or place, new plots, or a plot's details) or season (seasons are windows on a farm's one timeline of operations, each a name, days and plots: a new season, a season as a whole, or a copy to a new start with its operations again, not done). For an application or farm event, values alone start a new record, id alone shows a saved record for the person to read, change or delete themselves, and id with values supplies that record's complete new values. You cannot add or remove an operation's photos, videos or documents: the person does that in its form, and a note's references to them stay as written. To delete a record, show it by its id and tell the person to delete it in its form; deleting a plot or a season and archiving a season are done on the Farms page and in the Planner. A farm event names the plots it was on, or none (plotCodes []) when it is about no plot, such as the whole farm. Keep the person's chosen plots. An application run or farm event can use any of the farm's plots on any date. Omit seasonId unless the person specifies a season. For a requested season, find its id with list_seasons. A single run or farm event can then omit plotCodes to use that season's plots. When the call returns an error, no form was opened and nothing was saved: never say otherwise. The error names the fields to correct; ask the person for required details you do not have.";
14223
+ var OPEN_FORM = "Open an editable form. kind is application (fertilizer and pesticide applications and irrigation: one recipe delivered to plots in runs; look up each registered pesticide before drafting and copy the catalog product fields into its component, and use productName for a custom pesticide), farm_event, farm (a new farm, a farm's details or place, new plots, or a plot's details) or season (seasons are windows on a farm's one timeline of operations, each a name, days and plots: a new season, a season as a whole, or a copy to a new start with its operations again, not done). For an application or farm event, values alone start a new record, id alone shows a saved record for the person to read, change or delete themselves, and id with values supplies that record's complete new values. You cannot add or remove an operation's photos, videos or documents: the person does that in its form, and a note's references to them stay as written. To delete a record, show it by its id and tell the person to delete it in its form; deleting a plot or a season and archiving a season are done on the Farms page and in the Planner. A farm event names the plots it was on, or none (plotCodes []) when it is about no plot, such as the whole farm. Keep the person's chosen plots. An application run or farm event can use any of the farm's plots on any date. Omit seasonId unless the person specifies a season. For a requested season, find its id with list_seasons. A single run or farm event can then omit plotCodes to use that season's plots. When the call returns an error, no form was opened and nothing was saved: never say otherwise. The error names the fields to correct; ask the person for required details you do not have.";
14220
14224
  var MCP_OPEN_FORM_DESCRIPTION = `${OPEN_FORM} The person saves the whole form by pressing Save or toggling Done. Show the returned form, then finish your turn. Do not poll or claim anything was saved. Without an MCP App, show the exact values and obtain the person's explicit approval before calling the record tool that writes them (application_record, application_update, farm_event_record, farm_event_update, manage_farms or manage_seasons).`;
14221
14225
  var CHANNEL_OPEN_FORM_DESCRIPTION = `${OPEN_FORM} In text and voice conversations, set save: true only when your owner asks to record or update an application or farm event. This call saves the operation immediately and returns saved: true, its recordId and its editable form url. Link that url in your reply. When supplying updated values for a saved record, read it first and pass its exact changedAt as basedOn. For an existing draft, pass formId and save: true to save the owner's current values. Include values only to replace them. For a draft request omit save or set it false. Show an existing record with id alone. Ask for missing required details. Farm and season forms are saved by their owner.`;
14222
- var OPEN_FORM_ZH = "\u6253\u5F00\u53EF\u7F16\u8F91\u7684\u8868\u5355\u3002kind \u4E3A application\uFF08\u80A5\u6599\u3001\u519C\u836F\u65BD\u7528\u548C\u704C\u6E89\uFF1A\u540C\u4E00\u914D\u65B9\u5206\u8F6E\u6B21\u65BD\u7528\u5230\u5730\u5757\uFF1B\u6CA1\u6709\u767B\u8BB0\u8BC1\u53F7\u7684\u4EA7\u54C1\u6309\u5176\u81EA\u8EAB\u540D\u79F0\u8BB0\u5F55\uFF09\u3001farm_event\u3001farm\uFF08\u65B0\u5EFA\u519C\u573A\u3001\u519C\u573A\u7684\u4FE1\u606F\u6216\u4F4D\u7F6E\u3001\u65B0\u5EFA\u5730\u5757\u3001\u5730\u5757\u7684\u4FE1\u606F\uFF09\u6216 season\uFF08\u751F\u4EA7\u5B63\u662F\u519C\u573A\u552F\u4E00\u4F5C\u4E1A\u65F6\u95F4\u7EBF\u4E0A\u7684\u7A97\u53E3\uFF0C\u5404\u6709\u540D\u79F0\u3001\u65E5\u671F\u548C\u5730\u5757\uFF1A\u65B0\u5EFA\u751F\u4EA7\u5B63\u3001\u6574\u4F53\u4FEE\u6539\u751F\u4EA7\u5B63\uFF0C\u6216\u590D\u5236\u5230\u65B0\u7684\u5F00\u59CB\u65E5\u671F\u5E76\u628A\u5176\u4F5C\u4E1A\u91CD\u65B0\u5199\u4E3A\u8BA1\u5212\uFF09\u3002\u5BF9\u4E8E\u65BD\u7528\u6216\u519C\u4E8B\u4E8B\u4EF6\uFF1A\u53EA\u7ED9 values \u8868\u793A\u65B0\u5EFA\u8BB0\u5F55\uFF1B\u53EA\u7ED9 id \u8868\u793A\u663E\u793A\u5DF2\u4FDD\u5B58\u7684\u8BB0\u5F55\uFF0C\u4F9B\u7528\u6237\u81EA\u5DF1\u67E5\u770B\u3001\u4FEE\u6539\u6216\u5220\u9664\uFF1B\u540C\u65F6\u7ED9 id \u548C values \u8868\u793A\u63D0\u4F9B\u8BE5\u8BB0\u5F55\u7684\u5B8C\u6574\u65B0\u503C\u3002\u4F60\u4E0D\u80FD\u6DFB\u52A0\u6216\u79FB\u9664\u4F5C\u4E1A\u7684\u7167\u7247\u3001\u89C6\u9891\u6216\u6587\u6863\uFF1A\u8FD9\u4E9B\u7531\u7528\u6237\u5728\u8868\u5355\u4E2D\u64CD\u4F5C\uFF1B\u5907\u6CE8\u4E2D\u5BF9\u5B83\u4EEC\u7684\u5F15\u7528\u5E94\u4FDD\u6301\u539F\u6837\u3002\u8981\u5220\u9664\u8BB0\u5F55\uFF0C\u8BF7\u7528\u5176 id \u663E\u793A\u5B83\uFF0C\u5E76\u544A\u8BC9\u7528\u6237\u5728\u5176\u8868\u5355\u4E2D\u5220\u9664\uFF1B\u5220\u9664\u5730\u5757\u6216\u751F\u4EA7\u5B63\u3001\u5F52\u6863\u751F\u4EA7\u5B63\u9700\u5728\u201C\u519C\u573A\u201D\u548C\u201C\u751F\u4EA7\u5B63\u201D\u9875\u9762\u8FDB\u884C\u3002\u519C\u4E8B\u4E8B\u4EF6\u5199\u660E\u5176\u6240\u5728\u7684\u5730\u5757\uFF1B\u4E0D\u6D89\u53CA\u5730\u5757\u65F6\uFF08\u4F8B\u5982\u5173\u4E8E\u6574\u4E2A\u519C\u573A\uFF09\u586B plotCodes []\u3002\u4FDD\u7559\u7528\u6237\u9009\u5B9A\u7684\u5730\u5757\u3002\u65BD\u7528\u8F6E\u6B21\u6216\u519C\u4E8B\u4E8B\u4EF6\u5728\u4EFB\u4F55\u65E5\u671F\u90FD\u53EF\u4EE5\u9009\u62E9\u672C\u519C\u573A\u7684\u4EFB\u610F\u5730\u5757\u3002\u7528\u6237\u672A\u6307\u5B9A\u751F\u4EA7\u5B63\u65F6\uFF0C\u7701\u7565 seasonId\u3002\u7528\u6237\u6307\u5B9A\u4E86\u751F\u4EA7\u5B63\u65F6\uFF0C\u7528 list_seasons \u67E5\u8BE2\u5176\u7F16\u53F7\u3002\u6B64\u65F6\u5355\u4E2A\u65BD\u7528\u8F6E\u6B21\u6216\u519C\u4E8B\u4E8B\u4EF6\u53EF\u4EE5\u7701\u7565 plotCodes\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u8BE5\u751F\u4EA7\u5B63\u7684\u5730\u5757\u3002\u8C03\u7528\u8FD4\u56DE\u9519\u8BEF\u65F6\uFF0C\u8868\u5355\u6CA1\u6709\u6253\u5F00\uFF0C\u4E5F\u6CA1\u6709\u4FDD\u5B58\u4EFB\u4F55\u5185\u5BB9\uFF1A\u4E0D\u5F97\u58F0\u79F0\u5DF2\u6253\u5F00\u6216\u5DF2\u4FDD\u5B58\u3002\u9519\u8BEF\u4F1A\u6307\u51FA\u9700\u8981\u66F4\u6B63\u7684\u5B57\u6BB5\uFF1B\u7F3A\u5C11\u5FC5\u586B\u4FE1\u606F\u65F6\u8BF7\u5411\u7528\u6237\u8BE2\u95EE\u3002";
14226
+ var OPEN_FORM_ZH = "\u6253\u5F00\u53EF\u7F16\u8F91\u7684\u8868\u5355\u3002kind \u4E3A application\uFF08\u80A5\u6599\u3001\u519C\u836F\u65BD\u7528\u548C\u704C\u6E89\uFF1A\u540C\u4E00\u914D\u65B9\u5206\u8F6E\u6B21\u65BD\u7528\u5230\u5730\u5757\uFF1B\u8D77\u8349\u524D\u987B\u67E5\u8BE2\u6BCF\u79CD\u5DF2\u767B\u8BB0\u519C\u836F\uFF0C\u5C06\u76EE\u5F55\u8FD4\u56DE\u7684 product \u5B57\u6BB5\u586B\u5165\u76F8\u5E94\u6295\u5165\u54C1\uFF0C\u81EA\u5B9A\u4E49\u519C\u836F\u586B\u5199 productName\uFF09\u3001farm_event\u3001farm\uFF08\u65B0\u5EFA\u519C\u573A\u3001\u519C\u573A\u7684\u4FE1\u606F\u6216\u4F4D\u7F6E\u3001\u65B0\u5EFA\u5730\u5757\u3001\u5730\u5757\u7684\u4FE1\u606F\uFF09\u6216 season\uFF08\u751F\u4EA7\u5B63\u662F\u519C\u573A\u552F\u4E00\u4F5C\u4E1A\u65F6\u95F4\u7EBF\u4E0A\u7684\u7A97\u53E3\uFF0C\u5404\u6709\u540D\u79F0\u3001\u65E5\u671F\u548C\u5730\u5757\uFF1A\u65B0\u5EFA\u751F\u4EA7\u5B63\u3001\u6574\u4F53\u4FEE\u6539\u751F\u4EA7\u5B63\uFF0C\u6216\u590D\u5236\u5230\u65B0\u7684\u5F00\u59CB\u65E5\u671F\u5E76\u628A\u5176\u4F5C\u4E1A\u91CD\u65B0\u5199\u4E3A\u8BA1\u5212\uFF09\u3002\u5BF9\u4E8E\u65BD\u7528\u6216\u519C\u4E8B\u4E8B\u4EF6\uFF1A\u53EA\u7ED9 values \u8868\u793A\u65B0\u5EFA\u8BB0\u5F55\uFF1B\u53EA\u7ED9 id \u8868\u793A\u663E\u793A\u5DF2\u4FDD\u5B58\u7684\u8BB0\u5F55\uFF0C\u4F9B\u7528\u6237\u81EA\u5DF1\u67E5\u770B\u3001\u4FEE\u6539\u6216\u5220\u9664\uFF1B\u540C\u65F6\u7ED9 id \u548C values \u8868\u793A\u63D0\u4F9B\u8BE5\u8BB0\u5F55\u7684\u5B8C\u6574\u65B0\u503C\u3002\u4F60\u4E0D\u80FD\u6DFB\u52A0\u6216\u79FB\u9664\u4F5C\u4E1A\u7684\u7167\u7247\u3001\u89C6\u9891\u6216\u6587\u6863\uFF1A\u8FD9\u4E9B\u7531\u7528\u6237\u5728\u8868\u5355\u4E2D\u64CD\u4F5C\uFF1B\u5907\u6CE8\u4E2D\u5BF9\u5B83\u4EEC\u7684\u5F15\u7528\u5E94\u4FDD\u6301\u539F\u6837\u3002\u8981\u5220\u9664\u8BB0\u5F55\uFF0C\u8BF7\u7528\u5176 id \u663E\u793A\u5B83\uFF0C\u5E76\u544A\u8BC9\u7528\u6237\u5728\u5176\u8868\u5355\u4E2D\u5220\u9664\uFF1B\u5220\u9664\u5730\u5757\u6216\u751F\u4EA7\u5B63\u3001\u5F52\u6863\u751F\u4EA7\u5B63\u9700\u5728\u201C\u519C\u573A\u201D\u548C\u201C\u751F\u4EA7\u5B63\u201D\u9875\u9762\u8FDB\u884C\u3002\u519C\u4E8B\u4E8B\u4EF6\u5199\u660E\u5176\u6240\u5728\u7684\u5730\u5757\uFF1B\u4E0D\u6D89\u53CA\u5730\u5757\u65F6\uFF08\u4F8B\u5982\u5173\u4E8E\u6574\u4E2A\u519C\u573A\uFF09\u586B plotCodes []\u3002\u4FDD\u7559\u7528\u6237\u9009\u5B9A\u7684\u5730\u5757\u3002\u65BD\u7528\u8F6E\u6B21\u6216\u519C\u4E8B\u4E8B\u4EF6\u5728\u4EFB\u4F55\u65E5\u671F\u90FD\u53EF\u4EE5\u9009\u62E9\u672C\u519C\u573A\u7684\u4EFB\u610F\u5730\u5757\u3002\u7528\u6237\u672A\u6307\u5B9A\u751F\u4EA7\u5B63\u65F6\uFF0C\u7701\u7565 seasonId\u3002\u7528\u6237\u6307\u5B9A\u4E86\u751F\u4EA7\u5B63\u65F6\uFF0C\u7528 list_seasons \u67E5\u8BE2\u5176\u7F16\u53F7\u3002\u6B64\u65F6\u5355\u4E2A\u65BD\u7528\u8F6E\u6B21\u6216\u519C\u4E8B\u4E8B\u4EF6\u53EF\u4EE5\u7701\u7565 plotCodes\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u8BE5\u751F\u4EA7\u5B63\u7684\u5730\u5757\u3002\u8C03\u7528\u8FD4\u56DE\u9519\u8BEF\u65F6\uFF0C\u8868\u5355\u6CA1\u6709\u6253\u5F00\uFF0C\u4E5F\u6CA1\u6709\u4FDD\u5B58\u4EFB\u4F55\u5185\u5BB9\uFF1A\u4E0D\u5F97\u58F0\u79F0\u5DF2\u6253\u5F00\u6216\u5DF2\u4FDD\u5B58\u3002\u9519\u8BEF\u4F1A\u6307\u51FA\u9700\u8981\u66F4\u6B63\u7684\u5B57\u6BB5\uFF1B\u7F3A\u5C11\u5FC5\u586B\u4FE1\u606F\u65F6\u8BF7\u5411\u7528\u6237\u8BE2\u95EE\u3002";
14223
14227
  var OPEN_FORM_DESCRIPTIONS_ZH = {
14224
14228
  [MCP_OPEN_FORM_DESCRIPTION]: `${OPEN_FORM_ZH}\u7528\u6237\u70B9\u51FB\u201C\u4FDD\u5B58\u201D\u6216\u5207\u6362\u4F5C\u4E1A\u7684\u201C\u5DF2\u5B8C\u6210\u201D\u65F6\u4F1A\u4FDD\u5B58\u6574\u5F20\u8868\u5355\u3002\u5C55\u793A\u8FD4\u56DE\u7684\u8868\u5355\uFF0C\u7136\u540E\u7ED3\u675F\u672C\u8F6E\u56DE\u590D\u3002\u4E0D\u8981\u8F6E\u8BE2\uFF0C\u4E5F\u4E0D\u8981\u58F0\u79F0\u5DF2\u4FDD\u5B58\u3002\u82E5\u65E0 MCP App\uFF0C\u5FC5\u987B\u5148\u5C55\u793A\u51C6\u786E\u503C\u5E76\u83B7\u5F97\u7528\u6237\u660E\u786E\u540C\u610F\uFF0C\u518D\u8C03\u7528\u5199\u5165\u8FD9\u4E9B\u503C\u7684\u8BB0\u5F55\u5DE5\u5177\uFF08application_record\u3001application_update\u3001farm_event_record\u3001farm_event_update\u3001manage_farms \u6216 manage_seasons\uFF09\u3002`,
14225
14229
  [CHANNEL_OPEN_FORM_DESCRIPTION]: `${OPEN_FORM_ZH}\u5728\u6587\u5B57\u548C\u8BED\u97F3\u5BF9\u8BDD\u4E2D\uFF0C\u6240\u6709\u8005\u8981\u6C42\u8BB0\u5F55\u6216\u66F4\u65B0\u65BD\u7528\u3001\u519C\u4E8B\u4E8B\u4EF6\u65F6\u624D\u8BBE\u7F6E save: true\u3002\u5DE5\u5177\u4F1A\u7ACB\u5373\u4FDD\u5B58\u5E76\u8FD4\u56DE saved: true\u3001recordId \u548C\u53EF\u7F16\u8F91\u8868\u5355\u7684 url\u3002\u56DE\u590D\u4E2D\u9644\u4E0A\u8BE5\u94FE\u63A5\u3002\u4FEE\u6539\u5DF2\u4FDD\u5B58\u7684\u8BB0\u5F55\u65F6\uFF0C\u5148\u8BFB\u53D6\u8BB0\u5F55\uFF0C\u518D\u5C06\u5176\u539F\u59CB changedAt \u4F5C\u4E3A basedOn \u4F20\u5165\u3002\u8981\u4FDD\u5B58\u5DF2\u6709\u8349\u7A3F\uFF0C\u4F20 formId \u548C save: true\uFF0C\u5373\u53EF\u4FDD\u5B58\u6240\u6709\u8005\u5F53\u524D\u7684\u503C\uFF1B\u53EA\u6709\u8981\u66FF\u6362\u8349\u7A3F\u5185\u5BB9\u65F6\u624D\u9644\u5B8C\u6574 values\u3002\u7528\u6237\u8981\u6C42\u8349\u7A3F\u65F6\u7701\u7565 save \u6216\u8BBE\u4E3A false\u3002\u53EA\u67E5\u770B\u5DF2\u6709\u8BB0\u5F55\u65F6\u53EA\u4F20 kind \u548C id\u3002\u7F3A\u5C11\u5FC5\u586B\u4FE1\u606F\u65F6\u8BF7\u8BE2\u95EE\u3002\u519C\u573A\u548C\u751F\u4EA7\u5B63\u8868\u5355\u7531\u6240\u6709\u8005\u4FDD\u5B58\u3002`
@@ -14309,7 +14313,7 @@ var zhCN = {
14309
14313
  "How an others delivery was made.": "\u5176\u4ED6\u65BD\u7528\u65B9\u5F0F\u7684\u5177\u4F53\u505A\u6CD5\u3002",
14310
14314
  "Whether it happened. Leave out to set it from the time: done once every run has started. Never true before then.": "\u662F\u5426\u5DF2\u53D1\u751F\u3002\u4E0D\u586B\u5219\u6309\u65F6\u95F4\u786E\u5B9A\uFF1A\u6240\u6709\u8F6E\u6B21\u5747\u5DF2\u5F00\u59CB\u540E\u4E3A\u5DF2\u5B8C\u6210\uFF1B\u5728\u6B64\u4E4B\u524D\u4E0D\u80FD\u4E3A\u5DF2\u5B8C\u6210\u3002",
14311
14315
  "The plots each valve set waters at one time; others is one run.": "\u6BCF\u7EC4\u9600\u95E8\u540C\u65F6\u704C\u6E89\u7684\u5730\u5757\uFF1B\u5176\u4ED6\u65B9\u5F0F\u53EA\u6709\u4E00\u4E2A\u8F6E\u6B21\u3002",
14312
- "The recipe every run delivers; none for water-only irrigation.": "\u6BCF\u4E2A\u8F6E\u6B21\u65BD\u7528\u7684\u914D\u65B9\uFF1B\u5355\u7EAF\u704C\u6E89\u4E0D\u586B\u3002",
14316
+ "Look up each registered pesticide with describe_agricultural_inputs or resolve_agricultural_inputs. Copy the selected product's kind, registrationNo, productName, trademarkName, companyName and totalContent directly into its component. Catalog nulls may be omitted. A custom pesticide needs its productName. Use an empty list for water-only irrigation.": "\u8BF7\u5148\u7528 describe_agricultural_inputs \u6216 resolve_agricultural_inputs \u67E5\u8BE2\u6BCF\u79CD\u5DF2\u767B\u8BB0\u519C\u836F\uFF0C\u5C06\u6240\u9009 product \u7684 kind\u3001registrationNo\u3001productName\u3001trademarkName\u3001companyName\u3001totalContent \u539F\u6837\u586B\u5165\u5BF9\u5E94\u6295\u5165\u54C1\u3002\u76EE\u5F55\u4E2D\u4E3A null \u7684\u5B57\u6BB5\u53EF\u7701\u7565\u3002\u81EA\u5B9A\u4E49\u519C\u836F\u9700\u586B\u5199 productName\u3002\u5355\u7EAF\u704C\u6E89\u4F20\u7A7A\u6570\u7EC4\u3002",
14313
14317
  "Replaces the whole application: its runs, plots and products.": "\u6574\u4F53\u66FF\u6362\u6B64\u6B21\u65BD\u7528\uFF1A\u8F6E\u6B21\u3001\u5730\u5757\u548C\u6295\u5165\u54C1\u3002",
14314
14318
  "Attachments": "\u9644\u4EF6",
14315
14319
  "An attachment can be added or removed once": "\u6BCF\u4E2A\u9644\u4EF6\u53EA\u80FD\u6DFB\u52A0\u6216\u79FB\u9664\u4E00\u6B21",
@@ -14483,7 +14487,12 @@ var zhCN = {
14483
14487
  "Trademark": "\u5546\u6807",
14484
14488
  "Company": "\u4F01\u4E1A",
14485
14489
  "Content": "\u542B\u91CF",
14486
- "component must name a registration number, product name or trademark": "\u6BCF\u9879\u6295\u5165\u54C1\u5FC5\u987B\u586B\u5199\u767B\u8BB0\u8BC1\u53F7\u3001\u4EA7\u54C1\u540D\u79F0\u6216\u5546\u6807"
14490
+ "component must name a registration number, product name or trademark": "\u6BCF\u9879\u6295\u5165\u54C1\u5FC5\u987B\u586B\u5199\u767B\u8BB0\u8BC1\u53F7\u3001\u4EA7\u54C1\u540D\u79F0\u6216\u5546\u6807",
14491
+ "Use kind pesticide for a pesticide registration": "\u519C\u836F\u767B\u8BB0\u8BC1\u53F7\u5BF9\u5E94\u7684 kind \u5E94\u4E3A pesticide",
14492
+ "Look up the registration with describe_agricultural_inputs and copy its product fields into this component": "\u8BF7\u7528 describe_agricultural_inputs \u67E5\u8BE2\u8BE5\u767B\u8BB0\u8BC1\u53F7\uFF0C\u5E76\u5C06\u8FD4\u56DE\u7684 product \u5B57\u6BB5\u539F\u6837\u586B\u5165\u6B64\u9879\u6295\u5165\u54C1",
14493
+ "Give a custom pesticide its product name. Look up a registration number with describe_agricultural_inputs": "\u8BF7\u586B\u5199\u81EA\u5B9A\u4E49\u519C\u836F\u7684\u4EA7\u54C1\u540D\u79F0\u3002\u82E5\u53EA\u6709\u767B\u8BB0\u8BC1\u53F7\uFF0C\u8BF7\u7528 describe_agricultural_inputs \u67E5\u8BE2",
14494
+ "components[{index}].registrationNo: {registration} was not found in the pesticide catalog": "components[{index}].registrationNo\uFF1A\u519C\u836F\u76EE\u5F55\u4E2D\u67E5\u65E0\u767B\u8BB0\u8BC1\u53F7 {registration}",
14495
+ "components[{index}].{field}: look up {registration} with describe_agricultural_inputs and copy its product fields": "components[{index}].{field}\uFF1A\u8BF7\u7528 describe_agricultural_inputs \u67E5\u8BE2 {registration}\uFF0C\u5E76\u539F\u6837\u586B\u5199\u5176 product \u5B57\u6BB5"
14487
14496
  };
14488
14497
 
14489
14498
  // ../core/dist/i18n/index.js
@@ -14519,8 +14528,9 @@ var hourSchema = external_exports.object({
14519
14528
  humidity: reading.nullable(),
14520
14529
  code: external_exports.string()
14521
14530
  }).strict();
14522
- var FORECAST_HOURS = 240;
14523
- var RECORDED_DAYS = 7;
14531
+ var FORECAST_DAYS = 10;
14532
+ var FORECAST_HOURS = FORECAST_DAYS * 24;
14533
+ var RECORDED_DAYS = FORECAST_DAYS;
14524
14534
  var farmWeatherQuerySchema = external_exports.object({
14525
14535
  past: external_exports.coerce.number().int().min(0).max(RECORDED_DAYS).default(0),
14526
14536
  hours: external_exports.coerce.number().int().min(1).max(FORECAST_HOURS).default(24)
@@ -14588,7 +14598,6 @@ var farmWeatherSchema = external_exports.object({
14588
14598
  */
14589
14599
  recorded: external_exports.array(hourSchema).max((RECORDED_DAYS + 1) * 24)
14590
14600
  }).strict();
14591
- var FORECAST_DAYS = 10;
14592
14601
  var farmForecastSchema = external_exports.object({
14593
14602
  farmCode: external_exports.string(),
14594
14603
  farmName: external_exports.string(),
@@ -14659,6 +14668,9 @@ var messages = {
14659
14668
  already_member: "This user is already an organization member.",
14660
14669
  org_user_limit_reached: "This organization has reached its plan\u2019s user limit. A seat must be available for another person to join.",
14661
14670
  org_farm_limit_reached: "This organization has reached its plan\u2019s farm limit.",
14671
+ org_plan_changed: "Another administrator changed this assignment. Review the current plan and try again.",
14672
+ facilitator_assignment_changed: "This assignment changed. Review the current organizations before saving again.",
14673
+ invalid_org_plan: "Choose an available organization plan.",
14662
14674
  account_not_found: "No eligible account was found. Check the registered email address.",
14663
14675
  already_registered: "This email address is already registered.",
14664
14676
  email_registered: "This email address is already registered.",
@@ -14668,6 +14680,7 @@ var messages = {
14668
14680
  file_not_found: "The file was not found.",
14669
14681
  file_quota_exceeded: "The file storage quota has been reached.",
14670
14682
  dashboard_conflict: "The dashboard has changed. Reload it and try again.",
14683
+ dashboard_creation_disabled: "Custom dashboard creation is turned off.",
14671
14684
  farm_changed: "This farm's plots changed since you opened them. Reload the farm and make your change again.",
14672
14685
  season_overlap: "Another season holds one of these plots on days that meet these. A plot is in one season at a time.",
14673
14686
  season_copy_too_large: "This season has more than 1,000 applications, too many to copy at once.",
@@ -14776,6 +14789,10 @@ function publicErrorMessage(locale, code) {
14776
14789
  return Object.hasOwn(catalog, code) ? catalog[code] : locale === "zh-CN" ? "\u8BF7\u6C42\u672A\u80FD\u5B8C\u6210\u3002" : "The request could not be completed.";
14777
14790
  }
14778
14791
 
14792
+ // src/browser-control.ts
14793
+ var BROWSER_GATE = "mote-farm/browser-control";
14794
+ var HANDOFF_MS = 5 * 6e4;
14795
+
14779
14796
  // src/pi-extension.ts
14780
14797
  var TOOL_TEXT_CHARS = 16e3;
14781
14798
  function weatherTool(url2, locale) {
@@ -14804,6 +14821,23 @@ function weatherTool(url2, locale) {
14804
14821
  function moteFarmExtension(pi) {
14805
14822
  const url2 = process.env.MOTE_FARM_WEATHER_URL;
14806
14823
  if (url2) pi.registerTool(weatherTool(url2, process.env.MOTE_FARM_LOCALE === "zh-CN" ? "zh-CN" : "en"));
14824
+ if (process.env.MOTE_FARM_RUN_DIR) {
14825
+ const check2 = (ctx, phase) => ctx.ui.confirm(BROWSER_GATE, phase, { ...ctx.signal && { signal: ctx.signal } });
14826
+ pi.on("tool_call", async (_event, ctx) => {
14827
+ if (!await check2(ctx, "tools")) return { block: true, reason: "The owner took browser control. This action was skipped." };
14828
+ });
14829
+ pi.on("turn_end", async (event, ctx) => {
14830
+ const refresh = await check2(ctx, "boundary");
14831
+ if (refresh && event.outcome === "completed") {
14832
+ return { continue: true, entries: [{
14833
+ type: "custom_message",
14834
+ customType: "browser-handoff",
14835
+ display: false,
14836
+ content: "The owner returned control of the browser. Inspect the current page before acting or reporting. The owner may have changed it."
14837
+ }] };
14838
+ }
14839
+ });
14840
+ }
14807
14841
  pi.on("tool_result", (event, ctx) => {
14808
14842
  const content = event.content.map((part, index) => keep(event, ctx.cwd, part, index));
14809
14843
  if (content.every((part, index) => part === event.content[index])) return void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mote-farm/sandbox",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "license": "UNLICENSED",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,10 +37,13 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@earendil-works/pi-coding-agent": "1.5.2",
40
- "agent-browser": "0.39.1"
40
+ "agent-browser": "0.39.1",
41
+ "playwright-core": "1.62.1",
42
+ "ws": "8.21.0"
41
43
  },
42
44
  "devDependencies": {
43
- "esbuild": "0.27.7",
44
- "@mote-farm/core": "workspace:*"
45
+ "@mote-farm/core": "workspace:*",
46
+ "@types/ws": "8.18.2",
47
+ "esbuild": "0.27.7"
45
48
  }
46
49
  }