@agent-os-sdk/client 0.3.4 → 0.3.5
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 +0 -16
- package/dist/client/AgentOsClient.d.ts.map +1 -1
- package/dist/client/AgentOsClient.js +0 -27
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -9
- package/package.json +1 -1
- package/src/client/AgentOsClient.ts +0 -30
- package/src/index.ts +1 -9
- package/src/modules/artifacts.ts +0 -83
- package/src/modules/budgets.ts +0 -120
- package/src/modules/capabilities.ts +0 -95
- package/src/modules/deployments.ts +0 -111
- package/src/modules/flows.ts +0 -133
- package/src/modules/handoff.ts +0 -140
- package/src/modules/incidents.ts +0 -113
- package/src/modules/policies.ts +0 -112
|
@@ -58,15 +58,7 @@ import { InfoModule } from "../modules/info.js";
|
|
|
58
58
|
import { MetricsModule } from "../modules/metrics.js";
|
|
59
59
|
import { GraphsModule } from "../modules/graphs.js";
|
|
60
60
|
import { CatalogModule } from "../modules/catalog.js";
|
|
61
|
-
import { HandoffModule } from "../modules/handoff.js";
|
|
62
|
-
import { FlowsModule } from "../modules/flows.js";
|
|
63
|
-
import { CapabilitiesModule } from "../modules/capabilities.js";
|
|
64
|
-
import { PoliciesModule } from "../modules/policies.js";
|
|
65
61
|
import { ApprovalsModule } from "../modules/approvals.js";
|
|
66
|
-
import { BudgetsModule } from "../modules/budgets.js";
|
|
67
|
-
import { DeploymentsModule } from "../modules/deployments.js";
|
|
68
|
-
import { IncidentsModule } from "../modules/incidents.js";
|
|
69
|
-
import { ArtifactsModule } from "../modules/artifacts.js";
|
|
70
62
|
export type { AgentOsClientOptions, AuthProvider } from "./auth.js";
|
|
71
63
|
export { isApiTokenAuth, isJwtAuth } from "./auth.js";
|
|
72
64
|
export declare class AgentOsClient {
|
|
@@ -104,15 +96,7 @@ export declare class AgentOsClient {
|
|
|
104
96
|
readonly metrics: MetricsModule;
|
|
105
97
|
readonly graphs: GraphsModule;
|
|
106
98
|
readonly catalog: CatalogModule;
|
|
107
|
-
readonly handoff: HandoffModule;
|
|
108
|
-
readonly flows: FlowsModule;
|
|
109
|
-
readonly capabilities: CapabilitiesModule;
|
|
110
|
-
readonly policies: PoliciesModule;
|
|
111
99
|
readonly approvals: ApprovalsModule;
|
|
112
|
-
readonly budgets: BudgetsModule;
|
|
113
|
-
readonly deployments: DeploymentsModule;
|
|
114
|
-
readonly incidents: IncidentsModule;
|
|
115
|
-
readonly artifacts: ArtifactsModule;
|
|
116
100
|
readonly experiments: {
|
|
117
101
|
list: EvaluationModule["listExperiments"];
|
|
118
102
|
get: EvaluationModule["getExperiment"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentOsClient.d.ts","sourceRoot":"","sources":["../../src/client/AgentOsClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EACH,KAAK,oBAAoB,EAK5B,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,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EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC;QACpF,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC;KAC9H,CAAC;gBAEU,OAAO,EAAE,oBAAoB;IAoEzC;;OAEG;IACH,OAAO,CAAC,aAAa;IAYrB;;;;;;OAMG;YACW,eAAe;IA2C7B;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAIxD,yBAAyB;IACzB,IAAI,QAAQ,IAAI,WAAW,GAAG,KAAK,CAElC;IAED,4CAA4C;IAC5C,IAAI,GAAG,IAAI,SAAS,CAEnB;CACJ"}
|
|
@@ -59,16 +59,7 @@ import { InfoModule } from "../modules/info.js";
|
|
|
59
59
|
import { MetricsModule } from "../modules/metrics.js";
|
|
60
60
|
import { GraphsModule } from "../modules/graphs.js";
|
|
61
61
|
import { CatalogModule } from "../modules/catalog.js";
|
|
62
|
-
// Future modules (mocked)
|
|
63
|
-
import { HandoffModule } from "../modules/handoff.js";
|
|
64
|
-
import { FlowsModule } from "../modules/flows.js";
|
|
65
|
-
import { CapabilitiesModule } from "../modules/capabilities.js";
|
|
66
|
-
import { PoliciesModule } from "../modules/policies.js";
|
|
67
62
|
import { ApprovalsModule } from "../modules/approvals.js";
|
|
68
|
-
import { BudgetsModule } from "../modules/budgets.js";
|
|
69
|
-
import { DeploymentsModule } from "../modules/deployments.js";
|
|
70
|
-
import { IncidentsModule } from "../modules/incidents.js";
|
|
71
|
-
import { ArtifactsModule } from "../modules/artifacts.js";
|
|
72
63
|
export { isApiTokenAuth, isJwtAuth } from "./auth.js";
|
|
73
64
|
export class AgentOsClient {
|
|
74
65
|
_client;
|
|
@@ -107,16 +98,7 @@ export class AgentOsClient {
|
|
|
107
98
|
metrics;
|
|
108
99
|
graphs;
|
|
109
100
|
catalog;
|
|
110
|
-
// Future modules (mocked)
|
|
111
|
-
handoff;
|
|
112
|
-
flows;
|
|
113
|
-
capabilities;
|
|
114
|
-
policies;
|
|
115
101
|
approvals;
|
|
116
|
-
budgets;
|
|
117
|
-
deployments;
|
|
118
|
-
incidents;
|
|
119
|
-
artifacts;
|
|
120
102
|
// Convenience aliases
|
|
121
103
|
experiments;
|
|
122
104
|
agentVersions;
|
|
@@ -167,16 +149,7 @@ export class AgentOsClient {
|
|
|
167
149
|
this.metrics = new MetricsModule(this._client);
|
|
168
150
|
this.graphs = new GraphsModule(this._client, getHeaders);
|
|
169
151
|
this.catalog = new CatalogModule(this._client);
|
|
170
|
-
// Initialize future modules (mocked)
|
|
171
|
-
this.handoff = new HandoffModule(this._client, getHeaders);
|
|
172
|
-
this.flows = new FlowsModule(this._client, getHeaders);
|
|
173
|
-
this.capabilities = new CapabilitiesModule(this._client, getHeaders);
|
|
174
|
-
this.policies = new PoliciesModule(this._client, getHeaders);
|
|
175
152
|
this.approvals = new ApprovalsModule(this._client, getHeaders);
|
|
176
|
-
this.budgets = new BudgetsModule(this._client, getHeaders);
|
|
177
|
-
this.deployments = new DeploymentsModule(this._client, getHeaders);
|
|
178
|
-
this.incidents = new IncidentsModule(this._client, getHeaders);
|
|
179
|
-
this.artifacts = new ArtifactsModule(this._client, getHeaders);
|
|
180
153
|
// Initialize convenience aliases
|
|
181
154
|
this.experiments = {
|
|
182
155
|
list: this.evaluation.listExperiments.bind(this.evaluation),
|
package/dist/index.d.ts
CHANGED
|
@@ -69,15 +69,7 @@ export { InfoModule, type ServerInfo } from "./modules/info.js";
|
|
|
69
69
|
export { MetricsModule, type MetricsResponse } from "./modules/metrics.js";
|
|
70
70
|
export { GraphsModule, type GraphValidationResult, type GraphIntrospectionResult } from "./modules/graphs.js";
|
|
71
71
|
export { CatalogModule, type CatalogVersions, type NodeCatalogResponse, type ToolCatalogResponse, type TriggerCatalogResponse, type NodeDefinition, type ToolDefinition, type TriggerTemplate } from "./modules/catalog.js";
|
|
72
|
-
export { HandoffModule, type HandoffOptions, type HandoffResult, type ForkOptions, type ForkResult, type RunChain, type RunChainNode, type HandoffMode, type HandoffConstraints } from "./modules/handoff.js";
|
|
73
|
-
export { FlowsModule, type Flow, type FlowStep, type FlowRun, type FlowVisualization, type FlowSimulationResult, type FlowStatus, type FlowListResponse } from "./modules/flows.js";
|
|
74
|
-
export { CapabilitiesModule, type Capability, type CapabilityType, type CapabilityTest, type CapabilityMatrix } from "./modules/capabilities.js";
|
|
75
|
-
export { PoliciesModule, type Policy, type PolicyScope, type PolicyEnforcement, type PolicyRule, type PolicyEvaluation, type PolicyEvaluationResult } from "./modules/policies.js";
|
|
76
72
|
export { ApprovalsModule, type Approval, type ApprovalStatus, type ApprovalDecision, type ApprovalListResponse, type ApprovalStatusResponse } from "./modules/approvals.js";
|
|
77
|
-
export { BudgetsModule, type Budget, type BudgetPeriod, type BudgetScope, type BudgetResourceType, type BudgetUsage, type BudgetAlert, type BudgetBreakdownItem } from "./modules/budgets.js";
|
|
78
|
-
export { DeploymentsModule, type Environment, type Deployment, type DeploymentStatus, type DeploymentConfig, type DeploymentHealth } from "./modules/deployments.js";
|
|
79
|
-
export { IncidentsModule, type Incident, type IncidentSeverity, type IncidentStatus, type IncidentUpdate, type IncidentMetrics } from "./modules/incidents.js";
|
|
80
|
-
export { ArtifactsModule, type Artifact, type ArtifactType, type ArtifactUploadUrl } from "./modules/artifacts.js";
|
|
81
73
|
export { streamSSE, type SSEEvent, type SSEOptions, type RunStreamEvent } from "./sse/client.js";
|
|
82
74
|
export type { Agent as AgentSchema, CreateAgentRequest, UpdateAgentRequest, AgentBundle, CreateAgentVersionRequest, RunResponse, RunDetailResponse, WaitRunResponse, BatchRunResponse, CancelRunResponse, ReplayRequest, ThreadRequest, ThreadSearchRequest, AddMessageRequest, CheckpointDetail, CheckpointListResponse, CreateCredentialRequest, UpdateCredentialRequest, CreateCronJobRequest, UpdateCronJobRequest, InviteMemberRequest, UpdateMemberRequest, CreatePromptRequest, CreatePromptVersionRequest, CreatePresignedUploadRequest, PresignedUploadResponse, VectorStoreResponse, VectorQueryRequest, VectorQueryResponse, CreateDatasetRequest, CreateExperimentRequest, ProblemDetails, } from "./client/raw.js";
|
|
83
75
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAKH,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGxG,OAAO,EACH,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,cAAc,EACd,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,GACb,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EACH,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,SAAS,GACjB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,WAAW,GACnB,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAOzD,OAAO,EAAE,YAAY,EAAE,KAAK,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACnI,OAAO,EAAE,UAAU,EAAE,KAAK,GAAG,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,eAAe,E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AEvB,cAAc,GACjB,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -83,16 +83,8 @@ export { InfoModule } from "./modules/info.js";
|
|
|
83
83
|
export { MetricsModule } from "./modules/metrics.js";
|
|
84
84
|
export { GraphsModule } from "./modules/graphs.js";
|
|
85
85
|
export { CatalogModule } from "./modules/catalog.js";
|
|
86
|
-
//
|
|
87
|
-
export { HandoffModule } from "./modules/handoff.js";
|
|
88
|
-
export { FlowsModule } from "./modules/flows.js";
|
|
89
|
-
export { CapabilitiesModule } from "./modules/capabilities.js";
|
|
90
|
-
export { PoliciesModule } from "./modules/policies.js";
|
|
86
|
+
// Approvals is real (has backend implementation)
|
|
91
87
|
export { ApprovalsModule } from "./modules/approvals.js";
|
|
92
|
-
export { BudgetsModule } from "./modules/budgets.js";
|
|
93
|
-
export { DeploymentsModule } from "./modules/deployments.js";
|
|
94
|
-
export { IncidentsModule } from "./modules/incidents.js";
|
|
95
|
-
export { ArtifactsModule } from "./modules/artifacts.js";
|
|
96
88
|
// ============================================================================
|
|
97
89
|
// SSE Streaming
|
|
98
90
|
// ============================================================================
|
package/package.json
CHANGED
|
@@ -68,17 +68,7 @@ import { InfoModule } from "../modules/info.js";
|
|
|
68
68
|
import { MetricsModule } from "../modules/metrics.js";
|
|
69
69
|
import { GraphsModule } from "../modules/graphs.js";
|
|
70
70
|
import { CatalogModule } from "../modules/catalog.js";
|
|
71
|
-
|
|
72
|
-
// Future modules (mocked)
|
|
73
|
-
import { HandoffModule } from "../modules/handoff.js";
|
|
74
|
-
import { FlowsModule } from "../modules/flows.js";
|
|
75
|
-
import { CapabilitiesModule } from "../modules/capabilities.js";
|
|
76
|
-
import { PoliciesModule } from "../modules/policies.js";
|
|
77
71
|
import { ApprovalsModule } from "../modules/approvals.js";
|
|
78
|
-
import { BudgetsModule } from "../modules/budgets.js";
|
|
79
|
-
import { DeploymentsModule } from "../modules/deployments.js";
|
|
80
|
-
import { IncidentsModule } from "../modules/incidents.js";
|
|
81
|
-
import { ArtifactsModule } from "../modules/artifacts.js";
|
|
82
72
|
|
|
83
73
|
// Re-export auth types
|
|
84
74
|
export type { AgentOsClientOptions, AuthProvider } from "./auth.js";
|
|
@@ -123,17 +113,7 @@ export class AgentOsClient {
|
|
|
123
113
|
readonly metrics: MetricsModule;
|
|
124
114
|
readonly graphs: GraphsModule;
|
|
125
115
|
readonly catalog: CatalogModule;
|
|
126
|
-
|
|
127
|
-
// Future modules (mocked)
|
|
128
|
-
readonly handoff: HandoffModule;
|
|
129
|
-
readonly flows: FlowsModule;
|
|
130
|
-
readonly capabilities: CapabilitiesModule;
|
|
131
|
-
readonly policies: PoliciesModule;
|
|
132
116
|
readonly approvals: ApprovalsModule;
|
|
133
|
-
readonly budgets: BudgetsModule;
|
|
134
|
-
readonly deployments: DeploymentsModule;
|
|
135
|
-
readonly incidents: IncidentsModule;
|
|
136
|
-
readonly artifacts: ArtifactsModule;
|
|
137
117
|
|
|
138
118
|
// Convenience aliases
|
|
139
119
|
readonly experiments: {
|
|
@@ -200,17 +180,7 @@ export class AgentOsClient {
|
|
|
200
180
|
this.metrics = new MetricsModule(this._client);
|
|
201
181
|
this.graphs = new GraphsModule(this._client, getHeaders);
|
|
202
182
|
this.catalog = new CatalogModule(this._client);
|
|
203
|
-
|
|
204
|
-
// Initialize future modules (mocked)
|
|
205
|
-
this.handoff = new HandoffModule(this._client, getHeaders);
|
|
206
|
-
this.flows = new FlowsModule(this._client, getHeaders);
|
|
207
|
-
this.capabilities = new CapabilitiesModule(this._client, getHeaders);
|
|
208
|
-
this.policies = new PoliciesModule(this._client, getHeaders);
|
|
209
183
|
this.approvals = new ApprovalsModule(this._client, getHeaders);
|
|
210
|
-
this.budgets = new BudgetsModule(this._client, getHeaders);
|
|
211
|
-
this.deployments = new DeploymentsModule(this._client, getHeaders);
|
|
212
|
-
this.incidents = new IncidentsModule(this._client, getHeaders);
|
|
213
|
-
this.artifacts = new ArtifactsModule(this._client, getHeaders);
|
|
214
184
|
|
|
215
185
|
// Initialize convenience aliases
|
|
216
186
|
this.experiments = {
|
package/src/index.ts
CHANGED
|
@@ -117,16 +117,8 @@ export { MetricsModule, type MetricsResponse } from "./modules/metrics.js";
|
|
|
117
117
|
export { GraphsModule, type GraphValidationResult, type GraphIntrospectionResult } from "./modules/graphs.js";
|
|
118
118
|
export { CatalogModule, type CatalogVersions, type NodeCatalogResponse, type ToolCatalogResponse, type TriggerCatalogResponse, type NodeDefinition, type ToolDefinition, type TriggerTemplate } from "./modules/catalog.js";
|
|
119
119
|
|
|
120
|
-
//
|
|
121
|
-
export { HandoffModule, type HandoffOptions, type HandoffResult, type ForkOptions, type ForkResult, type RunChain, type RunChainNode, type HandoffMode, type HandoffConstraints } from "./modules/handoff.js";
|
|
122
|
-
export { FlowsModule, type Flow, type FlowStep, type FlowRun, type FlowVisualization, type FlowSimulationResult, type FlowStatus, type FlowListResponse } from "./modules/flows.js";
|
|
123
|
-
export { CapabilitiesModule, type Capability, type CapabilityType, type CapabilityTest, type CapabilityMatrix } from "./modules/capabilities.js";
|
|
124
|
-
export { PoliciesModule, type Policy, type PolicyScope, type PolicyEnforcement, type PolicyRule, type PolicyEvaluation, type PolicyEvaluationResult } from "./modules/policies.js";
|
|
120
|
+
// Approvals is real (has backend implementation)
|
|
125
121
|
export { ApprovalsModule, type Approval, type ApprovalStatus, type ApprovalDecision, type ApprovalListResponse, type ApprovalStatusResponse } from "./modules/approvals.js";
|
|
126
|
-
export { BudgetsModule, type Budget, type BudgetPeriod, type BudgetScope, type BudgetResourceType, type BudgetUsage, type BudgetAlert, type BudgetBreakdownItem } from "./modules/budgets.js";
|
|
127
|
-
export { DeploymentsModule, type Environment, type Deployment, type DeploymentStatus, type DeploymentConfig, type DeploymentHealth } from "./modules/deployments.js";
|
|
128
|
-
export { IncidentsModule, type Incident, type IncidentSeverity, type IncidentStatus, type IncidentUpdate, type IncidentMetrics } from "./modules/incidents.js";
|
|
129
|
-
export { ArtifactsModule, type Artifact, type ArtifactType, type ArtifactUploadUrl } from "./modules/artifacts.js";
|
|
130
122
|
|
|
131
123
|
// ============================================================================
|
|
132
124
|
// SSE Streaming
|
package/src/modules/artifacts.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Artifacts Module - Run Output Management
|
|
3
|
-
*
|
|
4
|
-
* NOT IMPLEMENTED - Backend endpoint not available.
|
|
5
|
-
* All methods return 501 NotImplemented.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
9
|
-
|
|
10
|
-
// ============================================================================
|
|
11
|
-
// Types
|
|
12
|
-
// ============================================================================
|
|
13
|
-
|
|
14
|
-
export type ArtifactType = "file" | "image" | "json" | "text" | "log" | "report";
|
|
15
|
-
|
|
16
|
-
export interface Artifact {
|
|
17
|
-
id: string;
|
|
18
|
-
run_id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
type: ArtifactType;
|
|
21
|
-
mime_type?: string;
|
|
22
|
-
size_bytes: number;
|
|
23
|
-
checksum?: string;
|
|
24
|
-
download_url?: string;
|
|
25
|
-
preview_url?: string;
|
|
26
|
-
metadata?: Record<string, unknown>;
|
|
27
|
-
created_at: string;
|
|
28
|
-
expires_at?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface ArtifactUploadUrl {
|
|
32
|
-
upload_url: string;
|
|
33
|
-
artifact_id: string;
|
|
34
|
-
expires_at: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// ============================================================================
|
|
38
|
-
// Helper for 501 responses
|
|
39
|
-
// ============================================================================
|
|
40
|
-
|
|
41
|
-
function notImplemented<T>(method: string): APIResponse<T> {
|
|
42
|
-
return {
|
|
43
|
-
data: undefined,
|
|
44
|
-
error: {
|
|
45
|
-
code: "NOT_IMPLEMENTED",
|
|
46
|
-
message: `ArtifactsModule.${method}() is not implemented. Backend endpoint not available.`,
|
|
47
|
-
},
|
|
48
|
-
response: new Response(null, { status: 501, statusText: "Not Implemented" }),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// ============================================================================
|
|
53
|
-
// Module
|
|
54
|
-
// ============================================================================
|
|
55
|
-
|
|
56
|
-
export class ArtifactsModule {
|
|
57
|
-
constructor(private client: RawClient, private headers: () => Record<string, string>) { }
|
|
58
|
-
|
|
59
|
-
/** @returns 501 Not Implemented */
|
|
60
|
-
async list(runId: string): Promise<APIResponse<{ items: Artifact[]; total: number }>> {
|
|
61
|
-
return notImplemented<{ items: Artifact[]; total: number }>("list");
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** @returns 501 Not Implemented */
|
|
65
|
-
async get(artifactId: string): Promise<APIResponse<Artifact>> {
|
|
66
|
-
return notImplemented<Artifact>("get");
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/** @returns 501 Not Implemented */
|
|
70
|
-
async getDownloadUrl(artifactId: string): Promise<APIResponse<{ url: string; expires_at: string }>> {
|
|
71
|
-
return notImplemented<{ url: string; expires_at: string }>("getDownloadUrl");
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/** @returns 501 Not Implemented */
|
|
75
|
-
async createUploadUrl(runId: string, name: string, type: ArtifactType): Promise<APIResponse<ArtifactUploadUrl>> {
|
|
76
|
-
return notImplemented<ArtifactUploadUrl>("createUploadUrl");
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** @returns 501 Not Implemented */
|
|
80
|
-
async delete(artifactId: string): Promise<APIResponse<void>> {
|
|
81
|
-
return notImplemented<void>("delete");
|
|
82
|
-
}
|
|
83
|
-
}
|
package/src/modules/budgets.ts
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Budgets Module - Cost & Token Management
|
|
3
|
-
*
|
|
4
|
-
* NOT IMPLEMENTED - Backend endpoint not available.
|
|
5
|
-
* All methods return 501 NotImplemented.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
9
|
-
|
|
10
|
-
// ============================================================================
|
|
11
|
-
// Types
|
|
12
|
-
// ============================================================================
|
|
13
|
-
|
|
14
|
-
export type BudgetScope = "agent" | "workspace" | "tenant" | "user";
|
|
15
|
-
export type BudgetPeriod = "daily" | "weekly" | "monthly" | "total";
|
|
16
|
-
export type BudgetResourceType = "tokens" | "cost" | "api_calls";
|
|
17
|
-
|
|
18
|
-
export interface Budget {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
scope: BudgetScope;
|
|
22
|
-
scope_id: string;
|
|
23
|
-
resource_type: BudgetResourceType;
|
|
24
|
-
limit_value: number;
|
|
25
|
-
current_value: number;
|
|
26
|
-
period: BudgetPeriod;
|
|
27
|
-
period_start: string;
|
|
28
|
-
period_end: string;
|
|
29
|
-
alert_threshold_percent?: number;
|
|
30
|
-
created_at: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface BudgetUsage {
|
|
34
|
-
budget_id: string;
|
|
35
|
-
current_value: number;
|
|
36
|
-
limit_value: number;
|
|
37
|
-
percent_used: number;
|
|
38
|
-
remaining: number;
|
|
39
|
-
period_start: string;
|
|
40
|
-
period_end: string;
|
|
41
|
-
breakdown: BudgetBreakdownItem[];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface BudgetBreakdownItem {
|
|
45
|
-
agent_id?: string;
|
|
46
|
-
agent_name?: string;
|
|
47
|
-
model?: string;
|
|
48
|
-
value: number;
|
|
49
|
-
percent_of_total: number;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface BudgetAlert {
|
|
53
|
-
id: string;
|
|
54
|
-
budget_id: string;
|
|
55
|
-
type: "threshold_warning" | "limit_reached" | "limit_exceeded";
|
|
56
|
-
message: string;
|
|
57
|
-
triggered_at: string;
|
|
58
|
-
acknowledged: boolean;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// ============================================================================
|
|
62
|
-
// Helper for 501 responses
|
|
63
|
-
// ============================================================================
|
|
64
|
-
|
|
65
|
-
function notImplemented<T>(method: string): APIResponse<T> {
|
|
66
|
-
return {
|
|
67
|
-
data: undefined,
|
|
68
|
-
error: {
|
|
69
|
-
code: "NOT_IMPLEMENTED",
|
|
70
|
-
message: `BudgetsModule.${method}() is not implemented. Backend endpoint not available.`,
|
|
71
|
-
},
|
|
72
|
-
response: new Response(null, { status: 501, statusText: "Not Implemented" }),
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// ============================================================================
|
|
77
|
-
// Module
|
|
78
|
-
// ============================================================================
|
|
79
|
-
|
|
80
|
-
export class BudgetsModule {
|
|
81
|
-
constructor(private client: RawClient, private headers: () => Record<string, string>) { }
|
|
82
|
-
|
|
83
|
-
/** @returns 501 Not Implemented */
|
|
84
|
-
async list(params?: {
|
|
85
|
-
scope?: BudgetScope;
|
|
86
|
-
scope_id?: string;
|
|
87
|
-
limit?: number;
|
|
88
|
-
offset?: number;
|
|
89
|
-
}): Promise<APIResponse<{ items: Budget[]; total: number }>> {
|
|
90
|
-
return notImplemented<{ items: Budget[]; total: number }>("list");
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/** @returns 501 Not Implemented */
|
|
94
|
-
async get(budgetId: string): Promise<APIResponse<Budget>> {
|
|
95
|
-
return notImplemented<Budget>("get");
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** @returns 501 Not Implemented */
|
|
99
|
-
async create(body: {
|
|
100
|
-
name: string;
|
|
101
|
-
scope: BudgetScope;
|
|
102
|
-
scope_id: string;
|
|
103
|
-
resource_type: BudgetResourceType;
|
|
104
|
-
limit_value: number;
|
|
105
|
-
period: BudgetPeriod;
|
|
106
|
-
alert_threshold_percent?: number;
|
|
107
|
-
}): Promise<APIResponse<Budget>> {
|
|
108
|
-
return notImplemented<Budget>("create");
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/** @returns 501 Not Implemented */
|
|
112
|
-
async getUsage(budgetId: string): Promise<APIResponse<BudgetUsage>> {
|
|
113
|
-
return notImplemented<BudgetUsage>("getUsage");
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/** @returns 501 Not Implemented */
|
|
117
|
-
async getAlerts(budgetId: string): Promise<APIResponse<BudgetAlert[]>> {
|
|
118
|
-
return notImplemented<BudgetAlert[]>("getAlerts");
|
|
119
|
-
}
|
|
120
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Capabilities Module - Agent Capability Discovery
|
|
3
|
-
*
|
|
4
|
-
* NOT IMPLEMENTED - Backend endpoint not available.
|
|
5
|
-
* All methods return 501 NotImplemented.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
9
|
-
|
|
10
|
-
// ============================================================================
|
|
11
|
-
// Types
|
|
12
|
-
// ============================================================================
|
|
13
|
-
|
|
14
|
-
export type CapabilityType = "tool" | "skill" | "knowledge" | "integration" | "model_feature";
|
|
15
|
-
|
|
16
|
-
export interface Capability {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
type: CapabilityType;
|
|
20
|
-
description?: string;
|
|
21
|
-
agent_id?: string;
|
|
22
|
-
is_available: boolean;
|
|
23
|
-
required_credentials?: string[];
|
|
24
|
-
required_permissions?: string[];
|
|
25
|
-
metadata?: Record<string, unknown>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface CapabilityTest {
|
|
29
|
-
capability_id: string;
|
|
30
|
-
test_name: string;
|
|
31
|
-
passed: boolean;
|
|
32
|
-
message?: string;
|
|
33
|
-
duration_ms: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface CapabilityMatrix {
|
|
37
|
-
agent_id: string;
|
|
38
|
-
capabilities: Capability[];
|
|
39
|
-
total: number;
|
|
40
|
-
available: number;
|
|
41
|
-
unavailable: number;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// ============================================================================
|
|
45
|
-
// Helper for 501 responses
|
|
46
|
-
// ============================================================================
|
|
47
|
-
|
|
48
|
-
function notImplemented<T>(method: string): APIResponse<T> {
|
|
49
|
-
return {
|
|
50
|
-
data: undefined,
|
|
51
|
-
error: {
|
|
52
|
-
code: "NOT_IMPLEMENTED",
|
|
53
|
-
message: `CapabilitiesModule.${method}() is not implemented. Backend endpoint not available.`,
|
|
54
|
-
},
|
|
55
|
-
response: new Response(null, { status: 501, statusText: "Not Implemented" }),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// ============================================================================
|
|
60
|
-
// Module
|
|
61
|
-
// ============================================================================
|
|
62
|
-
|
|
63
|
-
export class CapabilitiesModule {
|
|
64
|
-
constructor(private client: RawClient, private headers: () => Record<string, string>) { }
|
|
65
|
-
|
|
66
|
-
/** @returns 501 Not Implemented */
|
|
67
|
-
async list(params?: {
|
|
68
|
-
agent_id?: string;
|
|
69
|
-
type?: CapabilityType;
|
|
70
|
-
limit?: number;
|
|
71
|
-
offset?: number;
|
|
72
|
-
}): Promise<APIResponse<{ items: Capability[]; total: number }>> {
|
|
73
|
-
return notImplemented<{ items: Capability[]; total: number }>("list");
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/** @returns 501 Not Implemented */
|
|
77
|
-
async get(capabilityId: string): Promise<APIResponse<Capability>> {
|
|
78
|
-
return notImplemented<Capability>("get");
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/** @returns 501 Not Implemented */
|
|
82
|
-
async getMatrix(agentId: string): Promise<APIResponse<CapabilityMatrix>> {
|
|
83
|
-
return notImplemented<CapabilityMatrix>("getMatrix");
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/** @returns 501 Not Implemented */
|
|
87
|
-
async test(agentId: string, capabilityId: string): Promise<APIResponse<CapabilityTest>> {
|
|
88
|
-
return notImplemented<CapabilityTest>("test");
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/** @returns 501 Not Implemented */
|
|
92
|
-
async testAll(agentId: string): Promise<APIResponse<CapabilityTest[]>> {
|
|
93
|
-
return notImplemented<CapabilityTest[]>("testAll");
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deployments Module - Agent Lifecycle
|
|
3
|
-
*
|
|
4
|
-
* NOT IMPLEMENTED - Backend endpoint not available.
|
|
5
|
-
* All methods return 501 NotImplemented.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
9
|
-
|
|
10
|
-
// ============================================================================
|
|
11
|
-
// Types
|
|
12
|
-
// ============================================================================
|
|
13
|
-
|
|
14
|
-
export type DeploymentStatus = "pending" | "building" | "deploying" | "active" | "failed" | "rolled_back" | "deactivated";
|
|
15
|
-
export type Environment = "development" | "staging" | "production";
|
|
16
|
-
|
|
17
|
-
export interface Deployment {
|
|
18
|
-
id: string;
|
|
19
|
-
agent_id: string;
|
|
20
|
-
version_id: string;
|
|
21
|
-
environment: Environment;
|
|
22
|
-
status: DeploymentStatus;
|
|
23
|
-
endpoint_url?: string;
|
|
24
|
-
deployed_at?: string;
|
|
25
|
-
created_at: string;
|
|
26
|
-
created_by: string;
|
|
27
|
-
rollback_version_id?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface DeploymentConfig {
|
|
31
|
-
replicas?: number;
|
|
32
|
-
memory_mb?: number;
|
|
33
|
-
timeout_seconds?: number;
|
|
34
|
-
env_vars?: Record<string, string>;
|
|
35
|
-
auto_scale?: boolean;
|
|
36
|
-
min_replicas?: number;
|
|
37
|
-
max_replicas?: number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface DeploymentHealth {
|
|
41
|
-
deployment_id: string;
|
|
42
|
-
healthy: boolean;
|
|
43
|
-
replicas_running: number;
|
|
44
|
-
replicas_desired: number;
|
|
45
|
-
last_check: string;
|
|
46
|
-
error?: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// ============================================================================
|
|
50
|
-
// Helper for 501 responses
|
|
51
|
-
// ============================================================================
|
|
52
|
-
|
|
53
|
-
function notImplemented<T>(method: string): APIResponse<T> {
|
|
54
|
-
return {
|
|
55
|
-
data: undefined,
|
|
56
|
-
error: {
|
|
57
|
-
code: "NOT_IMPLEMENTED",
|
|
58
|
-
message: `DeploymentsModule.${method}() is not implemented. Backend endpoint not available.`,
|
|
59
|
-
},
|
|
60
|
-
response: new Response(null, { status: 501, statusText: "Not Implemented" }),
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// ============================================================================
|
|
65
|
-
// Module
|
|
66
|
-
// ============================================================================
|
|
67
|
-
|
|
68
|
-
export class DeploymentsModule {
|
|
69
|
-
constructor(private client: RawClient, private headers: () => Record<string, string>) { }
|
|
70
|
-
|
|
71
|
-
/** @returns 501 Not Implemented */
|
|
72
|
-
async list(params?: {
|
|
73
|
-
agent_id?: string;
|
|
74
|
-
environment?: Environment;
|
|
75
|
-
status?: DeploymentStatus;
|
|
76
|
-
limit?: number;
|
|
77
|
-
offset?: number;
|
|
78
|
-
}): Promise<APIResponse<{ items: Deployment[]; total: number }>> {
|
|
79
|
-
return notImplemented<{ items: Deployment[]; total: number }>("list");
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** @returns 501 Not Implemented */
|
|
83
|
-
async get(deploymentId: string): Promise<APIResponse<Deployment>> {
|
|
84
|
-
return notImplemented<Deployment>("get");
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/** @returns 501 Not Implemented */
|
|
88
|
-
async deploy(agentId: string, environment: Environment, config?: DeploymentConfig): Promise<APIResponse<Deployment>> {
|
|
89
|
-
return notImplemented<Deployment>("deploy");
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** @returns 501 Not Implemented */
|
|
93
|
-
async promote(deploymentId: string, toEnvironment: Environment): Promise<APIResponse<Deployment>> {
|
|
94
|
-
return notImplemented<Deployment>("promote");
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/** @returns 501 Not Implemented */
|
|
98
|
-
async rollback(deploymentId: string): Promise<APIResponse<Deployment>> {
|
|
99
|
-
return notImplemented<Deployment>("rollback");
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/** @returns 501 Not Implemented */
|
|
103
|
-
async health(deploymentId: string): Promise<APIResponse<DeploymentHealth>> {
|
|
104
|
-
return notImplemented<DeploymentHealth>("health");
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/** @returns 501 Not Implemented */
|
|
108
|
-
async deactivate(deploymentId: string): Promise<APIResponse<void>> {
|
|
109
|
-
return notImplemented<void>("deactivate");
|
|
110
|
-
}
|
|
111
|
-
}
|
package/src/modules/flows.ts
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flows Module - Workflow Orchestration
|
|
3
|
-
*
|
|
4
|
-
* NOT IMPLEMENTED - Backend endpoint not available.
|
|
5
|
-
* All methods return 501 NotImplemented.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
9
|
-
|
|
10
|
-
// ============================================================================
|
|
11
|
-
// Types
|
|
12
|
-
// ============================================================================
|
|
13
|
-
|
|
14
|
-
export type FlowStatus = "draft" | "active" | "paused" | "completed" | "failed" | "cancelled";
|
|
15
|
-
|
|
16
|
-
export interface FlowStep {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
agent_id: string;
|
|
20
|
-
type: "agent" | "condition" | "parallel" | "wait" | "human_approval";
|
|
21
|
-
config?: Record<string, unknown>;
|
|
22
|
-
next_steps?: string[];
|
|
23
|
-
on_error?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface Flow {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
description?: string;
|
|
30
|
-
steps: FlowStep[];
|
|
31
|
-
status: FlowStatus;
|
|
32
|
-
version: number;
|
|
33
|
-
created_at: string;
|
|
34
|
-
updated_at: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface FlowRun {
|
|
38
|
-
id: string;
|
|
39
|
-
flow_id: string;
|
|
40
|
-
status: FlowStatus;
|
|
41
|
-
current_step_id?: string;
|
|
42
|
-
completed_steps: string[];
|
|
43
|
-
failed_steps: string[];
|
|
44
|
-
context: Record<string, unknown>;
|
|
45
|
-
started_at: string;
|
|
46
|
-
completed_at?: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface FlowVisualization {
|
|
50
|
-
mermaid: string;
|
|
51
|
-
svg?: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface FlowSimulationResult {
|
|
55
|
-
success: boolean;
|
|
56
|
-
steps_executed: string[];
|
|
57
|
-
estimated_duration_seconds: number;
|
|
58
|
-
estimated_cost: number;
|
|
59
|
-
potential_issues: string[];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface FlowListResponse {
|
|
63
|
-
items: Flow[];
|
|
64
|
-
total: number;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// ============================================================================
|
|
68
|
-
// Helper for 501 responses
|
|
69
|
-
// ============================================================================
|
|
70
|
-
|
|
71
|
-
function notImplemented<T>(method: string): APIResponse<T> {
|
|
72
|
-
return {
|
|
73
|
-
data: undefined,
|
|
74
|
-
error: {
|
|
75
|
-
code: "NOT_IMPLEMENTED",
|
|
76
|
-
message: `FlowsModule.${method}() is not implemented. Backend endpoint not available.`,
|
|
77
|
-
},
|
|
78
|
-
response: new Response(null, { status: 501, statusText: "Not Implemented" }),
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// ============================================================================
|
|
83
|
-
// Module
|
|
84
|
-
// ============================================================================
|
|
85
|
-
|
|
86
|
-
export class FlowsModule {
|
|
87
|
-
constructor(private client: RawClient, private headers: () => Record<string, string>) { }
|
|
88
|
-
|
|
89
|
-
/** @returns 501 Not Implemented */
|
|
90
|
-
async list(params?: { limit?: number; offset?: number }): Promise<APIResponse<FlowListResponse>> {
|
|
91
|
-
return notImplemented<FlowListResponse>("list");
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/** @returns 501 Not Implemented */
|
|
95
|
-
async get(flowId: string): Promise<APIResponse<Flow>> {
|
|
96
|
-
return notImplemented<Flow>("get");
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/** @returns 501 Not Implemented */
|
|
100
|
-
async create(body: { name: string; description?: string; steps: FlowStep[] }): Promise<APIResponse<Flow>> {
|
|
101
|
-
return notImplemented<Flow>("create");
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** @returns 501 Not Implemented */
|
|
105
|
-
async run(flowId: string, input?: Record<string, unknown>): Promise<APIResponse<FlowRun>> {
|
|
106
|
-
return notImplemented<FlowRun>("run");
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/** @returns 501 Not Implemented */
|
|
110
|
-
async pause(flowRunId: string): Promise<APIResponse<FlowRun>> {
|
|
111
|
-
return notImplemented<FlowRun>("pause");
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/** @returns 501 Not Implemented */
|
|
115
|
-
async resume(flowRunId: string): Promise<APIResponse<FlowRun>> {
|
|
116
|
-
return notImplemented<FlowRun>("resume");
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/** @returns 501 Not Implemented */
|
|
120
|
-
async cancel(flowRunId: string): Promise<APIResponse<FlowRun>> {
|
|
121
|
-
return notImplemented<FlowRun>("cancel");
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/** @returns 501 Not Implemented */
|
|
125
|
-
async visualize(flowId: string): Promise<APIResponse<FlowVisualization>> {
|
|
126
|
-
return notImplemented<FlowVisualization>("visualize");
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/** @returns 501 Not Implemented */
|
|
130
|
-
async simulate(flowId: string, input?: Record<string, unknown>): Promise<APIResponse<FlowSimulationResult>> {
|
|
131
|
-
return notImplemented<FlowSimulationResult>("simulate");
|
|
132
|
-
}
|
|
133
|
-
}
|
package/src/modules/handoff.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Handoff Module - Multi-Agent Delegation
|
|
3
|
-
*
|
|
4
|
-
* NOT IMPLEMENTED - Backend endpoint not available.
|
|
5
|
-
* All methods return 501 NotImplemented.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
9
|
-
|
|
10
|
-
// ============================================================================
|
|
11
|
-
// Types
|
|
12
|
-
// ============================================================================
|
|
13
|
-
|
|
14
|
-
export type HandoffMode = "same_thread" | "subthread" | "new_thread";
|
|
15
|
-
|
|
16
|
-
export interface HandoffOptions {
|
|
17
|
-
mode: HandoffMode;
|
|
18
|
-
payload?: Record<string, unknown>;
|
|
19
|
-
constraints?: HandoffConstraints;
|
|
20
|
-
inherit_budget?: boolean;
|
|
21
|
-
inherit_policies?: boolean;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface HandoffConstraints {
|
|
25
|
-
max_tool_calls?: number;
|
|
26
|
-
max_tokens?: number;
|
|
27
|
-
tool_allowlist?: string[];
|
|
28
|
-
tool_denylist?: string[];
|
|
29
|
-
timeout_seconds?: number;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface HandoffResult {
|
|
33
|
-
run_id: string;
|
|
34
|
-
parent_run_id: string;
|
|
35
|
-
to_agent_id: string;
|
|
36
|
-
mode: HandoffMode;
|
|
37
|
-
thread_id: string;
|
|
38
|
-
status: "pending" | "running" | "completed" | "failed";
|
|
39
|
-
created_at: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface ForkOptions {
|
|
43
|
-
mode?: HandoffMode;
|
|
44
|
-
checkpoint_id?: string;
|
|
45
|
-
copy_messages?: boolean;
|
|
46
|
-
copy_state?: boolean;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface ForkResult {
|
|
50
|
-
original_thread_id: string;
|
|
51
|
-
forked_thread_id: string;
|
|
52
|
-
checkpoint_id?: string;
|
|
53
|
-
created_at: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface RunChainNode {
|
|
57
|
-
run_id: string;
|
|
58
|
-
agent_id: string;
|
|
59
|
-
agent_name: string;
|
|
60
|
-
status: string;
|
|
61
|
-
parent_run_id?: string;
|
|
62
|
-
children: RunChainNode[];
|
|
63
|
-
depth: number;
|
|
64
|
-
started_at: string;
|
|
65
|
-
completed_at?: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface RunChain {
|
|
69
|
-
root_run_id: string;
|
|
70
|
-
total_runs: number;
|
|
71
|
-
max_depth: number;
|
|
72
|
-
nodes: RunChainNode[];
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// ============================================================================
|
|
76
|
-
// Helper for 501 responses
|
|
77
|
-
// ============================================================================
|
|
78
|
-
|
|
79
|
-
function notImplemented<T>(method: string): APIResponse<T> {
|
|
80
|
-
return {
|
|
81
|
-
data: undefined,
|
|
82
|
-
error: {
|
|
83
|
-
code: "NOT_IMPLEMENTED",
|
|
84
|
-
message: `HandoffModule.${method}() is not implemented. Backend endpoint not available.`,
|
|
85
|
-
},
|
|
86
|
-
response: new Response(null, { status: 501, statusText: "Not Implemented" }),
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// ============================================================================
|
|
91
|
-
// Module
|
|
92
|
-
// ============================================================================
|
|
93
|
-
|
|
94
|
-
export class HandoffModule {
|
|
95
|
-
constructor(private client: RawClient, private headers: () => Record<string, string>) { }
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Hand off current run to another agent.
|
|
99
|
-
* @returns 501 Not Implemented - Backend not available
|
|
100
|
-
*/
|
|
101
|
-
async handoff(
|
|
102
|
-
runId: string,
|
|
103
|
-
toAgentId: string,
|
|
104
|
-
options?: HandoffOptions
|
|
105
|
-
): Promise<APIResponse<HandoffResult>> {
|
|
106
|
-
return notImplemented<HandoffResult>("handoff");
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Fork a thread into a new conversation branch.
|
|
111
|
-
* @returns 501 Not Implemented - Backend not available
|
|
112
|
-
*/
|
|
113
|
-
async fork(threadId: string, options?: ForkOptions): Promise<APIResponse<ForkResult>> {
|
|
114
|
-
return notImplemented<ForkResult>("fork");
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Get the full run chain (delegation tree).
|
|
119
|
-
* @returns 501 Not Implemented - Backend not available
|
|
120
|
-
*/
|
|
121
|
-
async getChain(runId: string): Promise<APIResponse<RunChain>> {
|
|
122
|
-
return notImplemented<RunChain>("getChain");
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Get parent runs in the chain.
|
|
127
|
-
* @returns 501 Not Implemented - Backend not available
|
|
128
|
-
*/
|
|
129
|
-
async getParents(runId: string): Promise<APIResponse<RunChainNode[]>> {
|
|
130
|
-
return notImplemented<RunChainNode[]>("getParents");
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Get child runs in the chain.
|
|
135
|
-
* @returns 501 Not Implemented - Backend not available
|
|
136
|
-
*/
|
|
137
|
-
async getChildren(runId: string): Promise<APIResponse<RunChainNode[]>> {
|
|
138
|
-
return notImplemented<RunChainNode[]>("getChildren");
|
|
139
|
-
}
|
|
140
|
-
}
|
package/src/modules/incidents.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Incidents Module - Error & Alert Management
|
|
3
|
-
*
|
|
4
|
-
* NOT IMPLEMENTED - Backend endpoint not available.
|
|
5
|
-
* All methods return 501 NotImplemented.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
9
|
-
|
|
10
|
-
// ============================================================================
|
|
11
|
-
// Types
|
|
12
|
-
// ============================================================================
|
|
13
|
-
|
|
14
|
-
export type IncidentSeverity = "low" | "medium" | "high" | "critical";
|
|
15
|
-
export type IncidentStatus = "open" | "investigating" | "identified" | "monitoring" | "resolved" | "closed";
|
|
16
|
-
|
|
17
|
-
export interface Incident {
|
|
18
|
-
id: string;
|
|
19
|
-
title: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
severity: IncidentSeverity;
|
|
22
|
-
status: IncidentStatus;
|
|
23
|
-
agent_id?: string;
|
|
24
|
-
run_id?: string;
|
|
25
|
-
error_type?: string;
|
|
26
|
-
error_message?: string;
|
|
27
|
-
stack_trace?: string;
|
|
28
|
-
affected_users?: number;
|
|
29
|
-
created_at: string;
|
|
30
|
-
updated_at: string;
|
|
31
|
-
resolved_at?: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface IncidentUpdate {
|
|
35
|
-
id: string;
|
|
36
|
-
incident_id: string;
|
|
37
|
-
message: string;
|
|
38
|
-
status_change?: IncidentStatus;
|
|
39
|
-
created_by: string;
|
|
40
|
-
created_at: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface IncidentMetrics {
|
|
44
|
-
total_open: number;
|
|
45
|
-
by_severity: Record<IncidentSeverity, number>;
|
|
46
|
-
mttr_seconds: number;
|
|
47
|
-
trend_last_7_days: number[];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// ============================================================================
|
|
51
|
-
// Helper for 501 responses
|
|
52
|
-
// ============================================================================
|
|
53
|
-
|
|
54
|
-
function notImplemented<T>(method: string): APIResponse<T> {
|
|
55
|
-
return {
|
|
56
|
-
data: undefined,
|
|
57
|
-
error: {
|
|
58
|
-
code: "NOT_IMPLEMENTED",
|
|
59
|
-
message: `IncidentsModule.${method}() is not implemented. Backend endpoint not available.`,
|
|
60
|
-
},
|
|
61
|
-
response: new Response(null, { status: 501, statusText: "Not Implemented" }),
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// ============================================================================
|
|
66
|
-
// Module
|
|
67
|
-
// ============================================================================
|
|
68
|
-
|
|
69
|
-
export class IncidentsModule {
|
|
70
|
-
constructor(private client: RawClient, private headers: () => Record<string, string>) { }
|
|
71
|
-
|
|
72
|
-
/** @returns 501 Not Implemented */
|
|
73
|
-
async list(params?: {
|
|
74
|
-
status?: IncidentStatus;
|
|
75
|
-
severity?: IncidentSeverity;
|
|
76
|
-
agent_id?: string;
|
|
77
|
-
limit?: number;
|
|
78
|
-
offset?: number;
|
|
79
|
-
}): Promise<APIResponse<{ items: Incident[]; total: number }>> {
|
|
80
|
-
return notImplemented<{ items: Incident[]; total: number }>("list");
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** @returns 501 Not Implemented */
|
|
84
|
-
async get(incidentId: string): Promise<APIResponse<Incident>> {
|
|
85
|
-
return notImplemented<Incident>("get");
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/** @returns 501 Not Implemented */
|
|
89
|
-
async create(body: {
|
|
90
|
-
title: string;
|
|
91
|
-
description?: string;
|
|
92
|
-
severity: IncidentSeverity;
|
|
93
|
-
agent_id?: string;
|
|
94
|
-
run_id?: string;
|
|
95
|
-
}): Promise<APIResponse<Incident>> {
|
|
96
|
-
return notImplemented<Incident>("create");
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/** @returns 501 Not Implemented */
|
|
100
|
-
async update(incidentId: string, status: IncidentStatus, message?: string): Promise<APIResponse<IncidentUpdate>> {
|
|
101
|
-
return notImplemented<IncidentUpdate>("update");
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** @returns 501 Not Implemented */
|
|
105
|
-
async resolve(incidentId: string, message?: string): Promise<APIResponse<Incident>> {
|
|
106
|
-
return notImplemented<Incident>("resolve");
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/** @returns 501 Not Implemented */
|
|
110
|
-
async getMetrics(): Promise<APIResponse<IncidentMetrics>> {
|
|
111
|
-
return notImplemented<IncidentMetrics>("getMetrics");
|
|
112
|
-
}
|
|
113
|
-
}
|
package/src/modules/policies.ts
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Policies Module - Governance & Compliance
|
|
3
|
-
*
|
|
4
|
-
* NOT IMPLEMENTED - Backend endpoint not available.
|
|
5
|
-
* All methods return 501 NotImplemented.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { RawClient, APIResponse } from "../client/raw.js";
|
|
9
|
-
|
|
10
|
-
// ============================================================================
|
|
11
|
-
// Types
|
|
12
|
-
// ============================================================================
|
|
13
|
-
|
|
14
|
-
export type PolicyScope = "agent" | "workspace" | "tenant" | "global";
|
|
15
|
-
export type PolicyEnforcement = "hard" | "soft" | "audit_only";
|
|
16
|
-
|
|
17
|
-
export interface PolicyRule {
|
|
18
|
-
id: string;
|
|
19
|
-
type: "allow" | "deny" | "require_approval" | "log";
|
|
20
|
-
condition: string;
|
|
21
|
-
action?: string;
|
|
22
|
-
message?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface Policy {
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
scope: PolicyScope;
|
|
30
|
-
scope_id?: string;
|
|
31
|
-
enforcement: PolicyEnforcement;
|
|
32
|
-
rules: PolicyRule[];
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
priority: number;
|
|
35
|
-
created_at: string;
|
|
36
|
-
updated_at: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface PolicyEvaluation {
|
|
40
|
-
policy_id: string;
|
|
41
|
-
policy_name: string;
|
|
42
|
-
passed: boolean;
|
|
43
|
-
violated_rules: PolicyRule[];
|
|
44
|
-
audit_log_id?: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface PolicyEvaluationResult {
|
|
48
|
-
allowed: boolean;
|
|
49
|
-
evaluations: PolicyEvaluation[];
|
|
50
|
-
requires_approval: boolean;
|
|
51
|
-
blocking_policies: string[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// ============================================================================
|
|
55
|
-
// Helper for 501 responses
|
|
56
|
-
// ============================================================================
|
|
57
|
-
|
|
58
|
-
function notImplemented<T>(method: string): APIResponse<T> {
|
|
59
|
-
return {
|
|
60
|
-
data: undefined,
|
|
61
|
-
error: {
|
|
62
|
-
code: "NOT_IMPLEMENTED",
|
|
63
|
-
message: `PoliciesModule.${method}() is not implemented. Backend endpoint not available.`,
|
|
64
|
-
},
|
|
65
|
-
response: new Response(null, { status: 501, statusText: "Not Implemented" }),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// ============================================================================
|
|
70
|
-
// Module
|
|
71
|
-
// ============================================================================
|
|
72
|
-
|
|
73
|
-
export class PoliciesModule {
|
|
74
|
-
constructor(private client: RawClient, private headers: () => Record<string, string>) { }
|
|
75
|
-
|
|
76
|
-
/** @returns 501 Not Implemented */
|
|
77
|
-
async list(params?: {
|
|
78
|
-
scope?: PolicyScope;
|
|
79
|
-
scope_id?: string;
|
|
80
|
-
enabled?: boolean;
|
|
81
|
-
limit?: number;
|
|
82
|
-
offset?: number;
|
|
83
|
-
}): Promise<APIResponse<{ items: Policy[]; total: number }>> {
|
|
84
|
-
return notImplemented<{ items: Policy[]; total: number }>("list");
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/** @returns 501 Not Implemented */
|
|
88
|
-
async get(policyId: string): Promise<APIResponse<Policy>> {
|
|
89
|
-
return notImplemented<Policy>("get");
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** @returns 501 Not Implemented */
|
|
93
|
-
async create(body: {
|
|
94
|
-
name: string;
|
|
95
|
-
description?: string;
|
|
96
|
-
scope: PolicyScope;
|
|
97
|
-
scope_id?: string;
|
|
98
|
-
enforcement: PolicyEnforcement;
|
|
99
|
-
rules: PolicyRule[];
|
|
100
|
-
}): Promise<APIResponse<Policy>> {
|
|
101
|
-
return notImplemented<Policy>("create");
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** @returns 501 Not Implemented */
|
|
105
|
-
async evaluate(context: {
|
|
106
|
-
agent_id: string;
|
|
107
|
-
action: string;
|
|
108
|
-
payload?: Record<string, unknown>;
|
|
109
|
-
}): Promise<APIResponse<PolicyEvaluationResult>> {
|
|
110
|
-
return notImplemented<PolicyEvaluationResult>("evaluate");
|
|
111
|
-
}
|
|
112
|
-
}
|