@agent-os-sdk/client 0.1.1 → 0.1.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/dist/client/AgentOsClient.d.ts +28 -4
- package/dist/client/AgentOsClient.d.ts.map +1 -1
- package/dist/client/AgentOsClient.js +40 -3
- package/dist/generated/openapi.d.ts +93 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/modules/approvals.d.ts +78 -0
- package/dist/modules/approvals.d.ts.map +1 -0
- package/dist/modules/approvals.js +157 -0
- package/dist/modules/artifacts.d.ts +100 -0
- package/dist/modules/artifacts.d.ts.map +1 -0
- package/dist/modules/artifacts.js +217 -0
- package/dist/modules/budgets.d.ts +104 -0
- package/dist/modules/budgets.d.ts.map +1 -0
- package/dist/modules/budgets.js +161 -0
- package/dist/modules/builder.d.ts +2 -2
- package/dist/modules/builder.d.ts.map +1 -1
- package/dist/modules/builder.js +5 -5
- package/dist/modules/capabilities.d.ts +68 -0
- package/dist/modules/capabilities.d.ts.map +1 -0
- package/dist/modules/capabilities.js +113 -0
- package/dist/modules/deployments.d.ts +110 -0
- package/dist/modules/deployments.d.ts.map +1 -0
- package/dist/modules/deployments.js +230 -0
- package/dist/modules/flows.d.ts +104 -0
- package/dist/modules/flows.d.ts.map +1 -0
- package/dist/modules/flows.js +190 -0
- package/dist/modules/handoff.d.ts +88 -0
- package/dist/modules/handoff.d.ts.map +1 -0
- package/dist/modules/handoff.js +128 -0
- package/dist/modules/incidents.d.ts +133 -0
- package/dist/modules/incidents.d.ts.map +1 -0
- package/dist/modules/incidents.js +231 -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 +103 -0
- package/dist/modules/policies.d.ts.map +1 -0
- package/dist/modules/policies.js +180 -0
- package/dist/modules/runs.d.ts.map +1 -1
- 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 +45 -7
- package/src/generated/openapi.ts +93 -0
- package/src/generated/swagger.json +107 -0
- package/src/index.ts +11 -0
- package/src/modules/approvals.ts +210 -0
- package/src/modules/artifacts.ts +287 -0
- package/src/modules/budgets.ts +236 -0
- package/src/modules/builder.ts +3 -3
- package/src/modules/capabilities.ts +176 -0
- package/src/modules/deployments.ts +315 -0
- package/src/modules/flows.ts +259 -0
- package/src/modules/handoff.ts +204 -0
- package/src/modules/incidents.ts +339 -0
- package/src/modules/members.ts +11 -0
- package/src/modules/policies.ts +258 -0
- package/src/modules/tenants.ts +9 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Budgets Module - Cost Control
|
|
3
|
+
*
|
|
4
|
+
* // MOCK - This module contains mock implementations for future features
|
|
5
|
+
*
|
|
6
|
+
* Provides budget management, cost estimation, and spending limits.
|
|
7
|
+
* Critical for CFO happiness and auto-protection.
|
|
8
|
+
*/
|
|
9
|
+
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
10
|
+
export type BudgetPeriod = "hourly" | "daily" | "weekly" | "monthly" | "total";
|
|
11
|
+
export type BudgetScope = "tenant" | "workspace" | "agent" | "environment";
|
|
12
|
+
export interface Budget {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
scope: BudgetScope;
|
|
16
|
+
scope_id: string;
|
|
17
|
+
period: BudgetPeriod;
|
|
18
|
+
limit_amount: number;
|
|
19
|
+
currency: string;
|
|
20
|
+
current_usage: number;
|
|
21
|
+
usage_percentage: number;
|
|
22
|
+
alert_thresholds: number[];
|
|
23
|
+
hard_limit: boolean;
|
|
24
|
+
created_at: string;
|
|
25
|
+
updated_at: string;
|
|
26
|
+
}
|
|
27
|
+
export interface BudgetUsage {
|
|
28
|
+
budget_id: string;
|
|
29
|
+
period_start: string;
|
|
30
|
+
period_end: string;
|
|
31
|
+
total_cost: number;
|
|
32
|
+
breakdown: BudgetBreakdown[];
|
|
33
|
+
}
|
|
34
|
+
export interface BudgetBreakdown {
|
|
35
|
+
category: string;
|
|
36
|
+
amount: number;
|
|
37
|
+
percentage: number;
|
|
38
|
+
run_count: number;
|
|
39
|
+
}
|
|
40
|
+
export interface CostEstimate {
|
|
41
|
+
estimated_min: number;
|
|
42
|
+
estimated_max: number;
|
|
43
|
+
estimated_avg: number;
|
|
44
|
+
currency: string;
|
|
45
|
+
breakdown: {
|
|
46
|
+
input_tokens: number;
|
|
47
|
+
output_tokens: number;
|
|
48
|
+
tool_calls: number;
|
|
49
|
+
model_cost: number;
|
|
50
|
+
};
|
|
51
|
+
warnings: string[];
|
|
52
|
+
}
|
|
53
|
+
export interface BudgetListResponse {
|
|
54
|
+
items: Budget[];
|
|
55
|
+
total: number;
|
|
56
|
+
}
|
|
57
|
+
export declare class BudgetsModule {
|
|
58
|
+
private client;
|
|
59
|
+
private headers;
|
|
60
|
+
constructor(client: RawClient, headers: () => Record<string, string>);
|
|
61
|
+
/**
|
|
62
|
+
* List all budgets.
|
|
63
|
+
*/
|
|
64
|
+
list(params?: {
|
|
65
|
+
scope?: BudgetScope;
|
|
66
|
+
}): Promise<APIResponse<BudgetListResponse>>;
|
|
67
|
+
/**
|
|
68
|
+
* Get a budget by ID.
|
|
69
|
+
*/
|
|
70
|
+
get(budgetId: string): Promise<APIResponse<Budget>>;
|
|
71
|
+
/**
|
|
72
|
+
* Create or update a budget.
|
|
73
|
+
*/
|
|
74
|
+
set(body: {
|
|
75
|
+
name: string;
|
|
76
|
+
scope: BudgetScope;
|
|
77
|
+
scope_id: string;
|
|
78
|
+
period: BudgetPeriod;
|
|
79
|
+
limit_amount: number;
|
|
80
|
+
currency?: string;
|
|
81
|
+
alert_thresholds?: number[];
|
|
82
|
+
hard_limit?: boolean;
|
|
83
|
+
}): Promise<APIResponse<Budget>>;
|
|
84
|
+
/**
|
|
85
|
+
* Get budget usage details.
|
|
86
|
+
*/
|
|
87
|
+
getUsage(budgetId: string): Promise<APIResponse<BudgetUsage>>;
|
|
88
|
+
/**
|
|
89
|
+
* Estimate cost for a run before execution.
|
|
90
|
+
*/
|
|
91
|
+
estimateCost(params: {
|
|
92
|
+
agent_id: string;
|
|
93
|
+
input?: Record<string, unknown>;
|
|
94
|
+
max_iterations?: number;
|
|
95
|
+
}): Promise<APIResponse<CostEstimate>>;
|
|
96
|
+
/**
|
|
97
|
+
* Set a hard budget cap for a specific run.
|
|
98
|
+
*/
|
|
99
|
+
setBudgetForRun(runId: string, limit: number): Promise<APIResponse<{
|
|
100
|
+
run_id: string;
|
|
101
|
+
limit: number;
|
|
102
|
+
}>>;
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=budgets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgets.d.ts","sourceRoot":"","sources":["../../src/modules/budgets.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/D,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAC/E,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,aAAa,CAAC;AAE3E,MAAM,WAAW,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,EAAE,C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AAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAqBzD;;OAEG;IACG,GAAG,CAAC,IAAI,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,WAAW,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,YAAY,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;KACxB,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAqBhC;;OAEG;IACG,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAkBnE;;OAEG;IACG,YAAY,CAAC,MAAM,EAAE;QACvB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAChC,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAmBtC;;OAEG;IACG,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAQ/G"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Budgets Module - Cost Control
|
|
3
|
+
*
|
|
4
|
+
* // MOCK - This module contains mock implementations for future features
|
|
5
|
+
*
|
|
6
|
+
* Provides budget management, cost estimation, and spending limits.
|
|
7
|
+
* Critical for CFO happiness and auto-protection.
|
|
8
|
+
*/
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// Module
|
|
11
|
+
// ============================================================================
|
|
12
|
+
export class BudgetsModule {
|
|
13
|
+
client;
|
|
14
|
+
headers;
|
|
15
|
+
constructor(client, headers) {
|
|
16
|
+
this.client = client;
|
|
17
|
+
this.headers = headers;
|
|
18
|
+
}
|
|
19
|
+
// MOCK - Simulated list
|
|
20
|
+
/**
|
|
21
|
+
* List all budgets.
|
|
22
|
+
*/
|
|
23
|
+
async list(params) {
|
|
24
|
+
// MOCK - Returns simulated data
|
|
25
|
+
const mockBudgets = {
|
|
26
|
+
items: [
|
|
27
|
+
{
|
|
28
|
+
id: "budget_tenant",
|
|
29
|
+
name: "Monthly Tenant Budget",
|
|
30
|
+
scope: "tenant",
|
|
31
|
+
scope_id: "tenant_123",
|
|
32
|
+
period: "monthly",
|
|
33
|
+
limit_amount: 5000,
|
|
34
|
+
currency: "USD",
|
|
35
|
+
current_usage: 1250.50,
|
|
36
|
+
usage_percentage: 25.01,
|
|
37
|
+
alert_thresholds: [50, 80, 90],
|
|
38
|
+
hard_limit: false,
|
|
39
|
+
created_at: new Date(Date.now() - 2592000000).toISOString(),
|
|
40
|
+
updated_at: new Date().toISOString(),
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "budget_agent_1",
|
|
44
|
+
name: "Agent Daily Budget",
|
|
45
|
+
scope: "agent",
|
|
46
|
+
scope_id: "agent_support",
|
|
47
|
+
period: "daily",
|
|
48
|
+
limit_amount: 50,
|
|
49
|
+
currency: "USD",
|
|
50
|
+
current_usage: 12.30,
|
|
51
|
+
usage_percentage: 24.6,
|
|
52
|
+
alert_thresholds: [80, 95],
|
|
53
|
+
hard_limit: true,
|
|
54
|
+
created_at: new Date(Date.now() - 86400000).toISOString(),
|
|
55
|
+
updated_at: new Date().toISOString(),
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
total: 2,
|
|
59
|
+
};
|
|
60
|
+
return { data: mockBudgets, error: undefined, response: new Response() };
|
|
61
|
+
}
|
|
62
|
+
// MOCK - Simulated get
|
|
63
|
+
/**
|
|
64
|
+
* Get a budget by ID.
|
|
65
|
+
*/
|
|
66
|
+
async get(budgetId) {
|
|
67
|
+
// MOCK - Returns simulated data
|
|
68
|
+
const mockBudget = {
|
|
69
|
+
id: budgetId,
|
|
70
|
+
name: "Monthly Tenant Budget",
|
|
71
|
+
scope: "tenant",
|
|
72
|
+
scope_id: "tenant_123",
|
|
73
|
+
period: "monthly",
|
|
74
|
+
limit_amount: 5000,
|
|
75
|
+
currency: "USD",
|
|
76
|
+
current_usage: 1250.50,
|
|
77
|
+
usage_percentage: 25.01,
|
|
78
|
+
alert_thresholds: [50, 80, 90],
|
|
79
|
+
hard_limit: false,
|
|
80
|
+
created_at: new Date(Date.now() - 2592000000).toISOString(),
|
|
81
|
+
updated_at: new Date().toISOString(),
|
|
82
|
+
};
|
|
83
|
+
return { data: mockBudget, error: undefined, response: new Response() };
|
|
84
|
+
}
|
|
85
|
+
// MOCK - Simulated set
|
|
86
|
+
/**
|
|
87
|
+
* Create or update a budget.
|
|
88
|
+
*/
|
|
89
|
+
async set(body) {
|
|
90
|
+
// MOCK - Returns simulated data
|
|
91
|
+
const mockBudget = {
|
|
92
|
+
id: `budget_${Date.now()}`,
|
|
93
|
+
name: body.name,
|
|
94
|
+
scope: body.scope,
|
|
95
|
+
scope_id: body.scope_id,
|
|
96
|
+
period: body.period,
|
|
97
|
+
limit_amount: body.limit_amount,
|
|
98
|
+
currency: body.currency || "USD",
|
|
99
|
+
current_usage: 0,
|
|
100
|
+
usage_percentage: 0,
|
|
101
|
+
alert_thresholds: body.alert_thresholds || [80, 90],
|
|
102
|
+
hard_limit: body.hard_limit ?? false,
|
|
103
|
+
created_at: new Date().toISOString(),
|
|
104
|
+
updated_at: new Date().toISOString(),
|
|
105
|
+
};
|
|
106
|
+
return { data: mockBudget, error: undefined, response: new Response() };
|
|
107
|
+
}
|
|
108
|
+
// MOCK - Simulated getUsage
|
|
109
|
+
/**
|
|
110
|
+
* Get budget usage details.
|
|
111
|
+
*/
|
|
112
|
+
async getUsage(budgetId) {
|
|
113
|
+
// MOCK - Returns simulated data
|
|
114
|
+
const mockUsage = {
|
|
115
|
+
budget_id: budgetId,
|
|
116
|
+
period_start: new Date(Date.now() - 2592000000).toISOString(),
|
|
117
|
+
period_end: new Date().toISOString(),
|
|
118
|
+
total_cost: 1250.50,
|
|
119
|
+
breakdown: [
|
|
120
|
+
{ category: "GPT-4", amount: 800.00, percentage: 63.97, run_count: 450 },
|
|
121
|
+
{ category: "Claude", amount: 300.50, percentage: 24.03, run_count: 200 },
|
|
122
|
+
{ category: "Embeddings", amount: 100.00, percentage: 8.00, run_count: 1000 },
|
|
123
|
+
{ category: "Tools", amount: 50.00, percentage: 4.00, run_count: 300 },
|
|
124
|
+
],
|
|
125
|
+
};
|
|
126
|
+
return { data: mockUsage, error: undefined, response: new Response() };
|
|
127
|
+
}
|
|
128
|
+
// MOCK - Simulated estimateCost
|
|
129
|
+
/**
|
|
130
|
+
* Estimate cost for a run before execution.
|
|
131
|
+
*/
|
|
132
|
+
async estimateCost(params) {
|
|
133
|
+
// MOCK - Returns simulated estimate
|
|
134
|
+
const mockEstimate = {
|
|
135
|
+
estimated_min: 0.05,
|
|
136
|
+
estimated_max: 0.25,
|
|
137
|
+
estimated_avg: 0.12,
|
|
138
|
+
currency: "USD",
|
|
139
|
+
breakdown: {
|
|
140
|
+
input_tokens: 2000,
|
|
141
|
+
output_tokens: 3000,
|
|
142
|
+
tool_calls: 5,
|
|
143
|
+
model_cost: 0.10,
|
|
144
|
+
},
|
|
145
|
+
warnings: [],
|
|
146
|
+
};
|
|
147
|
+
return { data: mockEstimate, error: undefined, response: new Response() };
|
|
148
|
+
}
|
|
149
|
+
// MOCK - Simulated setBudgetForRun
|
|
150
|
+
/**
|
|
151
|
+
* Set a hard budget cap for a specific run.
|
|
152
|
+
*/
|
|
153
|
+
async setBudgetForRun(runId, limit) {
|
|
154
|
+
// MOCK - Returns simulated data
|
|
155
|
+
return {
|
|
156
|
+
data: { run_id: runId, limit },
|
|
157
|
+
error: undefined,
|
|
158
|
+
response: new Response()
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -45,9 +45,9 @@ export type BuilderChatResponse = {
|
|
|
45
45
|
thread_id: string;
|
|
46
46
|
};
|
|
47
47
|
export declare class BuilderModule {
|
|
48
|
-
private
|
|
48
|
+
private baseUrl;
|
|
49
49
|
private headers;
|
|
50
|
-
constructor(
|
|
50
|
+
constructor(baseUrl: string, headers: () => Record<string, string>);
|
|
51
51
|
/**
|
|
52
52
|
* Stream chat with meta-agent (SSE).
|
|
53
53
|
* Returns async generator of events.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/modules/builder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAA4B,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE7E,MAAM,MAAM,kBAAkB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GACxB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,iBAAiB,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,MAA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C,IAAI,EAAE,iBAAiB,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,iBAAiB,EAAE,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAC7F;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qBAAa,aAAa;IAElB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBADP,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAGjD;;;OAGG;IACI,IAAI,CACP,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,EAC3B,OAAO,CAAC,EAAE,UAAU,GACrB,cAAc,CAAC,kBAAkB,CAAC;IA8DrC;;OAEG;IACG,QAAQ,CACV,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,mBAAmB,CAAC;IAoB/B;;OAEG;IACG,WAAW,CACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,mBAAmB,CAAC;CAqBlC"}
|
package/dist/modules/builder.js
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { streamSSE } from "../sse/client.js";
|
|
8
8
|
export class BuilderModule {
|
|
9
|
-
|
|
9
|
+
baseUrl;
|
|
10
10
|
headers;
|
|
11
|
-
constructor(
|
|
12
|
-
this.
|
|
11
|
+
constructor(baseUrl, headers) {
|
|
12
|
+
this.baseUrl = baseUrl;
|
|
13
13
|
this.headers = headers;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
@@ -17,7 +17,7 @@ export class BuilderModule {
|
|
|
17
17
|
* Returns async generator of events.
|
|
18
18
|
*/
|
|
19
19
|
async *chat(agentId, request, options) {
|
|
20
|
-
const url = `${this.
|
|
20
|
+
const url = `${this.baseUrl}/v1/internal/builder/${agentId}/chat`;
|
|
21
21
|
const response = await fetch(url, {
|
|
22
22
|
method: "POST",
|
|
23
23
|
headers: {
|
|
@@ -77,7 +77,7 @@ export class BuilderModule {
|
|
|
77
77
|
* Sync chat with meta-agent (no streaming).
|
|
78
78
|
*/
|
|
79
79
|
async chatSync(agentId, request) {
|
|
80
|
-
const url = `${this.
|
|
80
|
+
const url = `${this.baseUrl}/v1/internal/builder/${agentId}/chat/sync`;
|
|
81
81
|
const response = await fetch(url, {
|
|
82
82
|
method: "POST",
|
|
83
83
|
headers: {
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capabilities Module - Agent Permissions System
|
|
3
|
+
*
|
|
4
|
+
* // MOCK - This module contains mock implementations for future features
|
|
5
|
+
*
|
|
6
|
+
* Manages what agents/runs can do. Formal capability system
|
|
7
|
+
* that enables enterprise-grade governance.
|
|
8
|
+
*/
|
|
9
|
+
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
10
|
+
export interface Capability {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
type: "tool" | "network" | "file" | "mcp" | "token" | "custom";
|
|
15
|
+
config: CapabilityConfig;
|
|
16
|
+
}
|
|
17
|
+
export interface CapabilityConfig {
|
|
18
|
+
tool_allowlist?: string[];
|
|
19
|
+
tool_denylist?: string[];
|
|
20
|
+
max_tool_calls?: number;
|
|
21
|
+
allowed_domains?: string[];
|
|
22
|
+
blocked_domains?: string[];
|
|
23
|
+
allow_egress?: boolean;
|
|
24
|
+
file_read?: boolean;
|
|
25
|
+
file_write?: boolean;
|
|
26
|
+
allowed_paths?: string[];
|
|
27
|
+
mcp_server_allowlist?: string[];
|
|
28
|
+
max_tokens?: number;
|
|
29
|
+
max_input_tokens?: number;
|
|
30
|
+
max_output_tokens?: number;
|
|
31
|
+
streaming_allowed?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface CapabilitySet {
|
|
34
|
+
agent_id?: string;
|
|
35
|
+
run_id?: string;
|
|
36
|
+
capabilities: Capability[];
|
|
37
|
+
inherited_from?: string;
|
|
38
|
+
effective_at: string;
|
|
39
|
+
}
|
|
40
|
+
export interface CapabilityOverride {
|
|
41
|
+
run_id: string;
|
|
42
|
+
overrides: Partial<CapabilityConfig>;
|
|
43
|
+
reason?: string;
|
|
44
|
+
applied_at: string;
|
|
45
|
+
applied_by: string;
|
|
46
|
+
}
|
|
47
|
+
export declare class CapabilitiesModule {
|
|
48
|
+
private client;
|
|
49
|
+
private headers;
|
|
50
|
+
constructor(client: RawClient, headers: () => Record<string, string>);
|
|
51
|
+
/**
|
|
52
|
+
* Get capabilities for an agent.
|
|
53
|
+
*/
|
|
54
|
+
getForAgent(agentId: string): Promise<APIResponse<CapabilitySet>>;
|
|
55
|
+
/**
|
|
56
|
+
* Set capabilities for an agent.
|
|
57
|
+
*/
|
|
58
|
+
setForAgent(agentId: string, capabilities: Capability[]): Promise<APIResponse<CapabilitySet>>;
|
|
59
|
+
/**
|
|
60
|
+
* Get effective capabilities for a run.
|
|
61
|
+
*/
|
|
62
|
+
getForRun(runId: string): Promise<APIResponse<CapabilitySet>>;
|
|
63
|
+
/**
|
|
64
|
+
* Override capabilities for a specific run.
|
|
65
|
+
*/
|
|
66
|
+
overrideForRun(runId: string, overrides: Partial<CapabilityConfig>, reason?: string): Promise<APIResponse<CapabilityOverride>>;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["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ACf,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,qBAAa,kBAAkB;IACf,OAAO,CAAC,MAAM;IAAa,OAAO,CAAC,OAAO;gBAAlC,MAAM,EAAE,SAAS,EAAU,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAGpF;;OAEG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAwCvE;;OAEG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAWnG;;OAEG;IACG,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAsBnE;;OAEG;IACG,cAAc,CAChB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC,EACpC,MAAM,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;CAW9C"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capabilities Module - Agent Permissions System
|
|
3
|
+
*
|
|
4
|
+
* // MOCK - This module contains mock implementations for future features
|
|
5
|
+
*
|
|
6
|
+
* Manages what agents/runs can do. Formal capability system
|
|
7
|
+
* that enables enterprise-grade governance.
|
|
8
|
+
*/
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// Module
|
|
11
|
+
// ============================================================================
|
|
12
|
+
export class CapabilitiesModule {
|
|
13
|
+
client;
|
|
14
|
+
headers;
|
|
15
|
+
constructor(client, headers) {
|
|
16
|
+
this.client = client;
|
|
17
|
+
this.headers = headers;
|
|
18
|
+
}
|
|
19
|
+
// MOCK - Simulated get for agent
|
|
20
|
+
/**
|
|
21
|
+
* Get capabilities for an agent.
|
|
22
|
+
*/
|
|
23
|
+
async getForAgent(agentId) {
|
|
24
|
+
// MOCK - Returns simulated data
|
|
25
|
+
const mockCaps = {
|
|
26
|
+
agent_id: agentId,
|
|
27
|
+
capabilities: [
|
|
28
|
+
{
|
|
29
|
+
id: "cap_tools",
|
|
30
|
+
name: "Tool Access",
|
|
31
|
+
type: "tool",
|
|
32
|
+
config: {
|
|
33
|
+
tool_allowlist: ["web_search", "calculator", "file_read"],
|
|
34
|
+
max_tool_calls: 50,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "cap_network",
|
|
39
|
+
name: "Network Access",
|
|
40
|
+
type: "network",
|
|
41
|
+
config: {
|
|
42
|
+
allow_egress: true,
|
|
43
|
+
allowed_domains: ["*.google.com", "*.openai.com"],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "cap_tokens",
|
|
48
|
+
name: "Token Limits",
|
|
49
|
+
type: "token",
|
|
50
|
+
config: {
|
|
51
|
+
max_tokens: 100000,
|
|
52
|
+
max_input_tokens: 50000,
|
|
53
|
+
max_output_tokens: 50000,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
effective_at: new Date().toISOString(),
|
|
58
|
+
};
|
|
59
|
+
return { data: mockCaps, error: undefined, response: new Response() };
|
|
60
|
+
}
|
|
61
|
+
// MOCK - Simulated set for agent
|
|
62
|
+
/**
|
|
63
|
+
* Set capabilities for an agent.
|
|
64
|
+
*/
|
|
65
|
+
async setForAgent(agentId, capabilities) {
|
|
66
|
+
// MOCK - Returns simulated data
|
|
67
|
+
const mockCaps = {
|
|
68
|
+
agent_id: agentId,
|
|
69
|
+
capabilities,
|
|
70
|
+
effective_at: new Date().toISOString(),
|
|
71
|
+
};
|
|
72
|
+
return { data: mockCaps, error: undefined, response: new Response() };
|
|
73
|
+
}
|
|
74
|
+
// MOCK - Simulated get for run
|
|
75
|
+
/**
|
|
76
|
+
* Get effective capabilities for a run.
|
|
77
|
+
*/
|
|
78
|
+
async getForRun(runId) {
|
|
79
|
+
// MOCK - Returns simulated data
|
|
80
|
+
const mockCaps = {
|
|
81
|
+
run_id: runId,
|
|
82
|
+
capabilities: [
|
|
83
|
+
{
|
|
84
|
+
id: "cap_tools",
|
|
85
|
+
name: "Tool Access",
|
|
86
|
+
type: "tool",
|
|
87
|
+
config: {
|
|
88
|
+
tool_allowlist: ["web_search"],
|
|
89
|
+
max_tool_calls: 10,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
inherited_from: "agent_123",
|
|
94
|
+
effective_at: new Date().toISOString(),
|
|
95
|
+
};
|
|
96
|
+
return { data: mockCaps, error: undefined, response: new Response() };
|
|
97
|
+
}
|
|
98
|
+
// MOCK - Simulated override for run
|
|
99
|
+
/**
|
|
100
|
+
* Override capabilities for a specific run.
|
|
101
|
+
*/
|
|
102
|
+
async overrideForRun(runId, overrides, reason) {
|
|
103
|
+
// MOCK - Returns simulated data
|
|
104
|
+
const mockOverride = {
|
|
105
|
+
run_id: runId,
|
|
106
|
+
overrides,
|
|
107
|
+
reason,
|
|
108
|
+
applied_at: new Date().toISOString(),
|
|
109
|
+
applied_by: "user_123",
|
|
110
|
+
};
|
|
111
|
+
return { data: mockOverride, error: undefined, response: new Response() };
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deployments Module - Release Management
|
|
3
|
+
*
|
|
4
|
+
* // MOCK - This module contains mock implementations for future features
|
|
5
|
+
*
|
|
6
|
+
* Provides deployment management, environment promotion,
|
|
7
|
+
* rollback, canary releases, and change freezes.
|
|
8
|
+
*/
|
|
9
|
+
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
10
|
+
export type DeploymentStatus = "pending" | "deploying" | "active" | "rolling_back" | "rolled_back" | "failed";
|
|
11
|
+
export type EnvironmentType = "development" | "staging" | "production" | "custom";
|
|
12
|
+
export interface Environment {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
type: EnvironmentType;
|
|
16
|
+
description?: string;
|
|
17
|
+
is_frozen: boolean;
|
|
18
|
+
frozen_until?: string;
|
|
19
|
+
frozen_reason?: string;
|
|
20
|
+
config: Record<string, unknown>;
|
|
21
|
+
created_at: string;
|
|
22
|
+
updated_at: string;
|
|
23
|
+
}
|
|
24
|
+
export interface Deployment {
|
|
25
|
+
id: string;
|
|
26
|
+
agent_id: string;
|
|
27
|
+
agent_version_id: string;
|
|
28
|
+
environment_id: string;
|
|
29
|
+
environment_name: string;
|
|
30
|
+
status: DeploymentStatus;
|
|
31
|
+
promoted_by: string;
|
|
32
|
+
promoted_at: string;
|
|
33
|
+
completed_at?: string;
|
|
34
|
+
rollback_version_id?: string;
|
|
35
|
+
canary_percent?: number;
|
|
36
|
+
notes?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface DeploymentDiff {
|
|
39
|
+
from_version: string;
|
|
40
|
+
to_version: string;
|
|
41
|
+
changes: {
|
|
42
|
+
category: string;
|
|
43
|
+
field: string;
|
|
44
|
+
old_value: unknown;
|
|
45
|
+
new_value: unknown;
|
|
46
|
+
}[];
|
|
47
|
+
config_changes: number;
|
|
48
|
+
prompt_changes: number;
|
|
49
|
+
graph_changes: number;
|
|
50
|
+
}
|
|
51
|
+
export interface EnvironmentListResponse {
|
|
52
|
+
items: Environment[];
|
|
53
|
+
total: number;
|
|
54
|
+
}
|
|
55
|
+
export interface DeploymentListResponse {
|
|
56
|
+
items: Deployment[];
|
|
57
|
+
total: number;
|
|
58
|
+
}
|
|
59
|
+
export declare class DeploymentsModule {
|
|
60
|
+
private client;
|
|
61
|
+
private headers;
|
|
62
|
+
constructor(client: RawClient, headers: () => Record<string, string>);
|
|
63
|
+
/**
|
|
64
|
+
* List all environments.
|
|
65
|
+
*/
|
|
66
|
+
listEnvironments(): Promise<APIResponse<EnvironmentListResponse>>;
|
|
67
|
+
/**
|
|
68
|
+
* Create a new environment.
|
|
69
|
+
*/
|
|
70
|
+
createEnvironment(body: {
|
|
71
|
+
name: string;
|
|
72
|
+
type: EnvironmentType;
|
|
73
|
+
description?: string;
|
|
74
|
+
config?: Record<string, unknown>;
|
|
75
|
+
}): Promise<APIResponse<Environment>>;
|
|
76
|
+
/**
|
|
77
|
+
* Get deployment history for an environment.
|
|
78
|
+
*/
|
|
79
|
+
history(environmentId: string): Promise<APIResponse<DeploymentListResponse>>;
|
|
80
|
+
/**
|
|
81
|
+
* Promote an agent version to an environment.
|
|
82
|
+
*/
|
|
83
|
+
promote(agentVersionId: string, environmentId: string, options?: {
|
|
84
|
+
notes?: string;
|
|
85
|
+
}): Promise<APIResponse<Deployment>>;
|
|
86
|
+
/**
|
|
87
|
+
* Rollback an environment to a previous version.
|
|
88
|
+
*/
|
|
89
|
+
rollback(environmentId: string, toVersionId?: string): Promise<APIResponse<Deployment>>;
|
|
90
|
+
/**
|
|
91
|
+
* Start a canary deployment.
|
|
92
|
+
*/
|
|
93
|
+
canary(environmentId: string, agentVersionId: string, percent: number): Promise<APIResponse<Deployment>>;
|
|
94
|
+
/**
|
|
95
|
+
* Freeze an environment (change freeze).
|
|
96
|
+
*/
|
|
97
|
+
freeze(environmentId: string, options?: {
|
|
98
|
+
until?: string;
|
|
99
|
+
reason?: string;
|
|
100
|
+
}): Promise<APIResponse<Environment>>;
|
|
101
|
+
/**
|
|
102
|
+
* Unfreeze an environment.
|
|
103
|
+
*/
|
|
104
|
+
unfreeze(environmentId: string): Promise<APIResponse<Environment>>;
|
|
105
|
+
/**
|
|
106
|
+
* Get diff between two versions.
|
|
107
|
+
*/
|
|
108
|
+
diff(fromVersionId: string, toVersionId: string): Promise<APIResponse<DeploymentDiff>>;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=deployments.d.ts.map
|
|
@@ -0,0 +1 @@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