@agent-os-sdk/client 0.1.1 → 0.2.1
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/dist/client/AgentOsClient.d.ts +57 -38
- package/dist/client/AgentOsClient.d.ts.map +1 -1
- package/dist/client/AgentOsClient.js +192 -37
- package/dist/client/auth.d.ts +102 -0
- package/dist/client/auth.d.ts.map +1 -0
- package/dist/client/auth.js +44 -0
- package/dist/generated/openapi.d.ts +1009 -204
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/modules/approvals.d.ts +64 -0
- package/dist/modules/approvals.d.ts.map +1 -0
- package/dist/modules/approvals.js +54 -0
- package/dist/modules/artifacts.d.ts +49 -0
- package/dist/modules/artifacts.d.ts.map +1 -0
- package/dist/modules/artifacts.js +50 -0
- package/dist/modules/budgets.d.ts +81 -0
- package/dist/modules/budgets.d.ts.map +1 -0
- package/dist/modules/budgets.js +50 -0
- package/dist/modules/builder.d.ts +23 -3
- package/dist/modules/builder.d.ts.map +1 -1
- package/dist/modules/builder.js +28 -6
- package/dist/modules/capabilities.d.ts +57 -0
- package/dist/modules/capabilities.d.ts.map +1 -0
- package/dist/modules/capabilities.js +50 -0
- package/dist/modules/deployments.d.ts +67 -0
- package/dist/modules/deployments.d.ts.map +1 -0
- package/dist/modules/deployments.js +58 -0
- package/dist/modules/flows.d.ts +84 -0
- package/dist/modules/flows.d.ts.map +1 -0
- package/dist/modules/flows.js +66 -0
- package/dist/modules/handoff.d.ts +91 -0
- package/dist/modules/handoff.d.ts.map +1 -0
- package/dist/modules/handoff.js +65 -0
- package/dist/modules/incidents.d.ts +72 -0
- package/dist/modules/incidents.d.ts.map +1 -0
- package/dist/modules/incidents.js +54 -0
- package/dist/modules/members.d.ts +5 -0
- package/dist/modules/members.d.ts.map +1 -1
- package/dist/modules/members.js +10 -0
- package/dist/modules/policies.d.ts +76 -0
- package/dist/modules/policies.d.ts.map +1 -0
- package/dist/modules/policies.js +46 -0
- package/dist/modules/runs.d.ts +89 -3
- package/dist/modules/runs.d.ts.map +1 -1
- package/dist/modules/runs.js +75 -4
- package/dist/modules/tenants.d.ts +4 -0
- package/dist/modules/tenants.d.ts.map +1 -1
- package/dist/modules/tenants.js +8 -0
- package/package.json +49 -48
- package/src/client/AgentOsClient.ts +217 -61
- package/src/client/auth.ts +148 -0
- package/src/generated/openapi.ts +1009 -204
- package/src/generated/swagger.json +947 -700
- package/src/index.ts +25 -2
- package/src/modules/approvals.ts +109 -0
- package/src/modules/artifacts.ts +83 -0
- package/src/modules/budgets.ts +120 -0
- package/src/modules/builder.ts +26 -4
- package/src/modules/capabilities.ts +95 -0
- package/src/modules/deployments.ts +111 -0
- package/src/modules/flows.ts +133 -0
- package/src/modules/handoff.ts +140 -0
- package/src/modules/incidents.ts +113 -0
- package/src/modules/members.ts +11 -0
- package/src/modules/policies.ts +112 -0
- package/src/modules/runs.ts +123 -5
- package/src/modules/tenants.ts +9 -0
package/dist/modules/members.js
CHANGED
|
@@ -74,4 +74,14 @@ export class MembersModule {
|
|
|
74
74
|
headers: this.headers(),
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Ensure membership exists (auto-create on first access).
|
|
79
|
+
* This is used by the frontend for onboarding.
|
|
80
|
+
*/
|
|
81
|
+
async ensure(tenantId) {
|
|
82
|
+
return this.client.POST("/v1/api/memberships/ensure", {
|
|
83
|
+
body: { tenant_id: tenantId ?? null },
|
|
84
|
+
headers: this.headers(),
|
|
85
|
+
});
|
|
86
|
+
}
|
|
77
87
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Policies Module - Governance & Compliance
|
|
3
|
+
*
|
|
4
|
+
* NOT IMPLEMENTED - Backend endpoint not available.
|
|
5
|
+
* All methods return 501 NotImplemented.
|
|
6
|
+
*/
|
|
7
|
+
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
8
|
+
export type PolicyScope = "agent" | "workspace" | "tenant" | "global";
|
|
9
|
+
export type PolicyEnforcement = "hard" | "soft" | "audit_only";
|
|
10
|
+
export interface PolicyRule {
|
|
11
|
+
id: string;
|
|
12
|
+
type: "allow" | "deny" | "require_approval" | "log";
|
|
13
|
+
condition: string;
|
|
14
|
+
action?: string;
|
|
15
|
+
message?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface Policy {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
scope: PolicyScope;
|
|
22
|
+
scope_id?: string;
|
|
23
|
+
enforcement: PolicyEnforcement;
|
|
24
|
+
rules: PolicyRule[];
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
priority: number;
|
|
27
|
+
created_at: string;
|
|
28
|
+
updated_at: string;
|
|
29
|
+
}
|
|
30
|
+
export interface PolicyEvaluation {
|
|
31
|
+
policy_id: string;
|
|
32
|
+
policy_name: string;
|
|
33
|
+
passed: boolean;
|
|
34
|
+
violated_rules: PolicyRule[];
|
|
35
|
+
audit_log_id?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface PolicyEvaluationResult {
|
|
38
|
+
allowed: boolean;
|
|
39
|
+
evaluations: PolicyEvaluation[];
|
|
40
|
+
requires_approval: boolean;
|
|
41
|
+
blocking_policies: string[];
|
|
42
|
+
}
|
|
43
|
+
export declare class PoliciesModule {
|
|
44
|
+
private client;
|
|
45
|
+
private headers;
|
|
46
|
+
constructor(client: RawClient, headers: () => Record<string, string>);
|
|
47
|
+
/** @returns 501 Not Implemented */
|
|
48
|
+
list(params?: {
|
|
49
|
+
scope?: PolicyScope;
|
|
50
|
+
scope_id?: string;
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
limit?: number;
|
|
53
|
+
offset?: number;
|
|
54
|
+
}): Promise<APIResponse<{
|
|
55
|
+
items: Policy[];
|
|
56
|
+
total: number;
|
|
57
|
+
}>>;
|
|
58
|
+
/** @returns 501 Not Implemented */
|
|
59
|
+
get(policyId: string): Promise<APIResponse<Policy>>;
|
|
60
|
+
/** @returns 501 Not Implemented */
|
|
61
|
+
create(body: {
|
|
62
|
+
name: string;
|
|
63
|
+
description?: string;
|
|
64
|
+
scope: PolicyScope;
|
|
65
|
+
scope_id?: string;
|
|
66
|
+
enforcement: PolicyEnforcement;
|
|
67
|
+
rules: PolicyRule[];
|
|
68
|
+
}): Promise<APIResponse<Policy>>;
|
|
69
|
+
/** @returns 501 Not Implemented */
|
|
70
|
+
evaluate(context: {
|
|
71
|
+
agent_id: string;
|
|
72
|
+
action: string;
|
|
73
|
+
payload?: Record<string, unknown>;
|
|
74
|
+
}): Promise<APIResponse<PolicyEvaluationResult>>;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=policies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policies.d.ts","sourceRoot":"","sources":["../../src/modules/policies.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/D,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;AAE/D,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,kBAAkB,GAAG,KAAK,CAAC;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,WAAW,CAA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IAC7B,MAAM,CAAC,IAAI,EAAE;QACf,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,WAAW,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,iBAAiB,CAAC;QAC/B,KAAK,EAAE,UAAU,EAAE,CAAC;KACvB,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAIhC,mCAAmC;IAC7B,QAAQ,CAAC,OAAO,EAAE;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrC,GAAG,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;CAGnD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Policies Module - Governance & Compliance
|
|
3
|
+
*
|
|
4
|
+
* NOT IMPLEMENTED - Backend endpoint not available.
|
|
5
|
+
* All methods return 501 NotImplemented.
|
|
6
|
+
*/
|
|
7
|
+
// ============================================================================
|
|
8
|
+
// Helper for 501 responses
|
|
9
|
+
// ============================================================================
|
|
10
|
+
function notImplemented(method) {
|
|
11
|
+
return {
|
|
12
|
+
data: undefined,
|
|
13
|
+
error: {
|
|
14
|
+
code: "NOT_IMPLEMENTED",
|
|
15
|
+
message: `PoliciesModule.${method}() is not implemented. Backend endpoint not available.`,
|
|
16
|
+
},
|
|
17
|
+
response: new Response(null, { status: 501, statusText: "Not Implemented" }),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
// ============================================================================
|
|
21
|
+
// Module
|
|
22
|
+
// ============================================================================
|
|
23
|
+
export class PoliciesModule {
|
|
24
|
+
client;
|
|
25
|
+
headers;
|
|
26
|
+
constructor(client, headers) {
|
|
27
|
+
this.client = client;
|
|
28
|
+
this.headers = headers;
|
|
29
|
+
}
|
|
30
|
+
/** @returns 501 Not Implemented */
|
|
31
|
+
async list(params) {
|
|
32
|
+
return notImplemented("list");
|
|
33
|
+
}
|
|
34
|
+
/** @returns 501 Not Implemented */
|
|
35
|
+
async get(policyId) {
|
|
36
|
+
return notImplemented("get");
|
|
37
|
+
}
|
|
38
|
+
/** @returns 501 Not Implemented */
|
|
39
|
+
async create(body) {
|
|
40
|
+
return notImplemented("create");
|
|
41
|
+
}
|
|
42
|
+
/** @returns 501 Not Implemented */
|
|
43
|
+
async evaluate(context) {
|
|
44
|
+
return notImplemented("evaluate");
|
|
45
|
+
}
|
|
46
|
+
}
|
package/dist/modules/runs.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ type CancelRunResponse = components["schemas"]["CancelRunResponse"];
|
|
|
15
15
|
type CheckpointListResponse = components["schemas"]["CheckpointListResponse"];
|
|
16
16
|
export interface Run {
|
|
17
17
|
run_id: string;
|
|
18
|
-
status:
|
|
18
|
+
status: RunStatus;
|
|
19
19
|
thread_id?: string;
|
|
20
20
|
agent_id: string;
|
|
21
21
|
agent_version_id?: string;
|
|
@@ -29,7 +29,13 @@ export interface Run {
|
|
|
29
29
|
completed_at?: string;
|
|
30
30
|
duration_ms?: number;
|
|
31
31
|
reused?: boolean;
|
|
32
|
+
human_prompt?: string;
|
|
33
|
+
checkpoint_id?: string;
|
|
34
|
+
replayed_from_run_id?: string;
|
|
35
|
+
replayed_from_checkpoint_id?: string;
|
|
36
|
+
replay_mode?: "best_effort" | "strict";
|
|
32
37
|
}
|
|
38
|
+
export type RunStatus = "pending" | "queued" | "running" | "completed" | "failed" | "cancelled" | "waiting_for_human" | "resumed";
|
|
33
39
|
export interface RunEvent {
|
|
34
40
|
id: string;
|
|
35
41
|
run_id: string;
|
|
@@ -45,6 +51,22 @@ export interface CreateRunResponse {
|
|
|
45
51
|
}
|
|
46
52
|
export type RunListResponse = PaginatedResponse<Run>;
|
|
47
53
|
export type RunEventsResponse = PaginatedResponse<RunEvent>;
|
|
54
|
+
/** Wave 2.3: Seq-based polling response for execution events */
|
|
55
|
+
export interface RunEventsPollResponse {
|
|
56
|
+
events: RunEventDto[];
|
|
57
|
+
latest_seq: number;
|
|
58
|
+
next_after_seq: number;
|
|
59
|
+
has_more: boolean;
|
|
60
|
+
}
|
|
61
|
+
/** Single event from seq-based polling */
|
|
62
|
+
export interface RunEventDto {
|
|
63
|
+
id: string;
|
|
64
|
+
seq: number;
|
|
65
|
+
type: string;
|
|
66
|
+
timestamp: string;
|
|
67
|
+
attempt_id: string;
|
|
68
|
+
payload: Record<string, unknown> | null;
|
|
69
|
+
}
|
|
48
70
|
export declare class RunsModule {
|
|
49
71
|
private client;
|
|
50
72
|
private baseUrl;
|
|
@@ -111,16 +133,55 @@ export declare class RunsModule {
|
|
|
111
133
|
cancel(runId: string, reason?: string): Promise<APIResponse<CancelRunResponse>>;
|
|
112
134
|
/**
|
|
113
135
|
* Resume a run waiting for human input (HITL).
|
|
136
|
+
* After the run reaches status 'waiting_for_human', use this to provide
|
|
137
|
+
* the human response and continue execution.
|
|
138
|
+
*
|
|
139
|
+
* @param runId - The run ID to resume
|
|
140
|
+
* @param body - The human input to provide
|
|
141
|
+
* @returns Updated run (status will change to 'resumed' then 'queued')
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```ts
|
|
145
|
+
* // List runs waiting for human input
|
|
146
|
+
* const waiting = await client.runs.list({ status: 'waiting_for_human' })
|
|
147
|
+
*
|
|
148
|
+
* // Get the prompt
|
|
149
|
+
* const run = await client.runs.get(runId)
|
|
150
|
+
* console.log(run.human_prompt) // "Deseja continuar com a compra?"
|
|
151
|
+
*
|
|
152
|
+
* // Respond
|
|
153
|
+
* await client.runs.resume(runId, { input: { answer: "sim" } })
|
|
154
|
+
* ```
|
|
114
155
|
*/
|
|
115
|
-
resume(runId: string,
|
|
156
|
+
resume(runId: string, body: {
|
|
157
|
+
input: unknown;
|
|
158
|
+
}): Promise<APIResponse<Run>>;
|
|
116
159
|
/**
|
|
117
160
|
* Rerun from start (stateless).
|
|
118
161
|
*/
|
|
119
162
|
rerun(runId: string): Promise<APIResponse<CreateRunResponse>>;
|
|
120
163
|
/**
|
|
121
164
|
* Replay from checkpoint (stateful).
|
|
165
|
+
* Creates a NEW run that starts from the specified checkpoint.
|
|
166
|
+
*
|
|
167
|
+
* @param runId - The original run to replay from
|
|
168
|
+
* @param checkpointId - The checkpoint ID to start from
|
|
169
|
+
* @param options - Replay options
|
|
170
|
+
* @returns New run created from checkpoint
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```ts
|
|
174
|
+
* const checkpoints = await client.runs.getCheckpoints(runId)
|
|
175
|
+
* const newRun = await client.runs.replay(runId, checkpoints[2].id, {
|
|
176
|
+
* mode: 'best_effort',
|
|
177
|
+
* reason: 'Debugging step 3'
|
|
178
|
+
* })
|
|
179
|
+
* ```
|
|
122
180
|
*/
|
|
123
|
-
replay(runId: string, checkpointId?: string,
|
|
181
|
+
replay(runId: string, checkpointId?: string, options?: {
|
|
182
|
+
mode?: "best_effort" | "strict";
|
|
183
|
+
reason?: string;
|
|
184
|
+
}): Promise<APIResponse<CreateRunResponse>>;
|
|
124
185
|
/**
|
|
125
186
|
* Get run events for timeline (paged, no SSE).
|
|
126
187
|
* @example
|
|
@@ -131,6 +192,31 @@ export declare class RunsModule {
|
|
|
131
192
|
getEvents(runId: string, params?: PaginationParams): Promise<APIResponse<RunEventsResponse>>;
|
|
132
193
|
/** Alias: runs.events() -> runs.getEvents() */
|
|
133
194
|
events: (runId: string, params?: PaginationParams) => Promise<APIResponse<RunEventsResponse>>;
|
|
195
|
+
/**
|
|
196
|
+
* Wave 2.3: Seq-based event polling for execution trace.
|
|
197
|
+
* Use this for incremental polling with reconnection support.
|
|
198
|
+
*
|
|
199
|
+
* @param runId - Run ID to poll events for
|
|
200
|
+
* @param params - Polling options
|
|
201
|
+
* @returns Events with seq cursors for pagination
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```ts
|
|
205
|
+
* let afterSeq = 0;
|
|
206
|
+
* while (run.status === 'running') {
|
|
207
|
+
* const { data } = await client.runs.pollEvents(runId, { afterSeq });
|
|
208
|
+
* for (const event of data.events) {
|
|
209
|
+
* console.log(event.type, event.payload);
|
|
210
|
+
* }
|
|
211
|
+
* afterSeq = data.next_after_seq;
|
|
212
|
+
* await sleep(1000);
|
|
213
|
+
* }
|
|
214
|
+
* ```
|
|
215
|
+
*/
|
|
216
|
+
pollEvents(runId: string, params?: {
|
|
217
|
+
afterSeq?: number;
|
|
218
|
+
limit?: number;
|
|
219
|
+
}): Promise<APIResponse<RunEventsPollResponse>>;
|
|
134
220
|
/**
|
|
135
221
|
* Get checkpoints for a run.
|
|
136
222
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/modules/runs.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAa,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGlG,KAAK,eAAe,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC,CAAC;AAChE,KAAK,gBAAgB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAClE,KAAK,iBAAiB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACpE,KAAK,sBAAsB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC,CAAC;AAG9E,MAAM,WAAW,GAAG;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":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;;OAEG;IACG,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC;IAOjF,yDAAyD;IACzD,WAAW,GAAI,OAAO,MAAM;;;sBA6D+ukM,qBAAsB;QA7DrukM;IAI5D;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IAQrF;;;;;;;;;;;OAWG;IACI,eAAe,CAClB,IAAI,EAAE;QACF,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE;YAAE,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE,GAAG;YAAE,UAAU,EAAE,IAAI,CAAA;SAAE,CAAC;QACvD,KAAK,CAAC,EAAE,OAAO,CAAC;KACnB,EACD,OAAO,CAAC,EAAE,UAAU,GACrB,cAAc,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IAU3C;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;CAOtF"}
|
package/dist/modules/runs.js
CHANGED
|
@@ -82,11 +82,30 @@ export class RunsModule {
|
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Resume a run waiting for human input (HITL).
|
|
85
|
+
* After the run reaches status 'waiting_for_human', use this to provide
|
|
86
|
+
* the human response and continue execution.
|
|
87
|
+
*
|
|
88
|
+
* @param runId - The run ID to resume
|
|
89
|
+
* @param body - The human input to provide
|
|
90
|
+
* @returns Updated run (status will change to 'resumed' then 'queued')
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* // List runs waiting for human input
|
|
95
|
+
* const waiting = await client.runs.list({ status: 'waiting_for_human' })
|
|
96
|
+
*
|
|
97
|
+
* // Get the prompt
|
|
98
|
+
* const run = await client.runs.get(runId)
|
|
99
|
+
* console.log(run.human_prompt) // "Deseja continuar com a compra?"
|
|
100
|
+
*
|
|
101
|
+
* // Respond
|
|
102
|
+
* await client.runs.resume(runId, { input: { answer: "sim" } })
|
|
103
|
+
* ```
|
|
85
104
|
*/
|
|
86
|
-
async resume(runId,
|
|
105
|
+
async resume(runId, body) {
|
|
87
106
|
return this.client.POST("/v1/api/runs/{runId}/resume", {
|
|
88
107
|
params: { path: { runId } },
|
|
89
|
-
body
|
|
108
|
+
body,
|
|
90
109
|
headers: this.headers(),
|
|
91
110
|
});
|
|
92
111
|
}
|
|
@@ -101,11 +120,30 @@ export class RunsModule {
|
|
|
101
120
|
}
|
|
102
121
|
/**
|
|
103
122
|
* Replay from checkpoint (stateful).
|
|
123
|
+
* Creates a NEW run that starts from the specified checkpoint.
|
|
124
|
+
*
|
|
125
|
+
* @param runId - The original run to replay from
|
|
126
|
+
* @param checkpointId - The checkpoint ID to start from
|
|
127
|
+
* @param options - Replay options
|
|
128
|
+
* @returns New run created from checkpoint
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```ts
|
|
132
|
+
* const checkpoints = await client.runs.getCheckpoints(runId)
|
|
133
|
+
* const newRun = await client.runs.replay(runId, checkpoints[2].id, {
|
|
134
|
+
* mode: 'best_effort',
|
|
135
|
+
* reason: 'Debugging step 3'
|
|
136
|
+
* })
|
|
137
|
+
* ```
|
|
104
138
|
*/
|
|
105
|
-
async replay(runId, checkpointId,
|
|
139
|
+
async replay(runId, checkpointId, options) {
|
|
106
140
|
return this.client.POST("/v1/api/runs/{runId}/replay", {
|
|
107
141
|
params: { path: { runId } },
|
|
108
|
-
body: {
|
|
142
|
+
body: {
|
|
143
|
+
checkpoint_id: checkpointId,
|
|
144
|
+
mode: options?.mode,
|
|
145
|
+
reason: options?.reason
|
|
146
|
+
},
|
|
109
147
|
headers: this.headers(),
|
|
110
148
|
});
|
|
111
149
|
}
|
|
@@ -125,6 +163,39 @@ export class RunsModule {
|
|
|
125
163
|
}
|
|
126
164
|
/** Alias: runs.events() -> runs.getEvents() */
|
|
127
165
|
events = (runId, params) => this.getEvents(runId, params);
|
|
166
|
+
/**
|
|
167
|
+
* Wave 2.3: Seq-based event polling for execution trace.
|
|
168
|
+
* Use this for incremental polling with reconnection support.
|
|
169
|
+
*
|
|
170
|
+
* @param runId - Run ID to poll events for
|
|
171
|
+
* @param params - Polling options
|
|
172
|
+
* @returns Events with seq cursors for pagination
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* ```ts
|
|
176
|
+
* let afterSeq = 0;
|
|
177
|
+
* while (run.status === 'running') {
|
|
178
|
+
* const { data } = await client.runs.pollEvents(runId, { afterSeq });
|
|
179
|
+
* for (const event of data.events) {
|
|
180
|
+
* console.log(event.type, event.payload);
|
|
181
|
+
* }
|
|
182
|
+
* afterSeq = data.next_after_seq;
|
|
183
|
+
* await sleep(1000);
|
|
184
|
+
* }
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
async pollEvents(runId, params) {
|
|
188
|
+
return this.client.GET("/v1/api/runs/{runId}/events/stream", {
|
|
189
|
+
params: {
|
|
190
|
+
path: { runId },
|
|
191
|
+
query: {
|
|
192
|
+
afterSeq: params?.afterSeq ?? 0,
|
|
193
|
+
limit: params?.limit ?? 100
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
headers: this.headers(),
|
|
197
|
+
});
|
|
198
|
+
}
|
|
128
199
|
// ======================== Checkpoints ========================
|
|
129
200
|
/**
|
|
130
201
|
* Get checkpoints for a run.
|
|
@@ -19,6 +19,10 @@ export declare class TenantsModule {
|
|
|
19
19
|
private client;
|
|
20
20
|
private headers;
|
|
21
21
|
constructor(client: RawClient, headers: () => Record<string, string>);
|
|
22
|
+
/**
|
|
23
|
+
* List all tenants the user has access to.
|
|
24
|
+
*/
|
|
25
|
+
list(): Promise<APIResponse<Tenant[]>>;
|
|
22
26
|
/**
|
|
23
27
|
* Get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AC,CAAC;CAMtF"}
|
package/dist/modules/tenants.js
CHANGED
|
@@ -8,6 +8,14 @@ export class TenantsModule {
|
|
|
8
8
|
this.client = client;
|
|
9
9
|
this.headers = headers;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* List all tenants the user has access to.
|
|
13
|
+
*/
|
|
14
|
+
async list() {
|
|
15
|
+
return this.client.GET("/v1/api/tenants", {
|
|
16
|
+
headers: this.headers(),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
11
19
|
/**
|
|
12
20
|
* Get the current tenant.
|
|
13
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
2
|
+
"name": "@agent-os-sdk/client",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Official TypeScript SDK for Agent OS platform",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"generate": "tsx scripts/generate.ts",
|
|
17
|
+
"build": "tsc",
|
|
18
|
+
"dev": "tsc --watch",
|
|
19
|
+
"typecheck": "tsc --noEmit",
|
|
20
|
+
"prepublishOnly": "pnpm build"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"agent-os",
|
|
24
|
+
"sdk",
|
|
25
|
+
"ai",
|
|
26
|
+
"agents",
|
|
27
|
+
"typescript"
|
|
28
|
+
],
|
|
29
|
+
"author": "Agent OS Team",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/yuri12344/agent-os.git"
|
|
34
|
+
},
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"openapi-fetch": "^0.13.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"openapi-typescript": "^7.4.0",
|
|
43
|
+
"tsx": "^4.19.0",
|
|
44
|
+
"typescript": "^5.5.0"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist",
|
|
48
|
+
"src"
|
|
49
|
+
]
|
|
50
|
+
}
|