@mangrove-ai/sdk 1.1.0 → 1.2.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
@@ -2,17 +2,20 @@
2
2
 
3
3
  Server-side `@mangrove-ai/sdk` for Node.js 20+, imported as
4
4
  `import { MangroveAI } from '@mangrove-ai/sdk'`. This is the MangroveAI API
5
- client in version 1.x. The separate Markets client moves to `@mangrove-ai/markets`;
5
+ client in version 1.x. The separate Markets client is published as `@mangrove-ai/markets`;
6
6
  Python MangroveAI uses the PyPI distribution `mangroveai` and import `mangrove_ai`.
7
7
 
8
8
  **Major product migration:** `@mangrove-ai/sdk` 0.1.2, 0.2.0 and 0.3.0 are
9
9
  historical Markets packages. Version 1.0.0 is the MangroveAI SDK and does not
10
10
  provide their `MangroveClient` API. Markets applications must install
11
- `@mangrove-ai/markets` 0.4.0 after that release is verified, or use its reviewed
12
- archive. Read the [migration notice](https://github.com/MangroveTechnologies/MangroveAI-SDK/blob/main/docs/typescript-package-migration.md)
11
+ published `@mangrove-ai/markets` 0.4.0. Read the [migration notice](https://github.com/MangroveTechnologies/MangroveAI-SDK/blob/main/docs/typescript-package-migration.md)
13
12
  before changing a pin. The old `@mangrove-ai/client` candidate was never published
14
13
  and will not become a registry alias.
15
14
 
15
+ Published checkpoint: November 2, 2026: AI 1.1.0 and Markets 0.4.0 are available.
16
+ This source prepares AI 1.2.0; its local-deployment helper requires backend 7.11.0 or later
17
+ and actual capability serving acceptance, not merely an installed package.
18
+
16
19
  Check the [dated repository release status](https://github.com/MangroveTechnologies/MangroveAI-SDK/blob/main/docs/issue-66-release-handoff.md)
17
20
  for registry availability and verified versions. Source, a local package and a
18
21
  published npm release are separate states. For evaluation before a registry
@@ -28,7 +31,7 @@ is written there, with a name based on that revision's `package.json` version.
28
31
  Then install that reviewed archive in the consuming project, using its actual path:
29
32
 
30
33
  ```sh
31
- npm install /path/to/reviewed/mangrove-ai-sdk-1.1.0.tgz
34
+ npm install /path/to/reviewed/mangrove-ai-sdk-1.2.0.tgz
32
35
  ```
33
36
 
34
37
  When installing a registry release, verify its exact version and package identity
@@ -61,14 +64,31 @@ try {
61
64
  This sends one Bearer-authenticated usage read. It does not create a wallet,
62
65
  launch compute, connect a broker, invoke an MCP tool or send a payment.
63
66
 
67
+ ## Local deployment snapshot (1.2.0 candidate)
68
+
69
+ ```typescript
70
+ const snapshot = await client.strategies.localDeployment(strategyId, {
71
+ assetClass: 'crypto',
72
+ timeoutMs: 15_000,
73
+ });
74
+ console.log({ ready: snapshot.activation_ready, blocker: snapshot.activation_blocker });
75
+ ```
76
+
77
+ This makes one authenticated, billable read of the versioned server snapshot.
78
+ Pass `crypto` or `equity` explicitly. The helper preserves the service's decision,
79
+ errors and full snapshot; it does not activate a runner or implement risk policy.
80
+ A server conflict remains an `APIError` with its HTTP status and diagnostics.
81
+ The generated generic operation supports the same path/query/response contract.
82
+ No automatic retry or payment is added.
83
+
64
84
  ## Supported surface
65
85
 
66
- The named helpers are `users`, `signals`, `strategyWorkflow` and `backtesting`.
86
+ The named helpers are `users`, `signals`, `strategies`, `strategyWorkflow` and `backtesting`.
67
87
  Other declared REST operations use `client.request(operation, options)`, with
68
88
  generated path, parameter, body and response types. This is not Python helper
69
- parity. The current classification has 264 core/Oracle proxy method/path keys,
70
- including 10 v2 operations: 261 JSON/no-content, one separate redirect flow and
71
- two streaming/non-JSON operations. Counts describe pinned declarations, not live
89
+ parity. The current classification has 268 core/Oracle proxy method/path keys,
90
+ including 10 v2 operations: 264 JSON/no-content, one separate redirect flow and
91
+ three streaming/non-JSON operations. Counts describe pinned declarations, not live
72
92
  endpoint acceptance. The JSON transport does not perform the redirect or consume
73
93
  those streams. Operation keys include the HTTP method and exact versioned path:
74
94
 
@@ -218,3 +238,5 @@ For a new unpublished version, the selected source must still be fresh `main`
218
238
  immediately before publishing. An older main ancestor is accepted only to finish
219
239
  an already published artifact whose exact source and bytes were verified. It
220
240
  cannot start a new publication or move npm `latest` back to stale source.
241
+
242
+ The canonical inventory excludes one deprecated SDK compatibility alias, `POST /api/v1/backtests/`, retained from TypeScript1.1.0. It inherits the canonical backtest contract while preserving its original HTTP path; new callers should use `POST /api/v1/backtests`.