asteroid-odyssey 1.7.270 → 1.7.271

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/dist/index.d.mts CHANGED
@@ -609,6 +609,10 @@ type AgentsGraphModelsExternalSettings = {
609
609
  * Whether to use the new agent loop for execution (beta)
610
610
  */
611
611
  new_agent_loop?: boolean;
612
+ /**
613
+ * Whether this agent has variants — one workflow driving many per-variant script trees, selected at execution time by `variantKey`. Required for a node's `script_filepath` to use the `{{variant_key}}` placeholder, and required for an execution to carry a `variantKey`.
614
+ */
615
+ variant_mode?: boolean;
612
616
  };
613
617
  /**
614
618
  * Browser provider type
@@ -784,7 +788,8 @@ type AgentsGraphModelsNodesPropertiesIrisProperties = {
784
788
  * runtime substitutes with the execution's `variant_key` so a single
785
789
  * workflow can target per-tenant script trees (e.g.
786
790
  * `{{variant_key}}/scripts/main.js` →
787
- * `shared/<node-key>/<variant-key>/scripts/main.js`).
791
+ * `shared/<node-key>/<variant-key>/scripts/main.js`). Requires the
792
+ * agent to have `variant_mode` enabled.
788
793
  */
789
794
  script_filepath?: string;
790
795
  /**
@@ -916,7 +921,7 @@ type AgentsWorkflowExecuteWorkflowRequest = {
916
921
  */
917
922
  type AgentsAgentExecutionOptions = {
918
923
  /**
919
- * Identifies which variant this execution is for, scoping its shared files and scripts to a per-variant subdirectory under each node's shared folder. It does not change which agent or workflow runs. Normalised to a filesystem-safe slug by the server.
924
+ * Identifies which variant this execution is for, scoping its shared files and scripts to a per-variant subdirectory under each node's shared folder. It does not change which agent or workflow runs. Normalised to a filesystem-safe slug by the server. Requires the agent to have `variant_mode` enabled, and a variant-mode agent requires it on every execution.
920
925
  */
921
926
  variantKey?: string;
922
927
  /**
package/dist/index.d.ts CHANGED
@@ -609,6 +609,10 @@ type AgentsGraphModelsExternalSettings = {
609
609
  * Whether to use the new agent loop for execution (beta)
610
610
  */
611
611
  new_agent_loop?: boolean;
612
+ /**
613
+ * Whether this agent has variants — one workflow driving many per-variant script trees, selected at execution time by `variantKey`. Required for a node's `script_filepath` to use the `{{variant_key}}` placeholder, and required for an execution to carry a `variantKey`.
614
+ */
615
+ variant_mode?: boolean;
612
616
  };
613
617
  /**
614
618
  * Browser provider type
@@ -784,7 +788,8 @@ type AgentsGraphModelsNodesPropertiesIrisProperties = {
784
788
  * runtime substitutes with the execution's `variant_key` so a single
785
789
  * workflow can target per-tenant script trees (e.g.
786
790
  * `{{variant_key}}/scripts/main.js` →
787
- * `shared/<node-key>/<variant-key>/scripts/main.js`).
791
+ * `shared/<node-key>/<variant-key>/scripts/main.js`). Requires the
792
+ * agent to have `variant_mode` enabled.
788
793
  */
789
794
  script_filepath?: string;
790
795
  /**
@@ -916,7 +921,7 @@ type AgentsWorkflowExecuteWorkflowRequest = {
916
921
  */
917
922
  type AgentsAgentExecutionOptions = {
918
923
  /**
919
- * Identifies which variant this execution is for, scoping its shared files and scripts to a per-variant subdirectory under each node's shared folder. It does not change which agent or workflow runs. Normalised to a filesystem-safe slug by the server.
924
+ * Identifies which variant this execution is for, scoping its shared files and scripts to a per-variant subdirectory under each node's shared folder. It does not change which agent or workflow runs. Normalised to a filesystem-safe slug by the server. Requires the agent to have `variant_mode` enabled, and a variant-mode agent requires it on every execution.
920
925
  */
921
926
  variantKey?: string;
922
927
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.7.270",
3
+ "version": "1.7.271",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",