asteroid-odyssey 1.6.798 → 1.6.799

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
@@ -2796,9 +2796,13 @@ type AgentsWorkflowWorkflowRef = {
2796
2796
  */
2797
2797
  parentId?: CommonUuid;
2798
2798
  /**
2799
- * The published version number. Null if unpublished.
2799
+ * The monotonic per-agent snapshot version number.
2800
2800
  */
2801
- version?: number;
2801
+ version: number;
2802
+ /**
2803
+ * Whether this snapshot is the agent's published version (the API default). At most one snapshot per agent is published.
2804
+ */
2805
+ isPublished: boolean;
2802
2806
  /**
2803
2807
  * When this workflow was created
2804
2808
  */
@@ -2808,7 +2812,7 @@ type AgentsWorkflowWorkflowRef = {
2808
2812
  */
2809
2813
  author?: string;
2810
2814
  /**
2811
- * Whether this workflow can be deleted (unpublished with no executions)
2815
+ * Whether this snapshot can be deleted (not published and never executed)
2812
2816
  */
2813
2817
  isDeletable: boolean;
2814
2818
  };
@@ -2829,9 +2833,13 @@ type AgentsWorkflowWorkflowSnapshot = {
2829
2833
  */
2830
2834
  parentId?: CommonUuid;
2831
2835
  /**
2832
- * The published version number. Null if unpublished.
2836
+ * The monotonic per-agent snapshot version number.
2833
2837
  */
2834
- version?: number;
2838
+ version: number;
2839
+ /**
2840
+ * Whether this snapshot is the agent's published version (the API default). At most one snapshot per agent is published.
2841
+ */
2842
+ isPublished: boolean;
2835
2843
  /**
2836
2844
  * The rules/instructions for this workflow
2837
2845
  */
@@ -2844,20 +2852,24 @@ type AgentsWorkflowWorkflowSnapshot = {
2844
2852
  * The task description
2845
2853
  */
2846
2854
  task?: string;
2847
- /**
2848
- * Typed input definitions for workflow execution. Includes names referenced in prompts, which default to optional strings.
2849
- */
2850
- inputs: Array<AgentsWorkflowInput>;
2851
2855
  /**
2852
2856
  * The workflow graph
2853
2857
  */
2854
2858
  graph: AgentsGraphModelsAgentGraph;
2859
+ /**
2860
+ * Optional environment template. Defaults to browser/anchor if not provided.
2861
+ */
2862
+ environmentTemplate?: AgentsWorkflowEnvironmentTemplate;
2863
+ /**
2864
+ * Typed input definitions for workflow execution. Includes names referenced in prompts, which default to optional strings.
2865
+ */
2866
+ inputs: Array<AgentsWorkflowInput>;
2855
2867
  /**
2856
2868
  * The files stored on this workflow version. Empty when the workflow has no files.
2857
2869
  */
2858
2870
  files: Array<AgentsWorkflowWorkflowFile>;
2859
2871
  /**
2860
- * When this workflow was created
2872
+ * When this workflow was created. For the editable head this is restamped on each in-place edit, so it doubles as the last-edited time.
2861
2873
  */
2862
2874
  createdAt: string;
2863
2875
  /**
@@ -2865,9 +2877,9 @@ type AgentsWorkflowWorkflowSnapshot = {
2865
2877
  */
2866
2878
  author?: string;
2867
2879
  /**
2868
- * Optional environment template. Defaults to browser/anchor if not provided.
2880
+ * Monotonic optimistic-concurrency revision. Only meaningful for the editable head: supply it as baseRev on the next head patch; a stale baseRev is rejected with 409. Frozen snapshots never receive in-place patches.
2869
2881
  */
2870
- environmentTemplate?: AgentsWorkflowEnvironmentTemplate;
2882
+ rev: number;
2871
2883
  };
2872
2884
  type CommonBadRequestErrorBody = {
2873
2885
  code: 400;
package/dist/index.d.ts CHANGED
@@ -2796,9 +2796,13 @@ type AgentsWorkflowWorkflowRef = {
2796
2796
  */
2797
2797
  parentId?: CommonUuid;
2798
2798
  /**
2799
- * The published version number. Null if unpublished.
2799
+ * The monotonic per-agent snapshot version number.
2800
2800
  */
2801
- version?: number;
2801
+ version: number;
2802
+ /**
2803
+ * Whether this snapshot is the agent's published version (the API default). At most one snapshot per agent is published.
2804
+ */
2805
+ isPublished: boolean;
2802
2806
  /**
2803
2807
  * When this workflow was created
2804
2808
  */
@@ -2808,7 +2812,7 @@ type AgentsWorkflowWorkflowRef = {
2808
2812
  */
2809
2813
  author?: string;
2810
2814
  /**
2811
- * Whether this workflow can be deleted (unpublished with no executions)
2815
+ * Whether this snapshot can be deleted (not published and never executed)
2812
2816
  */
2813
2817
  isDeletable: boolean;
2814
2818
  };
@@ -2829,9 +2833,13 @@ type AgentsWorkflowWorkflowSnapshot = {
2829
2833
  */
2830
2834
  parentId?: CommonUuid;
2831
2835
  /**
2832
- * The published version number. Null if unpublished.
2836
+ * The monotonic per-agent snapshot version number.
2833
2837
  */
2834
- version?: number;
2838
+ version: number;
2839
+ /**
2840
+ * Whether this snapshot is the agent's published version (the API default). At most one snapshot per agent is published.
2841
+ */
2842
+ isPublished: boolean;
2835
2843
  /**
2836
2844
  * The rules/instructions for this workflow
2837
2845
  */
@@ -2844,20 +2852,24 @@ type AgentsWorkflowWorkflowSnapshot = {
2844
2852
  * The task description
2845
2853
  */
2846
2854
  task?: string;
2847
- /**
2848
- * Typed input definitions for workflow execution. Includes names referenced in prompts, which default to optional strings.
2849
- */
2850
- inputs: Array<AgentsWorkflowInput>;
2851
2855
  /**
2852
2856
  * The workflow graph
2853
2857
  */
2854
2858
  graph: AgentsGraphModelsAgentGraph;
2859
+ /**
2860
+ * Optional environment template. Defaults to browser/anchor if not provided.
2861
+ */
2862
+ environmentTemplate?: AgentsWorkflowEnvironmentTemplate;
2863
+ /**
2864
+ * Typed input definitions for workflow execution. Includes names referenced in prompts, which default to optional strings.
2865
+ */
2866
+ inputs: Array<AgentsWorkflowInput>;
2855
2867
  /**
2856
2868
  * The files stored on this workflow version. Empty when the workflow has no files.
2857
2869
  */
2858
2870
  files: Array<AgentsWorkflowWorkflowFile>;
2859
2871
  /**
2860
- * When this workflow was created
2872
+ * When this workflow was created. For the editable head this is restamped on each in-place edit, so it doubles as the last-edited time.
2861
2873
  */
2862
2874
  createdAt: string;
2863
2875
  /**
@@ -2865,9 +2877,9 @@ type AgentsWorkflowWorkflowSnapshot = {
2865
2877
  */
2866
2878
  author?: string;
2867
2879
  /**
2868
- * Optional environment template. Defaults to browser/anchor if not provided.
2880
+ * Monotonic optimistic-concurrency revision. Only meaningful for the editable head: supply it as baseRev on the next head patch; a stale baseRev is rejected with 409. Frozen snapshots never receive in-place patches.
2869
2881
  */
2870
- environmentTemplate?: AgentsWorkflowEnvironmentTemplate;
2882
+ rev: number;
2871
2883
  };
2872
2884
  type CommonBadRequestErrorBody = {
2873
2885
  code: 400;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.6.798",
3
+ "version": "1.6.799",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",