@openagentpack/sdk 0.2.0-beta.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +230 -10
- package/dist/index.js +1330 -230
- package/dist/{session-event-CObCawiI.d.ts → session-event-CxLg_XqS.d.ts} +51 -7
- package/dist/session-events.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ResourceAddress, a as ResourceType, C as CloudAgent, b as CloudEnvironment, c as CloudVault, E as EventStreamOptions, P as ProviderSessionEvent, d as EventListOptions, e as ProviderSessionEventList, f as PlannedAction, D as Diagnostic, A as AgentDefinition, g as AgentWithReadiness, h as AgentSyncRun } from './session-event-
|
|
2
|
-
export { i as ActionType, j as ActionTypeSchema, k as AgentDefinitionSchema, l as AgentDriftSeverity, m as AgentDriftSeveritySchema, n as AgentModel, o as AgentModelSchema, p as AgentReadiness, q as AgentReadinessSchema, r as AgentReadinessStatus, s as AgentReadinessStatusSchema, t as AgentRecoveryAction, u as AgentRecoveryActionSchema, v as AgentSkillRef, w as AgentSkillRefSchema, x as AgentSyncResult, y as AgentSyncResultSchema, z as AgentSyncRunSchema, B as AgentSyncStatus, F as AgentSyncStatusSchema, G as AgentWithReadinessSchema, H as CloudAgentSchema, I as CloudEnvironmentSchema, J as CloudVaultSchema, K as CreateSessionRequest, L as CreateSessionRequestSchema, M as CreateSessionResponse, N as CreateSessionResponseSchema, O as DiagnosticSchema, Q as DiagnosticSeverity, S as DiagnosticSeveritySchema, T as DriftKind, U as DriftKindSchema, V as GetSessionRequest, W as GetSessionRequestSchema, X as KNOWN_SESSION_EVENT_TYPES, Y as KnownSessionEventType, Z as ListCloudAgentsResponse, _ as ListCloudAgentsResponseSchema, $ as ListCloudEnvironmentsResponse, a0 as ListCloudEnvironmentsResponseSchema, a1 as ListSessionEventsRequest, a2 as ListSessionEventsRequestSchema, a3 as ListSessionEventsResponse, a4 as ListSessionEventsResponseSchema, a5 as ListSessionsRequest, a6 as ListSessionsRequestSchema, a7 as ListSessionsResponse, a8 as ListSessionsResponseSchema, a9 as PlanReadinessImpact, aa as PlanReadinessImpactSchema, ab as PlannedActionSchema, ac as ResourceAddressSchema, ad as ResourceTypeSchema, ae as SendEventRequest, af as SendEventRequestSchema, ag as SendEventResponse, ah as SendEventResponseSchema, ai as Session, aj as SessionAgent, ak as SessionAgentSchema, al as SessionContentBlock, am as SessionContentBlockSchema, an as SessionEvent, ao as SessionEventSchema, ap as SessionEventType, aq as SessionEventTypeName, ar as SessionEventTypeSchema, as as SessionSchema } from './session-event-
|
|
1
|
+
import { R as ResourceAddress, a as ResourceType, C as CloudAgent, b as CloudEnvironment, c as CloudVault, E as EventStreamOptions, P as ProviderSessionEvent, d as EventListOptions, e as ProviderSessionEventList, f as PlannedAction, D as Diagnostic, A as AgentDefinition, g as AgentWithReadiness, h as AgentSyncRun } from './session-event-CxLg_XqS.js';
|
|
2
|
+
export { i as ActionType, j as ActionTypeSchema, k as AgentDefinitionSchema, l as AgentDriftSeverity, m as AgentDriftSeveritySchema, n as AgentModel, o as AgentModelSchema, p as AgentReadiness, q as AgentReadinessSchema, r as AgentReadinessStatus, s as AgentReadinessStatusSchema, t as AgentRecoveryAction, u as AgentRecoveryActionSchema, v as AgentSkillRef, w as AgentSkillRefSchema, x as AgentSyncResult, y as AgentSyncResultSchema, z as AgentSyncRunSchema, B as AgentSyncStatus, F as AgentSyncStatusSchema, G as AgentWithReadinessSchema, H as CloudAgentSchema, I as CloudEnvironmentSchema, J as CloudVaultSchema, K as CreateSessionRequest, L as CreateSessionRequestSchema, M as CreateSessionResponse, N as CreateSessionResponseSchema, O as DiagnosticSchema, Q as DiagnosticSeverity, S as DiagnosticSeveritySchema, T as DriftKind, U as DriftKindSchema, V as GetSessionRequest, W as GetSessionRequestSchema, X as KNOWN_SESSION_EVENT_TYPES, Y as KnownSessionEventType, Z as ListCloudAgentsResponse, _ as ListCloudAgentsResponseSchema, $ as ListCloudEnvironmentsResponse, a0 as ListCloudEnvironmentsResponseSchema, a1 as ListSessionEventsRequest, a2 as ListSessionEventsRequestSchema, a3 as ListSessionEventsResponse, a4 as ListSessionEventsResponseSchema, a5 as ListSessionsRequest, a6 as ListSessionsRequestSchema, a7 as ListSessionsResponse, a8 as ListSessionsResponseSchema, a9 as PlanReadinessImpact, aa as PlanReadinessImpactSchema, ab as PlannedActionSchema, ac as ResourceAddressSchema, ad as ResourceTypeSchema, ae as SendEventRequest, af as SendEventRequestSchema, ag as SendEventResponse, ah as SendEventResponseSchema, ai as Session, aj as SessionAgent, ak as SessionAgentSchema, al as SessionContentBlock, am as SessionContentBlockSchema, an as SessionEvent, ao as SessionEventSchema, ap as SessionEventType, aq as SessionEventTypeName, ar as SessionEventTypeSchema, as as SessionSchema } from './session-event-CxLg_XqS.js';
|
|
3
3
|
import { P as ProviderFileInfo } from './file-URqwlxLf.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
@@ -18,17 +18,33 @@ interface ProjectConfig {
|
|
|
18
18
|
memory_stores?: Record<string, MemoryStoreDecl>;
|
|
19
19
|
skills?: Record<string, SkillDecl>;
|
|
20
20
|
files?: Record<string, FileDecl>;
|
|
21
|
+
identities?: Record<string, IdentityDecl>;
|
|
21
22
|
agents?: Record<string, AgentDecl>;
|
|
23
|
+
channels?: Record<string, ChannelDecl>;
|
|
22
24
|
deployments?: Record<string, DeploymentDecl>;
|
|
23
25
|
}
|
|
24
26
|
interface DefaultsConfig {
|
|
25
27
|
provider?: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
/** Logical name of the default declared Identity used by identity-aware resources and runtimes. */
|
|
29
|
+
identity?: string;
|
|
30
|
+
}
|
|
31
|
+
type IdentityDecl = ManagedIdentityDecl | ExternalIdentityDecl;
|
|
32
|
+
interface ManagedIdentityDecl {
|
|
33
|
+
provider?: ProviderName;
|
|
34
|
+
external_id: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
enabled?: boolean;
|
|
37
|
+
metadata?: Record<string, string>;
|
|
38
|
+
identity_id?: never;
|
|
39
|
+
}
|
|
40
|
+
interface ExternalIdentityDecl {
|
|
41
|
+
provider?: ProviderName;
|
|
42
|
+
/** Pre-existing provider Identity id. External references are never mutated or deleted. */
|
|
43
|
+
identity_id: string;
|
|
44
|
+
external_id?: never;
|
|
45
|
+
name?: never;
|
|
46
|
+
enabled?: never;
|
|
47
|
+
metadata?: never;
|
|
32
48
|
}
|
|
33
49
|
interface EnvironmentDecl {
|
|
34
50
|
name?: string;
|
|
@@ -87,6 +103,7 @@ interface CredentialDecl {
|
|
|
87
103
|
interface MemoryStoreDecl {
|
|
88
104
|
description: string;
|
|
89
105
|
provider?: ProviderName;
|
|
106
|
+
metadata?: Record<string, string>;
|
|
90
107
|
entries?: MemoryEntryDecl[];
|
|
91
108
|
}
|
|
92
109
|
interface MemoryEntryDecl {
|
|
@@ -133,6 +150,18 @@ interface AgentDecl {
|
|
|
133
150
|
interface AgentDeliveryDecl {
|
|
134
151
|
type: "managed" | "forward";
|
|
135
152
|
}
|
|
153
|
+
interface ChannelDecl {
|
|
154
|
+
provider?: ProviderName;
|
|
155
|
+
/** Logical Agent name. The provider adapter resolves its materialized remote resource. */
|
|
156
|
+
agent: string;
|
|
157
|
+
/** Logical Identity name. Falls back to defaults.identity. */
|
|
158
|
+
identity?: string;
|
|
159
|
+
type: string;
|
|
160
|
+
name?: string;
|
|
161
|
+
enabled?: boolean;
|
|
162
|
+
credentials?: Record<string, string>;
|
|
163
|
+
options?: Record<string, unknown>;
|
|
164
|
+
}
|
|
136
165
|
type AgentSkillDecl = string | AgentSkillRefDecl;
|
|
137
166
|
interface AgentSkillRefDecl {
|
|
138
167
|
type: "official" | "custom";
|
|
@@ -177,6 +206,8 @@ interface DeploymentDecl {
|
|
|
177
206
|
description?: string;
|
|
178
207
|
provider?: ProviderName;
|
|
179
208
|
metadata?: Record<string, string>;
|
|
209
|
+
/** Qoder-only deployment-level variables copied into each created session. */
|
|
210
|
+
environment_variables?: string;
|
|
180
211
|
}
|
|
181
212
|
type DeploymentResourceDecl = DeploymentFileResource | DeploymentMemoryStoreResource | DeploymentGithubRepoResource;
|
|
182
213
|
interface DeploymentFileResource {
|
|
@@ -229,6 +260,132 @@ interface ResolvedProjectConfig extends ProjectConfig {
|
|
|
229
260
|
_resolved: true;
|
|
230
261
|
}
|
|
231
262
|
|
|
263
|
+
type MemoryMetadata = Record<string, string>;
|
|
264
|
+
interface MemoryStoreInfo {
|
|
265
|
+
id: string;
|
|
266
|
+
type: "memory_store";
|
|
267
|
+
name: string;
|
|
268
|
+
description: string;
|
|
269
|
+
metadata: MemoryMetadata;
|
|
270
|
+
status?: "active" | "archived" | string;
|
|
271
|
+
entry_count?: number;
|
|
272
|
+
total_size?: number;
|
|
273
|
+
session_count?: number;
|
|
274
|
+
created_by?: MemoryActor;
|
|
275
|
+
created_at: string;
|
|
276
|
+
updated_at: string;
|
|
277
|
+
archived_at?: string | null;
|
|
278
|
+
}
|
|
279
|
+
interface MemoryInfo {
|
|
280
|
+
id: string;
|
|
281
|
+
type: "memory";
|
|
282
|
+
memory_store_id: string;
|
|
283
|
+
path: string;
|
|
284
|
+
content?: string | null;
|
|
285
|
+
content_size_bytes: number;
|
|
286
|
+
content_sha256: string;
|
|
287
|
+
version?: number;
|
|
288
|
+
memory_version_id?: string;
|
|
289
|
+
metadata: MemoryMetadata;
|
|
290
|
+
created_by?: MemoryActor;
|
|
291
|
+
created_at: string;
|
|
292
|
+
updated_at: string;
|
|
293
|
+
}
|
|
294
|
+
interface MemoryPrefixInfo {
|
|
295
|
+
type: "memory_prefix";
|
|
296
|
+
path: string;
|
|
297
|
+
}
|
|
298
|
+
type MemoryListItem = MemoryInfo | MemoryPrefixInfo;
|
|
299
|
+
type MemoryVersionOperation = "created" | "updated" | "modified" | "deleted";
|
|
300
|
+
interface MemoryActor {
|
|
301
|
+
type: string;
|
|
302
|
+
api_key_id?: string;
|
|
303
|
+
session_id?: string;
|
|
304
|
+
user_id?: string;
|
|
305
|
+
}
|
|
306
|
+
interface MemoryVersionInfo {
|
|
307
|
+
id: string;
|
|
308
|
+
type: "memory_version";
|
|
309
|
+
memory_store_id: string;
|
|
310
|
+
memory_id: string;
|
|
311
|
+
path?: string | null;
|
|
312
|
+
content?: string | null;
|
|
313
|
+
content_size_bytes?: number | null;
|
|
314
|
+
content_sha256?: string | null;
|
|
315
|
+
operation: MemoryVersionOperation;
|
|
316
|
+
version?: number;
|
|
317
|
+
redacted?: boolean;
|
|
318
|
+
redacted_at?: string | null;
|
|
319
|
+
created_by?: MemoryActor;
|
|
320
|
+
created_at: string;
|
|
321
|
+
}
|
|
322
|
+
interface MemoryPage<T> {
|
|
323
|
+
data: T[];
|
|
324
|
+
has_more: boolean;
|
|
325
|
+
next_cursor?: string;
|
|
326
|
+
}
|
|
327
|
+
interface MemoryProviderCapabilities {
|
|
328
|
+
archive_store: boolean;
|
|
329
|
+
batch_create: boolean;
|
|
330
|
+
versions: boolean;
|
|
331
|
+
optimistic_concurrency: boolean;
|
|
332
|
+
memory_metadata: boolean;
|
|
333
|
+
}
|
|
334
|
+
interface MemoryStoreListOptions {
|
|
335
|
+
limit?: number;
|
|
336
|
+
cursor?: string;
|
|
337
|
+
include_archived?: boolean;
|
|
338
|
+
}
|
|
339
|
+
interface MemoryListOptions {
|
|
340
|
+
limit?: number;
|
|
341
|
+
cursor?: string;
|
|
342
|
+
prefix?: string;
|
|
343
|
+
depth?: number;
|
|
344
|
+
view?: "basic" | "full";
|
|
345
|
+
}
|
|
346
|
+
interface MemoryVersionListOptions {
|
|
347
|
+
limit?: number;
|
|
348
|
+
cursor?: string;
|
|
349
|
+
memory_id?: string;
|
|
350
|
+
view?: "basic" | "full";
|
|
351
|
+
}
|
|
352
|
+
interface CreateMemoryStoreInput {
|
|
353
|
+
name: string;
|
|
354
|
+
description?: string;
|
|
355
|
+
metadata?: MemoryMetadata;
|
|
356
|
+
}
|
|
357
|
+
interface UpdateMemoryStoreInput {
|
|
358
|
+
name?: string;
|
|
359
|
+
description?: string;
|
|
360
|
+
metadata?: MemoryMetadata;
|
|
361
|
+
}
|
|
362
|
+
interface CreateMemoryInput {
|
|
363
|
+
path: string;
|
|
364
|
+
content: string;
|
|
365
|
+
metadata?: MemoryMetadata;
|
|
366
|
+
}
|
|
367
|
+
interface BatchCreateMemoryInput {
|
|
368
|
+
items: CreateMemoryInput[];
|
|
369
|
+
on_conflict?: "overwrite" | "fail";
|
|
370
|
+
}
|
|
371
|
+
interface BatchCreateMemoryResultItem {
|
|
372
|
+
path: string;
|
|
373
|
+
memory?: MemoryInfo;
|
|
374
|
+
error?: {
|
|
375
|
+
type: string;
|
|
376
|
+
message: string;
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
interface BatchCreateMemoryResult {
|
|
380
|
+
results: BatchCreateMemoryResultItem[];
|
|
381
|
+
}
|
|
382
|
+
interface UpdateMemoryInput {
|
|
383
|
+
path?: string;
|
|
384
|
+
content?: string;
|
|
385
|
+
metadata?: MemoryMetadata;
|
|
386
|
+
expected_content_sha256?: string;
|
|
387
|
+
}
|
|
388
|
+
|
|
232
389
|
interface SessionFileResource {
|
|
233
390
|
file_id: string;
|
|
234
391
|
mount_path: string;
|
|
@@ -385,6 +542,10 @@ interface ResolvedDeploymentRefs {
|
|
|
385
542
|
vault_ids: string[];
|
|
386
543
|
memory_store_ids: Record<string, string>;
|
|
387
544
|
}
|
|
545
|
+
interface ResolvedChannelRefs {
|
|
546
|
+
identity_id: string;
|
|
547
|
+
agent_id: string;
|
|
548
|
+
}
|
|
388
549
|
interface DeploymentContext {
|
|
389
550
|
id: string | null;
|
|
390
551
|
name: string;
|
|
@@ -415,6 +576,20 @@ interface DeploymentInfo$1 {
|
|
|
415
576
|
};
|
|
416
577
|
attributes?: Record<string, unknown>;
|
|
417
578
|
}
|
|
579
|
+
interface DeploymentListFilter {
|
|
580
|
+
agent_id?: string;
|
|
581
|
+
status?: "active" | "paused";
|
|
582
|
+
include_archived?: boolean;
|
|
583
|
+
limit?: number;
|
|
584
|
+
page?: string;
|
|
585
|
+
created_at_gte?: string;
|
|
586
|
+
created_at_lte?: string;
|
|
587
|
+
}
|
|
588
|
+
interface DeploymentListResult {
|
|
589
|
+
deployments: DeploymentInfo$1[];
|
|
590
|
+
has_more: boolean;
|
|
591
|
+
next_page?: string;
|
|
592
|
+
}
|
|
418
593
|
interface ProviderAdapter {
|
|
419
594
|
readonly name: string;
|
|
420
595
|
/**
|
|
@@ -422,6 +597,7 @@ interface ProviderAdapter {
|
|
|
422
597
|
* resume after. true → send-then-stream with `afterId`; false → connect-before-send.
|
|
423
598
|
*/
|
|
424
599
|
readonly eventResume: boolean;
|
|
600
|
+
readonly memoryCapabilities?: MemoryProviderCapabilities;
|
|
425
601
|
validate(): Promise<void>;
|
|
426
602
|
/**
|
|
427
603
|
* Locate a remote resource. When `id` is provided, the resource is verified
|
|
@@ -464,13 +640,35 @@ interface ProviderAdapter {
|
|
|
464
640
|
updateTemplate?(id: string, name: string, decl: AgentDecl, refs: ResolvedTemplateRefs): Promise<RemoteResource>;
|
|
465
641
|
/** Remove the template from desired state. Qoder implements this as a soft archive. */
|
|
466
642
|
archiveTemplate?(id: string): Promise<void>;
|
|
643
|
+
createIdentity?(name: string, decl: IdentityDecl): Promise<RemoteResource>;
|
|
644
|
+
updateIdentity?(id: string, name: string, decl: IdentityDecl): Promise<RemoteResource>;
|
|
645
|
+
deleteIdentity?(id: string): Promise<void>;
|
|
646
|
+
createChannel?(name: string, decl: ChannelDecl, refs: ResolvedChannelRefs): Promise<RemoteResource>;
|
|
647
|
+
updateChannel?(id: string, name: string, decl: ChannelDecl, refs: ResolvedChannelRefs): Promise<RemoteResource>;
|
|
648
|
+
deleteChannel?(id: string): Promise<void>;
|
|
467
649
|
createMemoryStore?(name: string, decl: MemoryStoreDecl): Promise<RemoteResource>;
|
|
468
650
|
deleteMemoryStore?(id: string): Promise<void>;
|
|
651
|
+
listMemoryStores?(options?: MemoryStoreListOptions): Promise<MemoryPage<MemoryStoreInfo>>;
|
|
652
|
+
getMemoryStore?(id: string): Promise<MemoryStoreInfo>;
|
|
653
|
+
updateMemoryStore?(id: string, input: UpdateMemoryStoreInput): Promise<MemoryStoreInfo>;
|
|
654
|
+
archiveMemoryStore?(id: string): Promise<MemoryStoreInfo>;
|
|
655
|
+
createMemory?(storeId: string, input: CreateMemoryInput): Promise<MemoryInfo>;
|
|
656
|
+
batchCreateMemories?(storeId: string, input: BatchCreateMemoryInput): Promise<BatchCreateMemoryResult>;
|
|
657
|
+
listMemories?(storeId: string, options?: MemoryListOptions): Promise<MemoryPage<MemoryListItem>>;
|
|
658
|
+
getMemory?(storeId: string, memoryId: string): Promise<MemoryInfo>;
|
|
659
|
+
updateMemory?(storeId: string, memoryId: string, input: UpdateMemoryInput): Promise<MemoryInfo>;
|
|
660
|
+
deleteMemory?(storeId: string, memoryId: string, expectedContentSha256?: string): Promise<void>;
|
|
661
|
+
listMemoryVersions?(storeId: string, options?: MemoryVersionListOptions): Promise<MemoryPage<MemoryVersionInfo>>;
|
|
662
|
+
getMemoryVersion?(storeId: string, versionId: string): Promise<MemoryVersionInfo>;
|
|
663
|
+
redactMemoryVersion?(storeId: string, versionId: string): Promise<MemoryVersionInfo>;
|
|
469
664
|
createDeployment(name: string, decl: DeploymentDecl, refs: ResolvedDeploymentRefs, basePath: string): Promise<RemoteResource>;
|
|
470
665
|
updateDeployment(id: string, name: string, decl: DeploymentDecl, refs: ResolvedDeploymentRefs, basePath: string): Promise<RemoteResource>;
|
|
471
666
|
deleteDeployment(id: string): Promise<void>;
|
|
472
667
|
runDeployment(ctx: DeploymentContext): Promise<DeploymentRunResult$1>;
|
|
473
668
|
getDeployment(ctx: DeploymentContext): Promise<DeploymentInfo$1>;
|
|
669
|
+
listDeployments?(filter?: DeploymentListFilter): Promise<DeploymentListResult>;
|
|
670
|
+
pauseDeployment?(ctx: DeploymentContext): Promise<DeploymentInfo$1>;
|
|
671
|
+
unpauseDeployment?(ctx: DeploymentContext): Promise<DeploymentInfo$1>;
|
|
474
672
|
uploadFile(filePath: string, options?: {
|
|
475
673
|
name?: string;
|
|
476
674
|
purpose?: string;
|
|
@@ -777,6 +975,9 @@ declare function migrateConfig(opts: MigrateOptions): Promise<MigrateResult>;
|
|
|
777
975
|
interface DeploymentRunAdapter {
|
|
778
976
|
runDeployment(ctx: DeploymentContext): Promise<DeploymentRunResult$1>;
|
|
779
977
|
getDeployment(ctx: DeploymentContext): Promise<DeploymentInfo$1>;
|
|
978
|
+
listDeployments?(filter?: DeploymentListFilter): Promise<DeploymentListResult>;
|
|
979
|
+
pauseDeployment?(ctx: DeploymentContext): Promise<DeploymentInfo$1>;
|
|
980
|
+
unpauseDeployment?(ctx: DeploymentContext): Promise<DeploymentInfo$1>;
|
|
780
981
|
}
|
|
781
982
|
|
|
782
983
|
interface DeploymentSummary {
|
|
@@ -827,9 +1028,11 @@ interface DeploymentRun {
|
|
|
827
1028
|
provider: string;
|
|
828
1029
|
result: DeploymentRunResult;
|
|
829
1030
|
}
|
|
1031
|
+
declare function listRemoteDeploymentsForContext(ctx: ProjectRuntimeContext, provider: string, filter?: DeploymentListFilter): Promise<DeploymentListResult>;
|
|
830
1032
|
declare function listDeploymentsForContext(ctx: ProjectRuntimeContext, providerFilter?: string): DeploymentSummary[];
|
|
831
1033
|
declare function getDeploymentDetailsForContext(ctx: ProjectRuntimeContext, name: string, adapter?: Pick<DeploymentRunAdapter, "getDeployment">, resolvedProvider?: string): Promise<DeploymentDetail>;
|
|
832
1034
|
declare function runDeploymentForContext(ctx: ProjectRuntimeContext, name: string, adapter?: Pick<DeploymentRunAdapter, "runDeployment">, resolvedProvider?: string): Promise<DeploymentRun>;
|
|
1035
|
+
declare function pauseDeploymentForContext(ctx: ProjectRuntimeContext, name: string, paused: boolean, resolvedProvider?: string): Promise<DeploymentInfo$1>;
|
|
833
1036
|
declare function getDeploymentRuntimeProviderForContext(ctx: ProjectRuntimeContext, name: string, overrideProvider?: string): string;
|
|
834
1037
|
|
|
835
1038
|
type DestroyResourceStatus = "success" | "failed" | "blocked" | "skipped";
|
|
@@ -890,6 +1093,23 @@ interface ModelListAdapter {
|
|
|
890
1093
|
declare function listProviderModelsForContext(providers: ReadonlyMap<string, ModelListAdapter>, providerFilter?: string): Promise<ProviderModelListing[]>;
|
|
891
1094
|
declare function listProviderNames(): string[];
|
|
892
1095
|
|
|
1096
|
+
declare function listMemoryStores(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, options?: MemoryStoreListOptions): Promise<MemoryPage<MemoryStoreInfo>>;
|
|
1097
|
+
declare function getMemoryProviderCapabilities(providers: ReadonlyMap<string, ProviderAdapter>, provider: string): MemoryProviderCapabilities;
|
|
1098
|
+
declare function createMemoryStore(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, input: CreateMemoryStoreInput): Promise<MemoryStoreInfo>;
|
|
1099
|
+
declare function deleteMemoryStore(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, id: string): Promise<void>;
|
|
1100
|
+
declare function getMemoryStore(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, id: string): Promise<MemoryStoreInfo>;
|
|
1101
|
+
declare function updateMemoryStore(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, id: string, input: UpdateMemoryStoreInput): Promise<MemoryStoreInfo>;
|
|
1102
|
+
declare function archiveMemoryStore(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, id: string): Promise<MemoryStoreInfo>;
|
|
1103
|
+
declare function createMemory(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, storeId: string, input: CreateMemoryInput): Promise<MemoryInfo>;
|
|
1104
|
+
declare function batchCreateMemories(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, storeId: string, input: BatchCreateMemoryInput): Promise<BatchCreateMemoryResult>;
|
|
1105
|
+
declare function listMemories(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, storeId: string, options?: MemoryListOptions): Promise<MemoryPage<MemoryListItem>>;
|
|
1106
|
+
declare function getMemory(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, storeId: string, memoryId: string): Promise<MemoryInfo>;
|
|
1107
|
+
declare function updateMemory(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, storeId: string, memoryId: string, input: UpdateMemoryInput): Promise<MemoryInfo>;
|
|
1108
|
+
declare function deleteMemory(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, storeId: string, memoryId: string, expected?: string): Promise<void>;
|
|
1109
|
+
declare function listMemoryVersions(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, storeId: string, options?: MemoryVersionListOptions): Promise<MemoryPage<MemoryVersionInfo>>;
|
|
1110
|
+
declare function getMemoryVersion(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, storeId: string, versionId: string): Promise<MemoryVersionInfo>;
|
|
1111
|
+
declare function redactMemoryVersion(providers: ReadonlyMap<string, ProviderAdapter>, provider: string, storeId: string, versionId: string): Promise<MemoryVersionInfo>;
|
|
1112
|
+
|
|
893
1113
|
interface AgentSkillBuildInput {
|
|
894
1114
|
kind: "official" | "custom";
|
|
895
1115
|
/** Skill code/id for official skills. */
|
|
@@ -1000,7 +1220,7 @@ declare function listAgentsWithReadiness(ctx: ProjectRuntimeContext, options?: {
|
|
|
1000
1220
|
declare function syncAgentResourcesWithStateBackend(input: BackendRuntimeInput, agentId: string, options?: AgentResourceSyncOptions): Promise<AgentSyncRun>;
|
|
1001
1221
|
|
|
1002
1222
|
interface SessionCreateOptions {
|
|
1003
|
-
/** Explicit
|
|
1223
|
+
/** Explicit provider Identity id. Overrides the declared defaults.identity reference. */
|
|
1004
1224
|
identityId?: string;
|
|
1005
1225
|
environment?: string;
|
|
1006
1226
|
/**
|
|
@@ -1212,4 +1432,4 @@ declare class LocalFileStateBackend implements StateBackend {
|
|
|
1212
1432
|
/** Normalize a skill zip and extract its entries to SkillFile[]. */
|
|
1213
1433
|
declare function extractSkillZipFiles(raw: Buffer): Promise<SkillFile[]>;
|
|
1214
1434
|
|
|
1215
|
-
export { AGENTS_CONFIG_PROVIDERS, AGENTS_PROVIDER_FIELDS, type AgentBuildInput, AgentDefinition, type AgentMcpBuildInput, type AgentSkillBuildInput, AgentSyncRun, AgentWithReadiness, type BackendRuntimeInput, CloudAgent, CloudEnvironment, CloudVault, type CollectedSessionEvents, type DestroyResourceResult, type DestructivePolicy, Diagnostic, type IStateManager, type LoadedProjectConfig, LocalFileStateBackend, type MigrateOptions, type MigrateResult, PlannedAction, type ProjectRuntimeContext, type ProviderConfig, type ProviderConfigProvider, ProviderFileInfo, ProviderSessionEvent, type ProviderSessionInfo, type ProviderSkillInfo, type ResolvedProjectConfig, type ResourceActionResult, ResourceAddress, type ResourceExecutionResult, type ResourcePlanResult, type ResourceRefreshResult, type ResourceRuntimeOptions, type ResourceState, type ResourceSyncRun, ResourceType, type RuntimeFeedbackEvent, type RuntimeFeedbackSink, type SecretPlaceholder, type SkillFile, StateManager, type StateScope, type SyncProjectOptions, type SyncProjectResult, UserError, type ValidateProjectConfigOptions, applyProviderConfigToEnv, archiveCloudAgent, areRuntimeCredentialsReady, bootstrapRuntimeCredentials, bootstrapRuntimeCredentialsSync, buildAgentDecl, collectConfigReferences, createCloudEnvironment, createCloudVault, createProjectRuntime, createSessionForAgent, createSkillFromFileId, decideDestructive, deleteCloudEnvironment, deleteCloudVault, deleteFile, deleteSession, deleteSkill, destroyPlannedProjectResources, executePlannedProject, extractSkillZipFiles, getAgent, getDeploymentDetailsForContext, getDeploymentRuntimeProviderForContext, getFileDownloadUrl, getFileInfo, getSession, getSkillInfo, importResource, isTerminalSessionStatus, listAgentsWithReadiness, listCloudAgents, listCloudEnvironments, listCloudVaults, listDeploymentsForContext, listFiles, listProviderModelsForContext, listProviderNames, listSessionEvents, listSessionSummaries, listSkills, loadDotEnv, loadProviderConfigIntoEnv, loadProviderConfigIntoEnvSync, migrateConfig, parseStateAddress, planDestroyProjectContext, planProjectContext, preparePromptForProvider, prependFileHint, providerConfigPath, readProjectRuntime, resolveActiveProvider, resolveProjectConfig, resolveProjectConfigFromObject, resolveProviderConfigFromEnv, resolveSessionProvider, resolveSyncProvider, rewriteFileMentions, runDeploymentForContext, sendSessionMessagePolling, sendSessionMessageStreaming, startSessionRun, startSessionRunPolling, streamSessionEvents, syncAgentResourcesWithStateBackend, syncProjectResourcesWithStateBackend, syncProviderResourcesFromContext, syncProviderResourcesFromEnv, uploadFile, validateProjectConfig, writeProjectRuntime };
|
|
1435
|
+
export { AGENTS_CONFIG_PROVIDERS, AGENTS_PROVIDER_FIELDS, type AgentBuildInput, AgentDefinition, type AgentMcpBuildInput, type AgentSkillBuildInput, AgentSyncRun, AgentWithReadiness, type BackendRuntimeInput, type BatchCreateMemoryInput, type BatchCreateMemoryResult, CloudAgent, CloudEnvironment, CloudVault, type CollectedSessionEvents, type CreateMemoryInput, type CreateMemoryStoreInput, type DeploymentListFilter, type DeploymentListResult, type DestroyResourceResult, type DestructivePolicy, Diagnostic, type IStateManager, type LoadedProjectConfig, LocalFileStateBackend, type MemoryInfo, type MemoryListItem, type MemoryListOptions, type MemoryPage, type MemoryPrefixInfo, type MemoryProviderCapabilities, type MemoryStoreInfo, type MemoryStoreListOptions, type MemoryVersionInfo, type MemoryVersionListOptions, type MigrateOptions, type MigrateResult, PlannedAction, type ProjectRuntimeContext, type ProviderConfig, type ProviderConfigProvider, ProviderFileInfo, ProviderSessionEvent, type ProviderSessionInfo, type ProviderSkillInfo, type ResolvedProjectConfig, type ResourceActionResult, ResourceAddress, type ResourceExecutionResult, type ResourcePlanResult, type ResourceRefreshResult, type ResourceRuntimeOptions, type ResourceState, type ResourceSyncRun, ResourceType, type RuntimeFeedbackEvent, type RuntimeFeedbackSink, type SecretPlaceholder, type SkillFile, StateManager, type StateScope, type SyncProjectOptions, type SyncProjectResult, type UpdateMemoryInput, type UpdateMemoryStoreInput, UserError, type ValidateProjectConfigOptions, applyProviderConfigToEnv, archiveCloudAgent, archiveMemoryStore, areRuntimeCredentialsReady, batchCreateMemories, bootstrapRuntimeCredentials, bootstrapRuntimeCredentialsSync, buildAgentDecl, collectConfigReferences, createCloudEnvironment, createCloudVault, createMemory, createMemoryStore, createProjectRuntime, createSessionForAgent, createSkillFromFileId, decideDestructive, deleteCloudEnvironment, deleteCloudVault, deleteFile, deleteMemory, deleteMemoryStore, deleteSession, deleteSkill, destroyPlannedProjectResources, executePlannedProject, extractSkillZipFiles, getAgent, getDeploymentDetailsForContext, getDeploymentRuntimeProviderForContext, getFileDownloadUrl, getFileInfo, getMemory, getMemoryProviderCapabilities, getMemoryStore, getMemoryVersion, getSession, getSkillInfo, importResource, isTerminalSessionStatus, listAgentsWithReadiness, listCloudAgents, listCloudEnvironments, listCloudVaults, listDeploymentsForContext, listFiles, listMemories, listMemoryStores, listMemoryVersions, listProviderModelsForContext, listProviderNames, listRemoteDeploymentsForContext, listSessionEvents, listSessionSummaries, listSkills, loadDotEnv, loadProviderConfigIntoEnv, loadProviderConfigIntoEnvSync, migrateConfig, parseStateAddress, pauseDeploymentForContext, planDestroyProjectContext, planProjectContext, preparePromptForProvider, prependFileHint, providerConfigPath, readProjectRuntime, redactMemoryVersion, resolveActiveProvider, resolveProjectConfig, resolveProjectConfigFromObject, resolveProviderConfigFromEnv, resolveSessionProvider, resolveSyncProvider, rewriteFileMentions, runDeploymentForContext, sendSessionMessagePolling, sendSessionMessageStreaming, startSessionRun, startSessionRunPolling, streamSessionEvents, syncAgentResourcesWithStateBackend, syncProjectResourcesWithStateBackend, syncProviderResourcesFromContext, syncProviderResourcesFromEnv, updateMemory, updateMemoryStore, uploadFile, validateProjectConfig, writeProjectRuntime };
|