@openagentpack/sdk 0.4.0 → 0.6.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.
@@ -19,6 +19,8 @@ function toSessionEvent(raw) {
19
19
  const event = { type, raw_type: rawType, raw };
20
20
  if (typeof raw.id === "string") event.id = raw.id;
21
21
  if (typeof raw.role === "string") event.role = raw.role;
22
+ const threadId = extractSessionThreadId(raw);
23
+ if (threadId) event.session_thread_id = threadId;
22
24
  if (type === "message") {
23
25
  if (event.role === void 0) {
24
26
  if (rawType === "thread_message_sent") event.role = "user";
@@ -46,6 +48,17 @@ function toSessionEvent(raw) {
46
48
  }
47
49
  return event;
48
50
  }
51
+ function extractSessionThreadId(raw) {
52
+ if (typeof raw.session_thread_id === "string") return raw.session_thread_id;
53
+ const metadata = raw.metadata;
54
+ if (metadata && typeof metadata === "object" && !Array.isArray(metadata)) {
55
+ const value = metadata.session_thread_id;
56
+ if (typeof value === "string") return value;
57
+ }
58
+ const data = firstContentData(raw);
59
+ if (typeof data?.session_thread_id === "string") return data.session_thread_id;
60
+ return void 0;
61
+ }
49
62
  function extractContentText(raw) {
50
63
  const content = raw.content;
51
64
  if (typeof content === "string") return content;
@@ -7,6 +7,11 @@ interface ProviderFileInfo {
7
7
  downloadable?: boolean;
8
8
  status?: string;
9
9
  purpose?: string;
10
+ scope?: {
11
+ type?: string;
12
+ id?: string;
13
+ };
14
+ attributes?: Record<string, unknown>;
10
15
  }
11
16
 
12
17
  export type { ProviderFileInfo as P };
@@ -1,4 +1,4 @@
1
- import { P as ProviderFileInfo } from './file-URqwlxLf.js';
1
+ import { P as ProviderFileInfo } from './file-Cj5-Vx27.js';
2
2
 
3
3
  /** Neutral file scan status after provider wire normalization. */
4
4
  type NeutralFileStatus = "available" | "checking" | "rejected" | "type_rejected";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
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--Mxe1bnT.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--Mxe1bnT.js';
3
- import { P as ProviderFileInfo } from './file-URqwlxLf.js';
1
+ import { C as CloudAgent, a as CloudEnvironment, b as CloudVault, R as ResourceAddress, c as ResourceType, E as EventStreamOptions, P as ProviderSessionEvent, d as EventListOptions, e as ProviderSessionEventList, f as PlannedAction, D as Diagnostic, A as AgentDefinition, g as AgentReadiness, h as AgentWithReadiness, i as AgentSyncRun } from './session-event-B63Rbjim.js';
2
+ export { j as ActionType, k as ActionTypeSchema, l as AgentDefinitionSchema, m as AgentDriftSeverity, n as AgentDriftSeveritySchema, o as AgentModel, p as AgentModelSchema, q as AgentReadinessSchema, r as AgentReadinessStatus, s as AgentReadinessStatusSchema, t as AgentRecoveryAction, u as AgentRecoveryActionSchema, v as AgentSkillRef, w as AgentSkillRefSchema, x as AgentSyncReason, y as AgentSyncReasonSchema, z as AgentSyncResult, B as AgentSyncResultSchema, F as AgentSyncRunSchema, G as AgentSyncStatus, H as AgentSyncStatusSchema, I as AgentWithReadinessSchema, J as CloudAgentSchema, K as CloudEnvironmentSchema, L as CloudVaultSchema, M as CreateSessionRequest, N as CreateSessionRequestSchema, O as CreateSessionResponse, Q as CreateSessionResponseSchema, S as DiagnosticSchema, T as DiagnosticSeverity, U as DiagnosticSeveritySchema, V as DriftKind, W as DriftKindSchema, X as GetSessionRequest, Y as GetSessionRequestSchema, Z as KNOWN_SESSION_EVENT_TYPES, _ as KnownSessionEventType, $ as ListCloudAgentsResponse, a0 as ListCloudAgentsResponseSchema, a1 as ListCloudEnvironmentsResponse, a2 as ListCloudEnvironmentsResponseSchema, a3 as ListSessionEventsRequest, a4 as ListSessionEventsRequestSchema, a5 as ListSessionEventsResponse, a6 as ListSessionEventsResponseSchema, a7 as ListSessionsRequest, a8 as ListSessionsRequestSchema, a9 as ListSessionsResponse, aa as ListSessionsResponseSchema, ab as PlanReadinessImpact, ac as PlanReadinessImpactSchema, ad as PlannedActionSchema, ae as ResourceAddressSchema, af as ResourceTypeSchema, ag as SendEventRequest, ah as SendEventRequestSchema, ai as SendEventResponse, aj as SendEventResponseSchema, ak as Session, al as SessionAgent, am as SessionAgentSchema, an as SessionContentBlock, ao as SessionContentBlockSchema, ap as SessionEvent, aq as SessionEventSchema, ar as SessionEventType, as as SessionEventTypeName, at as SessionEventTypeSchema, au as SessionSchema } from './session-event-B63Rbjim.js';
3
+ import { P as ProviderFileInfo } from './file-Cj5-Vx27.js';
4
4
  import 'zod';
5
5
 
6
6
  declare class UserError extends Error {
@@ -90,17 +90,26 @@ interface VaultDecl {
90
90
  metadata?: Record<string, string>;
91
91
  }
92
92
  type CredentialType = "static_bearer" | "environment_variable";
93
+ interface CredentialNetworking {
94
+ /** Legacy policy type; Bailian requests use allowed_hosts instead. */
95
+ type?: "unrestricted" | "limited";
96
+ allowed_hosts?: string[];
97
+ }
98
+ interface CredentialInjectionLocation {
99
+ header?: boolean;
100
+ body?: boolean;
101
+ }
93
102
  interface CredentialDecl {
94
103
  name: string;
95
104
  type: CredentialType;
105
+ metadata?: Record<string, string>;
96
106
  mcp_server_url?: string;
97
107
  access_token?: string;
98
108
  protocol?: "sse" | "streamable_http";
99
109
  secret_name?: string;
100
110
  secret_value?: string;
101
- networking?: {
102
- type: "unrestricted" | "limited";
103
- };
111
+ networking?: CredentialNetworking;
112
+ injection_location?: CredentialInjectionLocation;
104
113
  }
105
114
  interface MemoryStoreDecl {
106
115
  description: string;
@@ -122,6 +131,7 @@ interface SkillDecl {
122
131
  }
123
132
  interface FileDecl {
124
133
  source: string;
134
+ /** Local label only; declarative uploads preserve the source file's basename. */
125
135
  name?: string;
126
136
  purpose?: string;
127
137
  provider?: ProviderName;
@@ -143,9 +153,9 @@ interface AgentDecl {
143
153
  mcp_servers?: McpServerDecl[];
144
154
  skills?: AgentSkillDecl[];
145
155
  vault?: string;
146
- /** File declarations inherited by a Qoder Forward Template. */
147
- files?: string[];
148
156
  memory_stores?: string[];
157
+ /** String refs are inherited by Qoder Forward Templates; object refs mount Files into Sessions. */
158
+ files?: Array<string | AgentFileMountDecl>;
149
159
  /** Desired display metadata for Qoder Forward's system-managed writable Store. */
150
160
  default_memory_store?: DefaultMemoryStoreDecl;
151
161
  /** Resources mounted into every managed session created for this agent. */
@@ -159,6 +169,12 @@ interface AgentDecl {
159
169
  /** Provider-specific remote materialization. Omitted means the existing managed Agent resource. */
160
170
  delivery?: Record<ProviderName, AgentDeliveryDecl>;
161
171
  }
172
+ interface AgentFileMountDecl {
173
+ /** Logical key under the top-level files section. */
174
+ file: string;
175
+ /** Provider sandbox path. Bailian paths live under /mnt. */
176
+ mount_path: string;
177
+ }
162
178
  interface DefaultMemoryStoreDecl {
163
179
  name: string;
164
180
  description?: string;
@@ -220,6 +236,7 @@ interface MultiagentDecl {
220
236
  agents: string[];
221
237
  }
222
238
  interface DeploymentDecl {
239
+ name?: string;
223
240
  agent: string;
224
241
  agent_version?: number;
225
242
  environment?: string;
@@ -292,6 +309,114 @@ interface ResolvedProjectConfig extends ProjectConfig {
292
309
  _resolved: true;
293
310
  }
294
311
 
312
+ interface ProviderSkillInfo {
313
+ id: string;
314
+ name: string;
315
+ description?: string;
316
+ source: "custom" | "official";
317
+ status: "checking" | "active" | "rejected" | "deleted";
318
+ latest_version?: string;
319
+ created_at?: string;
320
+ updated_at?: string;
321
+ attributes?: Record<string, unknown>;
322
+ }
323
+
324
+ interface CursorPage<T> {
325
+ data: T[];
326
+ has_more: boolean;
327
+ next_page?: string;
328
+ }
329
+ interface CursorListOptions {
330
+ limit?: number;
331
+ page?: string;
332
+ }
333
+ interface AgentListOptions extends CursorListOptions {
334
+ include_archived?: boolean;
335
+ }
336
+ type AgentVersionListOptions = CursorListOptions;
337
+ type AgentPage = CursorPage<CloudAgent>;
338
+ interface EnvironmentListOptions extends CursorListOptions {
339
+ include_archived?: boolean;
340
+ }
341
+ type EnvironmentPage = CursorPage<CloudEnvironment>;
342
+ interface VaultListOptions extends CursorListOptions {
343
+ include_archived?: boolean;
344
+ }
345
+ type VaultPage = CursorPage<CloudVault>;
346
+ interface VaultCredentialInfo {
347
+ id: string;
348
+ display_name: string;
349
+ auth_type: string;
350
+ secret_name?: string;
351
+ mcp_server_url?: string;
352
+ networking_type?: string;
353
+ networking?: CredentialNetworking;
354
+ injection_location?: CredentialInjectionLocation;
355
+ metadata?: Record<string, string>;
356
+ }
357
+ interface SkillListOptions extends CursorListOptions {
358
+ source?: "custom" | "official";
359
+ }
360
+ interface SkillVersionInfo {
361
+ id?: string;
362
+ skill_id: string;
363
+ type: string;
364
+ name?: string;
365
+ description?: string;
366
+ version: string;
367
+ status?: string;
368
+ created_at?: string;
369
+ updated_at?: string;
370
+ additional_properties?: Record<string, unknown>;
371
+ attributes: Record<string, unknown>;
372
+ }
373
+ type SkillVersionListOptions = CursorListOptions;
374
+ type SkillVersionPage = CursorPage<SkillVersionInfo>;
375
+ interface SkillDownloadInfo {
376
+ skill_id: string;
377
+ version: string;
378
+ file_url: string;
379
+ }
380
+ type SkillPage = CursorPage<ProviderSkillInfo>;
381
+ interface FileListOptions extends CursorListOptions {
382
+ scope_id?: string;
383
+ }
384
+ type FilePage = CursorPage<ProviderFileInfo>;
385
+ interface SessionUpdateInput {
386
+ title?: string;
387
+ metadata?: Record<string, string>;
388
+ }
389
+ /** Raw AgentStudio message/event input. Provider adapters preserve the wire shape. */
390
+ type SessionEventInput = Record<string, unknown>;
391
+ interface SessionEventSendResult {
392
+ event_ids: string[];
393
+ attributes: Record<string, unknown>;
394
+ }
395
+ interface DeploymentRunInfo {
396
+ id: string;
397
+ deployment_id?: string;
398
+ session_id?: string | null;
399
+ status?: string;
400
+ error?: {
401
+ type?: string;
402
+ message?: string;
403
+ };
404
+ created_at?: string;
405
+ updated_at?: string;
406
+ attributes: Record<string, unknown>;
407
+ }
408
+ type DeploymentRunPage = CursorPage<DeploymentRunInfo>;
409
+ type ManagedAgentOperationAuth = "api_key" | "none";
410
+ interface ManagedAgentOperationCapability {
411
+ supported: boolean;
412
+ auth: ManagedAgentOperationAuth | null;
413
+ reason?: string;
414
+ }
415
+ interface ManagedAgentProviderCapabilities {
416
+ provider: string;
417
+ operations: Record<string, ManagedAgentOperationCapability>;
418
+ }
419
+
295
420
  type MemoryMetadata = Record<string, string>;
296
421
  interface MemoryStoreInfo {
297
422
  id: string;
@@ -478,6 +603,9 @@ interface ProviderSessionInfo {
478
603
  }
479
604
  interface SessionFilter {
480
605
  agent_id?: string;
606
+ statuses?: string[];
607
+ created_at_gte?: string;
608
+ created_at_lte?: string;
481
609
  limit?: number;
482
610
  page?: string;
483
611
  }
@@ -492,17 +620,6 @@ interface SkillFile {
492
620
  content: Buffer;
493
621
  }
494
622
 
495
- interface ProviderSkillInfo {
496
- id: string;
497
- name: string;
498
- description?: string;
499
- source: "custom" | "official";
500
- status: "checking" | "active" | "rejected" | "deleted";
501
- latest_version?: string;
502
- created_at?: string;
503
- updated_at?: string;
504
- }
505
-
506
623
  interface ResourceState {
507
624
  address: ResourceAddress;
508
625
  remote_id: string | null;
@@ -648,6 +765,8 @@ interface DeploymentInfo$1 {
648
765
  }
649
766
  interface DeploymentListFilter {
650
767
  agent_id?: string;
768
+ /** Bailian server-side fuzzy match against deployment id or name. */
769
+ keyword?: string;
651
770
  status?: "active" | "paused";
652
771
  include_archived?: boolean;
653
772
  limit?: number;
@@ -680,12 +799,20 @@ interface ProviderAdapter {
680
799
  prefix?: string;
681
800
  limit?: number;
682
801
  }): Promise<CloudAgent[]>;
802
+ /** Cursor-preserving API listing used by command surfaces. */
803
+ listAgentResources?(options?: AgentListOptions): Promise<AgentPage>;
804
+ getRemoteAgent?(id: string, version?: number): Promise<CloudAgent>;
805
+ listAgentVersions?(id: string, options?: AgentVersionListOptions): Promise<AgentPage>;
683
806
  listEnvironments?(filter?: {
684
807
  limit?: number;
685
808
  }): Promise<CloudEnvironment[]>;
809
+ listEnvironmentResources?(options?: EnvironmentListOptions): Promise<EnvironmentPage>;
810
+ getRemoteEnvironment?(id: string): Promise<CloudEnvironment>;
686
811
  listVaults?(filter?: {
687
812
  limit?: number;
688
813
  }): Promise<CloudVault[]>;
814
+ listVaultResources?(options?: VaultListOptions): Promise<VaultPage>;
815
+ getRemoteVault?(id: string): Promise<CloudVault>;
689
816
  getDriftSupport?(type: ResourceType): DriftSupport;
690
817
  readComparableResource?(type: ResourceType, id: string | null, name: string): Promise<ComparableRemoteResource | null>;
691
818
  normalizeDesiredResource?(type: ResourceType, name: string, decl: unknown): unknown | null;
@@ -700,6 +827,8 @@ interface ProviderAdapter {
700
827
  deleteEnvironment(id: string, cascade?: boolean, mode?: ProviderResourceMode): Promise<void>;
701
828
  createVault(name: string, decl: VaultDecl, mode?: ProviderResourceMode): Promise<RemoteResource>;
702
829
  deleteVault(id: string, mode?: ProviderResourceMode): Promise<void>;
830
+ createCredential?(vaultId: string, credential: CredentialDecl): Promise<RemoteResource>;
831
+ listCredentials?(vaultId: string): Promise<VaultCredentialInfo[]>;
703
832
  createSkill(name: string, decl: SkillDecl, files: SkillFile[], mode?: ProviderResourceMode): Promise<RemoteResource>;
704
833
  updateSkill(id: string, name: string, decl: SkillDecl, files: SkillFile[], mode?: ProviderResourceMode): Promise<RemoteResource>;
705
834
  deleteSkill(id: string, mode?: ProviderResourceMode): Promise<void>;
@@ -740,6 +869,12 @@ interface ProviderAdapter {
740
869
  runDeployment(ctx: DeploymentContext): Promise<DeploymentRunResult$1>;
741
870
  getDeployment(ctx: DeploymentContext): Promise<DeploymentInfo$1>;
742
871
  listDeployments?(filter?: DeploymentListFilter): Promise<DeploymentListResult>;
872
+ getDeploymentById?(id: string): Promise<DeploymentInfo$1>;
873
+ runDeploymentById?(id: string): Promise<DeploymentRunResult$1>;
874
+ pauseDeploymentById?(id: string): Promise<DeploymentInfo$1>;
875
+ unpauseDeploymentById?(id: string): Promise<DeploymentInfo$1>;
876
+ listDeploymentRuns?(deploymentId: string, options?: CursorListOptions): Promise<DeploymentRunPage>;
877
+ getDeploymentRun?(runId: string): Promise<DeploymentRunInfo>;
743
878
  pauseDeployment?(ctx: DeploymentContext): Promise<DeploymentInfo$1>;
744
879
  unpauseDeployment?(ctx: DeploymentContext): Promise<DeploymentInfo$1>;
745
880
  uploadFile(filePath: string, options?: {
@@ -765,14 +900,20 @@ interface ProviderAdapter {
765
900
  }>;
766
901
  /** List workspace user-uploaded files (newest first). Optional — only providers with a list API implement it. */
767
902
  listFiles?(): Promise<ProviderFileInfo[]>;
903
+ listFileResources?(options?: FileListOptions): Promise<FilePage>;
904
+ downloadFileContent?(id: string): Promise<Uint8Array>;
768
905
  /**
769
906
  * List skills (newest first). `source` selects the catalog: "custom" (workspace-uploaded, the
770
907
  * default) or "official" (the provider's built-in catalog). Optional — only providers with a
771
908
  * list API implement it.
772
909
  */
773
910
  listSkills?(source?: "custom" | "official"): Promise<ProviderSkillInfo[]>;
911
+ listSkillResources?(options?: SkillListOptions): Promise<SkillPage>;
774
912
  /** Fetch a single skill's metadata (incl. scan `status`); used to poll create → active. */
775
913
  getSkillInfo?(id: string): Promise<ProviderSkillInfo>;
914
+ listSkillVersions?(id: string, options?: SkillVersionListOptions): Promise<SkillVersionPage>;
915
+ getSkillVersion?(id: string, version: string): Promise<SkillVersionInfo>;
916
+ getSkillDownloadInfo?(id: string, version: string): Promise<SkillDownloadInfo>;
776
917
  /**
777
918
  * Create a skill from an already-uploaded zip's file_id and return immediately with the
778
919
  * initial (usually `checking`) status. NON-blocking — unlike `createSkill`, it does NOT wait
@@ -782,8 +923,11 @@ interface ProviderAdapter {
782
923
  createSession(bindings: SessionBindings): Promise<ProviderSessionInfo>;
783
924
  listSessions(filter?: SessionFilter): Promise<SessionListResult>;
784
925
  getSession(id: string): Promise<ProviderSessionInfo>;
926
+ updateSession?(id: string, input: SessionUpdateInput): Promise<ProviderSessionInfo>;
927
+ archiveSession?(id: string): Promise<ProviderSessionInfo>;
785
928
  deleteSession(id: string): Promise<void>;
786
929
  sendSessionMessage(sessionId: string, message: string): Promise<string | undefined>;
930
+ sendSessionEvents?(sessionId: string, events: SessionEventInput[]): Promise<SessionEventSendResult>;
787
931
  streamSessionEvents(sessionId: string, options?: EventStreamOptions): AsyncIterable<ProviderSessionEvent>;
788
932
  listSessionEvents(sessionId: string, options?: EventListOptions): Promise<ProviderSessionEventList>;
789
933
  listModels?(): Promise<ModelInfo[]>;
@@ -886,11 +1030,15 @@ interface ResolveProjectConfigOptions {
886
1030
  projectName?: string;
887
1031
  /** Expand `${env:...}` references while loading (defaults to true). */
888
1032
  resolveEnv?: boolean;
1033
+ /** Project-local fallback values; the process environment takes precedence. Never mutates process.env. */
1034
+ environment?: Record<string, string>;
889
1035
  }
890
1036
  interface LoadedProjectConfig {
891
1037
  configPath: string;
892
1038
  projectName: string;
893
1039
  config: ResolvedProjectConfig;
1040
+ /** Root config and local files/directories that influence the resolved project. */
1041
+ sourcePaths: string[];
894
1042
  }
895
1043
  /**
896
1044
  * Shared config-resolution spine for every host: load the config file, raise
@@ -903,6 +1051,10 @@ interface ResolveProjectConfigFromObjectOptions {
903
1051
  projectName: string;
904
1052
  /** Base path used to resolve any `file:` references (defaults to process.cwd()). */
905
1053
  basePath?: string;
1054
+ /** Resolve `${ENV_VAR}` references recursively before schema validation. */
1055
+ resolveEnv?: boolean;
1056
+ /** Project-local fallback values; the process environment takes precedence. */
1057
+ environment?: Record<string, string>;
906
1058
  }
907
1059
  /**
908
1060
  * Object-level twin of {@link resolveProjectConfig}: validate an in-memory config
@@ -930,10 +1082,18 @@ type RuntimeFeedbackSink = (event: RuntimeFeedbackEvent) => void;
930
1082
 
931
1083
  interface ResourceRuntimeOptions extends DestructiveDecisionOptions {
932
1084
  provider?: string;
1085
+ scope?: ResourcePlanScope;
1086
+ mode?: ResourceSyncMode;
933
1087
  refresh?: boolean;
934
1088
  refreshOnly?: boolean;
935
1089
  quiet?: boolean;
936
1090
  onFeedback?: RuntimeFeedbackSink;
1091
+ concurrency?: number;
1092
+ }
1093
+ type ResourceSyncMode = "reconcile" | "create-only";
1094
+ interface ResourcePlanScope {
1095
+ roots: ResourceAddress[];
1096
+ includeDependencies?: boolean;
937
1097
  }
938
1098
  interface ResourceRefreshResult {
939
1099
  removed: ResourceState[];
@@ -957,6 +1117,8 @@ interface ResourcePlanResult {
957
1117
  refreshResult?: ResourceRefreshResult;
958
1118
  targetProviders?: string[];
959
1119
  destructiveActions: PlannedAction[];
1120
+ selectedAddresses?: ResourceAddress[];
1121
+ mode?: ResourceSyncMode;
960
1122
  }
961
1123
  type DestructivePolicy = "block" | "prompt" | "force";
962
1124
  interface DestructiveDecisionOptions {
@@ -967,6 +1129,7 @@ interface ResourceSyncRun {
967
1129
  planned: ResourcePlanResult;
968
1130
  execution?: ResourceExecutionResult;
969
1131
  }
1132
+ declare function planProjectWithStateBackend(input: BackendRuntimeInput, options?: ResourceRuntimeOptions): Promise<ResourcePlanResult>;
970
1133
  declare function syncProjectResourcesWithStateBackend(input: BackendRuntimeInput, options?: ResourceRuntimeOptions): Promise<ResourceSyncRun>;
971
1134
  declare function importResource(ctx: ProjectRuntimeContext, address: ResourceAddress, remoteId: string, options?: {
972
1135
  resourceVersion?: number;
@@ -991,6 +1154,14 @@ declare function validateProjectConfig(config: ProjectConfig, options?: Validate
991
1154
  */
992
1155
  declare function collectConfigReferences(config: ProjectConfig): Diagnostic[];
993
1156
 
1157
+ interface ProjectSourceInspection {
1158
+ diagnostics: Diagnostic[];
1159
+ redacted_source: string;
1160
+ sensitive_literals: string[];
1161
+ }
1162
+ /** Validates a complete agents.yaml source and produces a display-safe copy. */
1163
+ declare function inspectProjectSource(source: string, configPath: string): Promise<ProjectSourceInspection>;
1164
+
994
1165
  interface SyncProjectOptions {
995
1166
  /** Provider to read remote resources from (single provider, not "all"). */
996
1167
  provider: string;
@@ -1121,6 +1292,105 @@ declare function runDeploymentForContext(ctx: ProjectRuntimeContext, name: strin
1121
1292
  declare function pauseDeploymentForContext(ctx: ProjectRuntimeContext, name: string, paused: boolean, resolvedProvider?: string): Promise<DeploymentInfo$1>;
1122
1293
  declare function getDeploymentRuntimeProviderForContext(ctx: ProjectRuntimeContext, name: string, overrideProvider?: string): string;
1123
1294
 
1295
+ interface ManagedApiTarget {
1296
+ provider?: string;
1297
+ }
1298
+ declare function listRemoteAgents(ctx: ProjectRuntimeContext, options?: ManagedApiTarget & AgentListOptions): Promise<AgentPage>;
1299
+ declare function getRemoteAgent(ctx: ProjectRuntimeContext, id: string, options?: ManagedApiTarget & {
1300
+ version?: number;
1301
+ }): Promise<{
1302
+ id: string;
1303
+ name?: string | undefined;
1304
+ description?: string | null | undefined;
1305
+ model?: unknown;
1306
+ system?: string | undefined;
1307
+ tools?: unknown;
1308
+ skills?: unknown;
1309
+ mcp_servers?: unknown;
1310
+ metadata?: Record<string, string> | undefined;
1311
+ version?: number | undefined;
1312
+ type?: string | undefined;
1313
+ workspace_id?: string | undefined;
1314
+ created_at?: string | undefined;
1315
+ updated_at?: string | undefined;
1316
+ archived_at?: string | null | undefined;
1317
+ attributes?: Record<string, unknown> | undefined;
1318
+ }>;
1319
+ declare function listRemoteAgentVersions(ctx: ProjectRuntimeContext, id: string, options?: ManagedApiTarget & AgentVersionListOptions): Promise<AgentPage>;
1320
+ declare function listRemoteEnvironments(ctx: ProjectRuntimeContext, options?: ManagedApiTarget & EnvironmentListOptions): Promise<EnvironmentPage>;
1321
+ declare function getRemoteEnvironment(ctx: ProjectRuntimeContext, id: string, options?: ManagedApiTarget): Promise<{
1322
+ id: string;
1323
+ name?: string | undefined;
1324
+ description?: string | null | undefined;
1325
+ config?: unknown;
1326
+ metadata?: Record<string, string> | undefined;
1327
+ scope?: string | undefined;
1328
+ version?: number | undefined;
1329
+ type?: string | undefined;
1330
+ workspace_id?: string | undefined;
1331
+ created_at?: string | undefined;
1332
+ updated_at?: string | undefined;
1333
+ archived_at?: string | null | undefined;
1334
+ attributes?: Record<string, unknown> | undefined;
1335
+ }>;
1336
+ declare function listRemoteVaults(ctx: ProjectRuntimeContext, options?: ManagedApiTarget & VaultListOptions): Promise<VaultPage>;
1337
+ declare function getRemoteVault(ctx: ProjectRuntimeContext, id: string, options?: ManagedApiTarget): Promise<{
1338
+ id: string;
1339
+ display_name?: string | undefined;
1340
+ metadata?: Record<string, string> | undefined;
1341
+ type?: string | undefined;
1342
+ created_at?: string | null | undefined;
1343
+ updated_at?: string | null | undefined;
1344
+ archived_at?: string | null | undefined;
1345
+ attributes?: Record<string, unknown> | undefined;
1346
+ }>;
1347
+ declare function listRemoteSkills(ctx: ProjectRuntimeContext, options?: ManagedApiTarget & SkillListOptions): Promise<SkillPage>;
1348
+ declare function getRemoteSkill(ctx: ProjectRuntimeContext, id: string, options?: ManagedApiTarget): Promise<ProviderSkillInfo>;
1349
+ declare function listRemoteSkillVersions(ctx: ProjectRuntimeContext, id: string, options?: ManagedApiTarget & SkillVersionListOptions): Promise<SkillVersionPage>;
1350
+ declare function getRemoteSkillVersion(ctx: ProjectRuntimeContext, id: string, version: string, options?: ManagedApiTarget): Promise<SkillVersionInfo>;
1351
+ declare function getRemoteSkillDownloadInfo(ctx: ProjectRuntimeContext, id: string, version: string, options?: ManagedApiTarget): Promise<SkillDownloadInfo>;
1352
+ declare function downloadRemoteSkill(ctx: ProjectRuntimeContext, id: string, version: string, options?: ManagedApiTarget): Promise<Uint8Array>;
1353
+ declare function listRemoteFiles(ctx: ProjectRuntimeContext, options?: ManagedApiTarget & FileListOptions): Promise<FilePage>;
1354
+ declare function downloadRemoteFile(ctx: ProjectRuntimeContext, id: string, options?: ManagedApiTarget): Promise<Uint8Array>;
1355
+ declare function updateRemoteSession(ctx: ProjectRuntimeContext, id: string, input: SessionUpdateInput, options?: ManagedApiTarget): Promise<ProviderSessionInfo>;
1356
+ declare function archiveRemoteSession(ctx: ProjectRuntimeContext, id: string, options?: ManagedApiTarget): Promise<ProviderSessionInfo>;
1357
+ declare function sendRemoteSessionEvents(ctx: ProjectRuntimeContext, id: string, events: SessionEventInput[], options?: ManagedApiTarget): Promise<SessionEventSendResult>;
1358
+ declare function listRemoteDeployments(ctx: ProjectRuntimeContext, options?: ManagedApiTarget & DeploymentListFilter): Promise<DeploymentListResult>;
1359
+ declare function getRemoteDeployment(ctx: ProjectRuntimeContext, id: string, options?: ManagedApiTarget): Promise<DeploymentInfo$1>;
1360
+ declare function runRemoteDeployment(ctx: ProjectRuntimeContext, id: string, options?: ManagedApiTarget): Promise<DeploymentRunResult$1>;
1361
+ declare function setRemoteDeploymentPaused(ctx: ProjectRuntimeContext, id: string, paused: boolean, options?: ManagedApiTarget): Promise<DeploymentInfo$1>;
1362
+ declare function listRemoteDeploymentRuns(ctx: ProjectRuntimeContext, deploymentId: string, options?: ManagedApiTarget & {
1363
+ limit?: number;
1364
+ page?: string;
1365
+ }): Promise<DeploymentRunPage>;
1366
+ declare function getRemoteDeploymentRun(ctx: ProjectRuntimeContext, runId: string, options?: ManagedApiTarget): Promise<DeploymentRunInfo>;
1367
+ declare function getManagedAgentProviderCapabilities(provider: string): ManagedAgentProviderCapabilities;
1368
+
1369
+ interface VaultCredentialCreateOptions {
1370
+ provider?: string;
1371
+ refresh?: boolean;
1372
+ quiet?: boolean;
1373
+ /** Set false only for an offline preview; create always requires the remote duplicate check. */
1374
+ checkRemote?: boolean;
1375
+ }
1376
+ interface VaultCredentialCreatePlan {
1377
+ provider: string;
1378
+ vault: string;
1379
+ vaultRemoteId: string;
1380
+ credential: string;
1381
+ remoteChecked: boolean;
1382
+ reuseRemote: boolean;
1383
+ remoteCredentialId?: string;
1384
+ }
1385
+ interface VaultCredentialCreateResult extends VaultCredentialCreatePlan {
1386
+ credentialId: string;
1387
+ adopted: boolean;
1388
+ }
1389
+ declare function planVaultCredentialCreate(ctx: ProjectRuntimeContext, vaultName: string, credentialName: string, options?: VaultCredentialCreateOptions): Promise<VaultCredentialCreatePlan>;
1390
+ declare function planVaultCredentialCreateWithStateBackend(input: BackendRuntimeInput, vaultName: string, credentialName: string, options?: VaultCredentialCreateOptions): Promise<VaultCredentialCreatePlan>;
1391
+ declare function createVaultCredential(ctx: ProjectRuntimeContext, vaultName: string, credentialName: string, options?: VaultCredentialCreateOptions): Promise<VaultCredentialCreateResult>;
1392
+ declare function createVaultCredentialWithStateBackend(input: BackendRuntimeInput, vaultName: string, credentialName: string, options?: VaultCredentialCreateOptions): Promise<VaultCredentialCreateResult>;
1393
+
1124
1394
  type DestroyResourceStatus = "success" | "failed" | "blocked" | "skipped";
1125
1395
  type DestroyResourceResultReason = "destroyed" | "reference_removed" | "already_gone" | "cascade_required" | "provider_missing" | "failed" | "skipped";
1126
1396
  interface DestroyResourceResult {
@@ -1234,6 +1504,7 @@ interface AgentMcpBuildInput {
1234
1504
  }>;
1235
1505
  }
1236
1506
  interface AgentBuildInput {
1507
+ name?: string;
1237
1508
  description?: string;
1238
1509
  model?: AgentDecl["model"];
1239
1510
  instructions?: string;
@@ -1257,13 +1528,29 @@ interface BuiltAgent {
1257
1528
  */
1258
1529
  declare function buildAgentDecl(base: AgentDecl | undefined, input: AgentBuildInput): BuiltAgent;
1259
1530
 
1531
+ interface AgentResourcePlan {
1532
+ agentId: string;
1533
+ provider: string;
1534
+ fingerprint: string;
1535
+ actions: PlannedAction[];
1536
+ diagnostics: Diagnostic[];
1537
+ destructiveActions: PlannedAction[];
1538
+ planned: ResourcePlanResult;
1539
+ }
1260
1540
  interface AgentResourcePlanOptions {
1261
1541
  refresh?: boolean;
1262
1542
  quiet?: boolean;
1543
+ onFeedback?: RuntimeFeedbackSink;
1544
+ /** Strict Agent runtime closure; excludes downstream resources such as deployments. */
1545
+ scope?: "runtime";
1546
+ mode?: AgentResourceSyncMode;
1263
1547
  }
1548
+ type AgentResourceSyncMode = ResourceSyncMode;
1264
1549
  interface AgentResourceSyncOptions extends AgentResourcePlanOptions {
1265
1550
  policy?: DestructivePolicy;
1266
1551
  confirm?: (actions: PlannedAction[]) => boolean | Promise<boolean>;
1552
+ /** Refuse execution when a fresh plan no longer matches the plan shown to the user. */
1553
+ expectedPlanFingerprint?: string;
1267
1554
  }
1268
1555
  /**
1269
1556
  * List RAW cloud agents from the provider — the actual remote objects, not the local
@@ -1320,6 +1607,9 @@ declare function getAgent(ctx: ProjectRuntimeContext, agentId: string): AgentDef
1320
1607
  declare function listAgentsWithReadiness(ctx: ProjectRuntimeContext, options?: {
1321
1608
  refresh?: boolean;
1322
1609
  }): Promise<AgentWithReadiness[]>;
1610
+ declare function isAgentRunnable(readiness: AgentReadiness): boolean;
1611
+ declare function planAgentResources(ctx: ProjectRuntimeContext, agentId: string, options?: AgentResourcePlanOptions): Promise<AgentResourcePlan>;
1612
+ declare function planAgentResourcesWithStateBackend(input: BackendRuntimeInput, agentId: string, options?: AgentResourcePlanOptions): Promise<AgentResourcePlan>;
1323
1613
  declare function syncAgentResourcesWithStateBackend(input: BackendRuntimeInput, agentId: string, options?: AgentResourceSyncOptions): Promise<AgentSyncRun>;
1324
1614
 
1325
1615
  interface SessionCreateOptions {
@@ -1411,12 +1701,7 @@ declare function listSessionSummaries(ctx: ProjectRuntimeContext, options?: Sess
1411
1701
  }): Promise<SessionSummaryList>;
1412
1702
  declare function getSession(ctx: ProjectRuntimeContext, sessionId: string, provider?: string): Promise<ProviderSessionInfo>;
1413
1703
  declare function deleteSession(ctx: ProjectRuntimeContext, sessionId: string, provider?: string): Promise<void>;
1414
- declare function listSessionEvents(ctx: ProjectRuntimeContext, sessionId: string, options?: SessionRuntimeTarget & {
1415
- limit?: number;
1416
- order?: string;
1417
- page_token?: string;
1418
- page?: string;
1419
- }): Promise<ProviderSessionEventList>;
1704
+ declare function listSessionEvents(ctx: ProjectRuntimeContext, sessionId: string, options?: SessionRuntimeTarget & EventListOptions): Promise<ProviderSessionEventList>;
1420
1705
  /**
1421
1706
  * Upload a file's raw bytes to the resolved provider's Files API and return its metadata.
1422
1707
  * Content-based (no filesystem) so server contexts can forward browser uploads directly.
@@ -1456,9 +1741,9 @@ declare function createSkillFromFileId(ctx: ProjectRuntimeContext, fileId: strin
1456
1741
  /** Delete a custom skill by id from the resolved provider's Skills API. */
1457
1742
  declare function deleteSkill(ctx: ProjectRuntimeContext, id: string, options?: SessionRuntimeTarget): Promise<void>;
1458
1743
  /**
1459
- * Subscribe to a session's live event stream by id (native SSE). The underlying provider
1460
- * stream pushes only post-connect events, so callers that need full history must replay it
1461
- * via listSessionEvents and de-dupe by ProviderSessionEvent.id.
1744
+ * Subscribe to a session's event stream by id. Providers with native cursor support receive
1745
+ * `after_id` directly; providers without it resume by replaying paginated history and polling
1746
+ * for new events with event-id de-duplication.
1462
1747
  */
1463
1748
  declare function streamSessionEvents(ctx: ProjectRuntimeContext, sessionId: string, options?: SessionRuntimeTarget & EventStreamOptions): AsyncIterable<ProviderSessionEvent>;
1464
1749
 
@@ -1543,4 +1828,14 @@ declare class LocalFileStateBackend implements StateBackend {
1543
1828
  /** Normalize a skill zip and extract its entries to SkillFile[]. */
1544
1829
  declare function extractSkillZipFiles(raw: Buffer): Promise<SkillFile[]>;
1545
1830
 
1546
- export { AGENTS_CONFIG_PROVIDERS, AGENTS_PROVIDER_FIELDS, type AgentBuildInput, AgentDefinition, type AgentMcpBuildInput, type AgentSkillBuildInput, AgentSyncRun, AgentWithReadiness, ApiError, type BackendRuntimeInput, type BatchCreateMemoryInput, type BatchCreateMemoryResult, CloudAgent, CloudEnvironment, CloudVault, type CollectedSessionEvents, ConflictError, type CreateMemoryInput, type CreateMemoryStoreInput, type DeploymentListFilter, type DeploymentListResult, type DestroyDefaultMemoryStoreResult, type DestroyResourceResult, type DestructivePolicy, Diagnostic, type FetchLike, 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, prepareInitialSessionPrompt, preparePromptForProvider, prependFileHint, providerConfigPath, readProjectRuntime, redactMemoryVersion, resolveActiveProvider, resolveProjectConfig, resolveProjectConfigFromObject, resolveProviderConfigFromEnv, resolveRepositoryMountPath, resolveSessionProvider, resolveSyncProvider, rewriteFileMentions, runDeploymentForContext, sendSessionMessagePolling, sendSessionMessageStreaming, setDefaultFetch, startSessionRun, startSessionRunPolling, streamSessionEvents, syncAgentResourcesWithStateBackend, syncProjectResourcesWithStateBackend, syncProviderResourcesFromContext, syncProviderResourcesFromEnv, updateMemory, updateMemoryStore, uploadFile, validateProjectConfig, writeProjectRuntime };
1831
+ interface SkillSourceInspection {
1832
+ name: string;
1833
+ sourcePath: string;
1834
+ files: SkillFile[];
1835
+ }
1836
+ /** Inspect and normalize a local Skill directory, zip, or single SKILL.md. */
1837
+ declare function inspectSkillSource(source: string, options?: {
1838
+ basePath?: string;
1839
+ }): Promise<SkillSourceInspection>;
1840
+
1841
+ export { AGENTS_CONFIG_PROVIDERS, AGENTS_PROVIDER_FIELDS, type AgentBuildInput, AgentDefinition, type AgentListOptions, type AgentMcpBuildInput, type AgentPage, AgentReadiness, type AgentResourcePlan, type AgentResourcePlanOptions, type AgentResourceSyncMode, type AgentResourceSyncOptions, type AgentSkillBuildInput, AgentSyncRun, type AgentVersionListOptions, AgentWithReadiness, ApiError, type BackendRuntimeInput, type BatchCreateMemoryInput, type BatchCreateMemoryResult, CloudAgent, CloudEnvironment, CloudVault, type CollectedSessionEvents, ConflictError, type CreateMemoryInput, type CreateMemoryStoreInput, type CredentialDecl, type CredentialInjectionLocation, type CredentialNetworking, type CursorListOptions, type CursorPage, type DeploymentDecl, type DeploymentInfo$1 as DeploymentInfo, type DeploymentListFilter, type DeploymentListResult, type DeploymentRunInfo, type DeploymentRunPage, type DeploymentRunResult$1 as DeploymentRunResult, type DestroyDefaultMemoryStoreResult, type DestroyResourceResult, type DestructivePolicy, Diagnostic, type EnvironmentDecl, type EnvironmentListOptions, type EnvironmentPage, EventListOptions, EventStreamOptions, type FetchLike, type FileListOptions, type FilePage, type IStateManager, type LoadedProjectConfig, LocalFileStateBackend, type ManagedAgentOperationAuth, type ManagedAgentOperationCapability, type ManagedAgentProviderCapabilities, type ManagedApiTarget, 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 ProjectConfig, type ProjectRuntimeContext, type ProjectSourceInspection, type ProviderConfig, type ProviderConfigProvider, ProviderFileInfo, ProviderSessionEvent, ProviderSessionEventList, type ProviderSessionInfo, type ProviderSkillInfo, type ResolvedProjectConfig, type ResourceActionResult, ResourceAddress, type ResourceExecutionResult, type ResourcePlanResult, type ResourcePlanScope, type ResourceRefreshResult, type ResourceRuntimeOptions, type ResourceState, type ResourceSyncMode, type ResourceSyncRun, ResourceType, type RuntimeFeedbackEvent, type RuntimeFeedbackSink, type SecretPlaceholder, type SessionEventInput, type SessionEventSendResult, type SessionFilter, type SessionListResult, type SessionUpdateInput, type SkillDecl, type SkillDownloadInfo, type SkillFile, type SkillListOptions, type SkillPage, type SkillSourceInspection, type SkillVersionInfo, type SkillVersionListOptions, type SkillVersionPage, StateManager, type StateScope, type SyncProjectOptions, type SyncProjectResult, type UpdateMemoryInput, type UpdateMemoryStoreInput, UserError, type ValidateProjectConfigOptions, type VaultCredentialCreateOptions, type VaultCredentialCreatePlan, type VaultCredentialCreateResult, type VaultCredentialInfo, type VaultDecl, type VaultListOptions, type VaultPage, applyProviderConfigToEnv, archiveCloudAgent, archiveMemoryStore, archiveRemoteSession, areRuntimeCredentialsReady, batchCreateMemories, bootstrapRuntimeCredentials, bootstrapRuntimeCredentialsSync, buildAgentDecl, collectConfigReferences, createCloudEnvironment, createCloudVault, createMemory, createMemoryStore, createProjectRuntime, createSessionForAgent, createSkillFromFileId, createVaultCredential, createVaultCredentialWithStateBackend, decideDestructive, deleteCloudEnvironment, deleteCloudVault, deleteFile, deleteMemory, deleteMemoryStore, deleteSession, deleteSkill, destroyPlannedProjectResources, downloadRemoteFile, downloadRemoteSkill, executePlannedProject, extractSkillZipFiles, getAgent, getDeploymentDetailsForContext, getDeploymentRuntimeProviderForContext, getFileDownloadUrl, getFileInfo, getManagedAgentProviderCapabilities, getMemory, getMemoryProviderCapabilities, getMemoryStore, getMemoryVersion, getRemoteAgent, getRemoteDeployment, getRemoteDeploymentRun, getRemoteEnvironment, getRemoteSkill, getRemoteSkillDownloadInfo, getRemoteSkillVersion, getRemoteVault, getSession, getSkillInfo, importResource, inspectProjectSource, inspectSkillSource, isAgentRunnable, isTerminalSessionStatus, listAgentsWithReadiness, listCloudAgents, listCloudEnvironments, listCloudVaults, listDeploymentsForContext, listFiles, listMemories, listMemoryStores, listMemoryVersions, listProviderModelsForContext, listProviderNames, listRemoteAgentVersions, listRemoteAgents, listRemoteDeploymentRuns, listRemoteDeployments, listRemoteDeploymentsForContext, listRemoteEnvironments, listRemoteFiles, listRemoteSkillVersions, listRemoteSkills, listRemoteVaults, listSessionEvents, listSessionSummaries, listSkills, loadDotEnv, loadProviderConfigIntoEnv, loadProviderConfigIntoEnvSync, migrateConfig, parseStateAddress, pauseDeploymentForContext, planAgentResources, planAgentResourcesWithStateBackend, planDestroyProjectContext, planProjectContext, planProjectWithStateBackend, planVaultCredentialCreate, planVaultCredentialCreateWithStateBackend, prepareInitialSessionPrompt, preparePromptForProvider, prependFileHint, providerConfigPath, readProjectRuntime, redactMemoryVersion, resolveActiveProvider, resolveProjectConfig, resolveProjectConfigFromObject, resolveProviderConfigFromEnv, resolveRepositoryMountPath, resolveSessionProvider, resolveSyncProvider, rewriteFileMentions, runDeploymentForContext, runRemoteDeployment, sendRemoteSessionEvents, sendSessionMessagePolling, sendSessionMessageStreaming, setDefaultFetch, setRemoteDeploymentPaused, startSessionRun, startSessionRunPolling, streamSessionEvents, syncAgentResourcesWithStateBackend, syncProjectResourcesWithStateBackend, syncProviderResourcesFromContext, syncProviderResourcesFromEnv, updateMemory, updateMemoryStore, updateRemoteSession, uploadFile, validateProjectConfig, writeProjectRuntime };