asteroid-odyssey 1.7.516 → 1.7.523

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
@@ -3953,7 +3953,7 @@ type AgentsWorkflowExternalWorkflowSnapshot = {
3953
3953
  */
3954
3954
  author?: string;
3955
3955
  /**
3956
- * 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.
3956
+ * Monotonic optimistic-concurrency revision. Only meaningful for the editable head: supply it as baseRev on the next head patch. Agent-file-only patches overlay the current head if it has moved; structural-file patches are rejected with 409 when stale. Frozen snapshots never receive in-place patches.
3957
3957
  */
3958
3958
  rev: number;
3959
3959
  /**
@@ -4125,7 +4125,7 @@ type AgentsWorkflowWorkflowFileKind = "structural" | "agent_file";
4125
4125
  */
4126
4126
  type AgentsWorkflowWorkflowFileTree = {
4127
4127
  /**
4128
- * The revision the tree reflects. For the editable head, supply this as `baseRev` when patching; a stale value is rejected with 409.
4128
+ * The revision the tree reflects. For the editable head, supply this as `baseRev` when patching. Agent-file-only patches overlay the current head if it has moved; structural-file patches are rejected with 409 when stale.
4129
4129
  */
4130
4130
  rev: number;
4131
4131
  /**
@@ -4167,11 +4167,11 @@ type AgentsWorkflowWorkflowFileWrite = {
4167
4167
  contentBase64: string;
4168
4168
  };
4169
4169
  /**
4170
- * Request to patch the editable head's file representation. The server classifies each path: structural files re-derive the structured workflow, the agent's own files (memory, uploads, node scripts) go to their blob store — the client just writes files. Rev-guarded by `baseRev`: a stale value is rejected with 409.
4170
+ * Request to patch the editable head's file representation. The server classifies each path: structural files re-derive the structured workflow, the agent's own files (memory, uploads, node scripts) go to their blob store. Agent-file writes overlay the head resolved under the edit lock, so a stale baseRev is not rejected. Structural-file writes still require a matching baseRev; a stale value is rejected with 409.
4171
4171
  */
4172
4172
  type AgentsWorkflowWorkflowFilesPatchRequest = {
4173
4173
  /**
4174
- * The revision this edit is based on. The patch only applies when it still matches the stored head revision; otherwise it is rejected with 409.
4174
+ * The revision this edit is based on. Agent-file-only patches overlay the current head even when this is stale. A structural-file patch is rejected with 409 when it does not match the stored head revision.
4175
4175
  */
4176
4176
  baseRev: number;
4177
4177
  /**
@@ -7001,7 +7001,7 @@ declare const agentWorkflowHeadGetFiles: <ThrowOnError extends boolean = false>(
7001
7001
  /**
7002
7002
  * Patch workflow head files
7003
7003
  *
7004
- * Patch the editable head's file representation in place: apply file writes/deletes, re-derive the structured workflow, and persist it. Structural files re-derive the graph; agent files go to the blob store. Guarded by baseRev for optimistic concurrency. When the head is frozen (published or executed) the edit forks a fresh version behind the scenes.
7004
+ * Patch the editable head's file representation in place: apply file writes/deletes, re-derive the structured workflow, and persist it. Structural files re-derive the graph; agent files go to the blob store. Agent-file writes overlay the current head even when baseRev is stale. Structural-file writes still require a matching baseRev. When the head is frozen (published or executed) the edit forks a fresh version behind the scenes.
7005
7005
  */
7006
7006
  declare const agentWorkflowHeadPatchFiles: <ThrowOnError extends boolean = false>(options: Options<AgentWorkflowHeadPatchFilesData, ThrowOnError>) => RequestResult<AgentWorkflowHeadPatchFilesResponses, AgentWorkflowHeadPatchFilesErrors, ThrowOnError>;
7007
7007
  /**
package/dist/index.d.ts CHANGED
@@ -3953,7 +3953,7 @@ type AgentsWorkflowExternalWorkflowSnapshot = {
3953
3953
  */
3954
3954
  author?: string;
3955
3955
  /**
3956
- * 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.
3956
+ * Monotonic optimistic-concurrency revision. Only meaningful for the editable head: supply it as baseRev on the next head patch. Agent-file-only patches overlay the current head if it has moved; structural-file patches are rejected with 409 when stale. Frozen snapshots never receive in-place patches.
3957
3957
  */
3958
3958
  rev: number;
3959
3959
  /**
@@ -4125,7 +4125,7 @@ type AgentsWorkflowWorkflowFileKind = "structural" | "agent_file";
4125
4125
  */
4126
4126
  type AgentsWorkflowWorkflowFileTree = {
4127
4127
  /**
4128
- * The revision the tree reflects. For the editable head, supply this as `baseRev` when patching; a stale value is rejected with 409.
4128
+ * The revision the tree reflects. For the editable head, supply this as `baseRev` when patching. Agent-file-only patches overlay the current head if it has moved; structural-file patches are rejected with 409 when stale.
4129
4129
  */
4130
4130
  rev: number;
4131
4131
  /**
@@ -4167,11 +4167,11 @@ type AgentsWorkflowWorkflowFileWrite = {
4167
4167
  contentBase64: string;
4168
4168
  };
4169
4169
  /**
4170
- * Request to patch the editable head's file representation. The server classifies each path: structural files re-derive the structured workflow, the agent's own files (memory, uploads, node scripts) go to their blob store — the client just writes files. Rev-guarded by `baseRev`: a stale value is rejected with 409.
4170
+ * Request to patch the editable head's file representation. The server classifies each path: structural files re-derive the structured workflow, the agent's own files (memory, uploads, node scripts) go to their blob store. Agent-file writes overlay the head resolved under the edit lock, so a stale baseRev is not rejected. Structural-file writes still require a matching baseRev; a stale value is rejected with 409.
4171
4171
  */
4172
4172
  type AgentsWorkflowWorkflowFilesPatchRequest = {
4173
4173
  /**
4174
- * The revision this edit is based on. The patch only applies when it still matches the stored head revision; otherwise it is rejected with 409.
4174
+ * The revision this edit is based on. Agent-file-only patches overlay the current head even when this is stale. A structural-file patch is rejected with 409 when it does not match the stored head revision.
4175
4175
  */
4176
4176
  baseRev: number;
4177
4177
  /**
@@ -7001,7 +7001,7 @@ declare const agentWorkflowHeadGetFiles: <ThrowOnError extends boolean = false>(
7001
7001
  /**
7002
7002
  * Patch workflow head files
7003
7003
  *
7004
- * Patch the editable head's file representation in place: apply file writes/deletes, re-derive the structured workflow, and persist it. Structural files re-derive the graph; agent files go to the blob store. Guarded by baseRev for optimistic concurrency. When the head is frozen (published or executed) the edit forks a fresh version behind the scenes.
7004
+ * Patch the editable head's file representation in place: apply file writes/deletes, re-derive the structured workflow, and persist it. Structural files re-derive the graph; agent files go to the blob store. Agent-file writes overlay the current head even when baseRev is stale. Structural-file writes still require a matching baseRev. When the head is frozen (published or executed) the edit forks a fresh version behind the scenes.
7005
7005
  */
7006
7006
  declare const agentWorkflowHeadPatchFiles: <ThrowOnError extends boolean = false>(options: Options<AgentWorkflowHeadPatchFilesData, ThrowOnError>) => RequestResult<AgentWorkflowHeadPatchFilesResponses, AgentWorkflowHeadPatchFilesErrors, ThrowOnError>;
7007
7007
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.7.516",
3
+ "version": "1.7.523",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",