@amigo-ai/platform-sdk 0.97.0 → 0.98.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/api.md CHANGED
@@ -337,6 +337,7 @@ All workspace-scoped resources also expose `withOptions(options)`.
337
337
  - `getIntelligence`
338
338
  - `forkSession`
339
339
  - `scoreSession`
340
+ - `promoteSession`
340
341
  - `runs.list`
341
342
  - `runs.create`
342
343
  - `runs.get`
package/dist/index.cjs CHANGED
@@ -3291,6 +3291,20 @@ var SimulationsResource = class extends WorkspaceScopedResource {
3291
3291
  })
3292
3292
  );
3293
3293
  }
3294
+ /**
3295
+ * Promote a run-less (interactive playground) session into a coverage run so
3296
+ * it can be forked/scored. Creates a run, binds the session to it, and writes
3297
+ * the coverage session record. Idempotent: a session that already belongs to
3298
+ * a run returns that run with `already_bound: true`. No request body —
3299
+ * `session_id` travels in the path.
3300
+ */
3301
+ async promoteSession(sessionId) {
3302
+ return extractData(
3303
+ await this.client.POST("/v1/{workspace_id}/simulations/sessions/{session_id}/promote", {
3304
+ params: { path: { workspace_id: this.workspaceId, session_id: sessionId } }
3305
+ })
3306
+ );
3307
+ }
3294
3308
  /**
3295
3309
  * Multi-session simulation runs — orchestrate a batch of scenarios against
3296
3310
  * a service to compute coverage and surface regressions. Use this when you