@factory/droid-sdk 0.10.0 → 0.11.0

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/README.md CHANGED
@@ -17,6 +17,7 @@ The SDK requires Node.js 18 or later.
17
17
  | ------------------------- | --------------- | ----------------------------------------------------------------------------------------- |
18
18
  | `@factory/droid-sdk/node` | Node | Start Droid subprocesses, run prompts, manage local sessions, and define SDK MCP tools |
19
19
  | `@factory/droid-sdk` | Browser or Node | Connect to an existing Droid daemon and use browser-safe schemas, types, and REST helpers |
20
+ | `@factory/droid-sdk/api` | Browser or Node | Call any Factory REST API operation through a client generated from the public API spec |
20
21
 
21
22
  By default, Node session APIs start the `droid` CLI from `PATH` and read
22
23
  `FACTORY_API_KEY`. A custom executable, API key, or transport can be supplied
@@ -74,6 +75,36 @@ Runnable examples are available under [`examples/node`](./examples/node) and
74
75
  `JsonRpcMessage` objects. Put codecs inside transports that cross a serialized
75
76
  boundary. External wire formats are unchanged.
76
77
 
78
+ ### Shared display messages
79
+
80
+ - `filterMessagesForUI` no longer copies messages. A message with nothing to
81
+ hide comes back as the same object, and a stripped message as a projection
82
+ that later calls return again. Treat the results as read-only: mutating one
83
+ changes your input or what later calls return. Replace a message instead of
84
+ editing it.
85
+
86
+ ### Open status values (0.11.0)
87
+
88
+ - `RemoteSession['status']`, `MachineTemplateBuildStatus['status']`, and
89
+ `MachineTemplateBuildStatus['failureReason']` now accept values a newer
90
+ server adds instead of failing the response. An exhaustive `switch` over
91
+ one of them needs a branch for an unknown value.
92
+ - Those fields of `RemoteSessionSchema` and
93
+ `MachineTemplateBuildStatusSchema` are unions now, not enums: `.enum` on
94
+ them is gone, and `.options` lists the union's member schemas rather than
95
+ the known values.
96
+
97
+ ### Machine template list (0.11.0)
98
+
99
+ - `listMachineTemplates` no longer takes `limit` or `cursor`. The API
100
+ returns every template in one response, with `pagination.hasMore` always
101
+ `false` and `pagination.nextCursor` always `null`.
102
+ - `ListMachineTemplatesOptions` drops `limit` and `cursor` but stays an
103
+ interface over `FactoryApiOptions`, so declaration merging into it keeps
104
+ compiling. An options object literal that passes either field fails
105
+ typecheck; a variable typed with extra properties compiles, and the helper
106
+ does not send them.
107
+
77
108
  The [canonical SDK guide](https://docs.factory.ai/sdk/typescript) remains the
78
109
  full API reference.
79
110