@getmodus/sdk 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Changelog
2
2
 
3
- **Current npm release:** [`0.2.1`](https://www.npmjs.com/package/@getmodus/sdk/v/0.2.1).
3
+ **Current npm release:** [`0.2.2`](https://www.npmjs.com/package/@getmodus/sdk/v/0.2.2).
4
4
 
5
5
 
6
+ ## [Unreleased]
7
+
8
+ ## [0.2.2] — 2026-07-20
9
+
6
10
  ## [0.2.1] — 2026-07-20
7
11
 
8
12
  ### Changed
@@ -33,8 +37,6 @@
33
37
 
34
38
  - Legacy **`client.skills` / `client.agents`** and **`mgmt.skills` / `mgmt.agents`** accessors — use `scopes` / `workflows`.
35
39
 
36
- ## [Unreleased]
37
-
38
40
  ## [0.1.0] — 2026-07-20
39
41
 
40
42
  ### Added
package/README.md CHANGED
@@ -161,6 +161,10 @@ import { ModusManagement } from '@getmodus/sdk/management'
161
161
  const mgmt = new ModusManagement() // reads MODUS_API_KEY
162
162
  const scope = await mgmt.scopes.create({ name: 'Analyst', model: 'claude-sonnet-5' })
163
163
  await mgmt.scopes.deploy(scope.id)
164
+
165
+ // Create returns contextItemId (also available as .uid); list/get use .uid
166
+ const note = await mgmt.context.createNote('Title', 'Body')
167
+ console.log(note.contextItemId, note.uid) // same UUID
164
168
  ```
165
169
 
166
170
  Requires a token with write access to scopes and workflows (same as the Modus UI).