asteroid-odyssey 1.9.167 → 1.9.189

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
@@ -3014,7 +3014,7 @@ type AgentsWorkflowWorkflowFileTree = {
3014
3014
  variantKeys?: Array<string>;
3015
3015
  };
3016
3016
  /**
3017
- * A single file write in a files patch: upsert the file at `path`. Content is base64 uniformly — structural files decode as UTF-8, agent files are arbitrary bytes — so one write shape carries both.
3017
+ * A single file write in a files patch: upsert the file at `path`. Send the file as `content` or `contentBase64`, exactly one.
3018
3018
  */
3019
3019
  type AgentsWorkflowWorkflowFileWrite = {
3020
3020
  /**
@@ -3022,9 +3022,13 @@ type AgentsWorkflowWorkflowFileWrite = {
3022
3022
  */
3023
3023
  path: string;
3024
3024
  /**
3025
- * Base64-encoded file content.
3025
+ * The file as UTF-8 text, for text files such as settings.yaml, instructions.md, JSON schemas and scripts. Set this or contentBase64, not both.
3026
3026
  */
3027
- contentBase64: string;
3027
+ content?: string;
3028
+ /**
3029
+ * The file as base64-encoded bytes, for any file, binary included. Set this or content, not both.
3030
+ */
3031
+ contentBase64?: string;
3028
3032
  };
3029
3033
  /**
3030
3034
  * 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.
package/dist/index.d.ts CHANGED
@@ -3014,7 +3014,7 @@ type AgentsWorkflowWorkflowFileTree = {
3014
3014
  variantKeys?: Array<string>;
3015
3015
  };
3016
3016
  /**
3017
- * A single file write in a files patch: upsert the file at `path`. Content is base64 uniformly — structural files decode as UTF-8, agent files are arbitrary bytes — so one write shape carries both.
3017
+ * A single file write in a files patch: upsert the file at `path`. Send the file as `content` or `contentBase64`, exactly one.
3018
3018
  */
3019
3019
  type AgentsWorkflowWorkflowFileWrite = {
3020
3020
  /**
@@ -3022,9 +3022,13 @@ type AgentsWorkflowWorkflowFileWrite = {
3022
3022
  */
3023
3023
  path: string;
3024
3024
  /**
3025
- * Base64-encoded file content.
3025
+ * The file as UTF-8 text, for text files such as settings.yaml, instructions.md, JSON schemas and scripts. Set this or contentBase64, not both.
3026
3026
  */
3027
- contentBase64: string;
3027
+ content?: string;
3028
+ /**
3029
+ * The file as base64-encoded bytes, for any file, binary included. Set this or content, not both.
3030
+ */
3031
+ contentBase64?: string;
3028
3032
  };
3029
3033
  /**
3030
3034
  * 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.9.167",
3
+ "version": "1.9.189",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",