@lotics/cli 0.94.0 → 0.95.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.
@@ -74,6 +74,13 @@ export interface AppAgentRunSummary {
74
74
  triggered_by_member_id: string | null;
75
75
  started_at: string;
76
76
  completed_at: string | null;
77
+ /** Single-run GET only, while `status` is "awaiting_input": the pending ask
78
+ * derived from the transcript — what /continue answers. */
79
+ pending_interactive?: {
80
+ tool_call_id: string;
81
+ tool_name: string;
82
+ input: Record<string, unknown>;
83
+ };
77
84
  }
78
85
  export interface ToolInfo {
79
86
  name: string;
@@ -927,6 +934,21 @@ export declare class LoticsClient {
927
934
  listAgentRuns(app_id: string, session_id: string): Promise<{
928
935
  runs: AppAgentRunSummary[];
929
936
  }>;
937
+ /**
938
+ * A single run by id — the poll read a client follows after its stream drops
939
+ * (a parked `awaiting_input` row carries `pending_interactive` so the question
940
+ * survives reconnection). Mirrors GET /v1/apps/{app_id}/agent-runs/{run_id}.
941
+ */
942
+ getAgentRun(app_id: string, run_id: string): Promise<{
943
+ run: AppAgentRunSummary;
944
+ }>;
945
+ /**
946
+ * Request cancellation of an in-flight (or parked) run. Mirrors
947
+ * POST /v1/apps/{app_id}/agent-runs/{run_id}/cancel.
948
+ */
949
+ cancelAgentRun(app_id: string, run_id: string): Promise<{
950
+ ok: true;
951
+ }>;
930
952
  /**
931
953
  * Mint a presigned URL for uploading a file into an app. Mirrors
932
954
  * POST /v1/apps/{app_id}/files/upload-url.
@@ -661,6 +661,21 @@ export class LoticsClient {
661
661
  async listAgentRuns(app_id, session_id) {
662
662
  return this.request("GET", `/v1/apps/${encodeURIComponent(app_id)}/agent-runs?session_id=${encodeURIComponent(session_id)}`);
663
663
  }
664
+ /**
665
+ * A single run by id — the poll read a client follows after its stream drops
666
+ * (a parked `awaiting_input` row carries `pending_interactive` so the question
667
+ * survives reconnection). Mirrors GET /v1/apps/{app_id}/agent-runs/{run_id}.
668
+ */
669
+ async getAgentRun(app_id, run_id) {
670
+ return this.request("GET", `/v1/apps/${encodeURIComponent(app_id)}/agent-runs/${encodeURIComponent(run_id)}`);
671
+ }
672
+ /**
673
+ * Request cancellation of an in-flight (or parked) run. Mirrors
674
+ * POST /v1/apps/{app_id}/agent-runs/{run_id}/cancel.
675
+ */
676
+ async cancelAgentRun(app_id, run_id) {
677
+ return this.request("POST", `/v1/apps/${encodeURIComponent(app_id)}/agent-runs/${encodeURIComponent(run_id)}/cancel`);
678
+ }
664
679
  /**
665
680
  * Mint a presigned URL for uploading a file into an app. Mirrors
666
681
  * POST /v1/apps/{app_id}/files/upload-url.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.94.0",
3
+ "version": "0.95.0",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {