asteroid-odyssey 1.7.269 → 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
@@ -780,11 +784,12 @@ type AgentsGraphModelsNodesPropertiesIrisProperties = {
780
784
  * prefix.
781
785
  * - Must end in `.js`.
782
786
  * - Must not contain `..` segments or duplicate slashes.
783
- * - May contain a single `{{shared_storage_key}}` placeholder, which
784
- * the runtime substitutes with the execution's `shared_storage_key`
785
- * so a single workflow can target per-tenant script trees (e.g.
786
- * `{{shared_storage_key}}/scripts/main.js` →
787
- * `shared/<node-key>/<storage-key>/scripts/main.js`).
787
+ * - May contain a single `{{variant_key}}` placeholder, which the
788
+ * runtime substitutes with the execution's `variant_key` so a single
789
+ * workflow can target per-tenant script trees (e.g.
790
+ * `{{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,9 +921,9 @@ type AgentsWorkflowExecuteWorkflowRequest = {
916
921
  */
917
922
  type AgentsAgentExecutionOptions = {
918
923
  /**
919
- * Scopes shared-file storage to a per-entity subdirectory under each node's shared folder. The value is 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
- sharedStorageKey?: string;
926
+ variantKey?: string;
922
927
  /**
923
928
  * Soft timeout in minutes. When the execution has been running longer than this value, a message is injected on every subsequent step urging the agent to wrap up and produce output. Must be greater than 0 and less than the agent's hard timeout (max_timeout_mins).
924
929
  */
@@ -2201,7 +2206,7 @@ type AgentsExecutionListItem = {
2201
2206
  */
2202
2207
  triggerContext?: AgentsExecutionTriggerContext;
2203
2208
  /**
2204
- * Per-execution runtime options (e.g. shared storage key)
2209
+ * Per-execution runtime options (e.g. variant key)
2205
2210
  */
2206
2211
  executionOptions?: AgentsAgentExecutionOptions;
2207
2212
  /**
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
@@ -780,11 +784,12 @@ type AgentsGraphModelsNodesPropertiesIrisProperties = {
780
784
  * prefix.
781
785
  * - Must end in `.js`.
782
786
  * - Must not contain `..` segments or duplicate slashes.
783
- * - May contain a single `{{shared_storage_key}}` placeholder, which
784
- * the runtime substitutes with the execution's `shared_storage_key`
785
- * so a single workflow can target per-tenant script trees (e.g.
786
- * `{{shared_storage_key}}/scripts/main.js` →
787
- * `shared/<node-key>/<storage-key>/scripts/main.js`).
787
+ * - May contain a single `{{variant_key}}` placeholder, which the
788
+ * runtime substitutes with the execution's `variant_key` so a single
789
+ * workflow can target per-tenant script trees (e.g.
790
+ * `{{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,9 +921,9 @@ type AgentsWorkflowExecuteWorkflowRequest = {
916
921
  */
917
922
  type AgentsAgentExecutionOptions = {
918
923
  /**
919
- * Scopes shared-file storage to a per-entity subdirectory under each node's shared folder. The value is 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
- sharedStorageKey?: string;
926
+ variantKey?: string;
922
927
  /**
923
928
  * Soft timeout in minutes. When the execution has been running longer than this value, a message is injected on every subsequent step urging the agent to wrap up and produce output. Must be greater than 0 and less than the agent's hard timeout (max_timeout_mins).
924
929
  */
@@ -2201,7 +2206,7 @@ type AgentsExecutionListItem = {
2201
2206
  */
2202
2207
  triggerContext?: AgentsExecutionTriggerContext;
2203
2208
  /**
2204
- * Per-execution runtime options (e.g. shared storage key)
2209
+ * Per-execution runtime options (e.g. variant key)
2205
2210
  */
2206
2211
  executionOptions?: AgentsAgentExecutionOptions;
2207
2212
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.7.269",
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",