@openagentpack/sdk 0.4.0-beta-2472720-20260827 → 0.5.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 CHANGED
@@ -1,5 +1,5 @@
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 AgentWithReadiness, h as AgentSyncRun } from './session-event-DHLkM9iF.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-DHLkM9iF.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 AgentWithReadiness, h as AgentSyncRun } from './session-event-5kLRNMHC.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-5kLRNMHC.js';
3
3
  import { P as ProviderFileInfo } from './file-Cj5-Vx27.js';
4
4
  import 'zod';
5
5
 
@@ -333,6 +333,7 @@ interface VaultCredentialInfo {
333
333
  display_name: string;
334
334
  auth_type: string;
335
335
  secret_name?: string;
336
+ mcp_server_url?: string;
336
337
  networking_type?: string;
337
338
  metadata?: Record<string, string>;
338
339
  }
package/dist/index.js CHANGED
@@ -1310,7 +1310,7 @@ function mapAgent(name, decl, refs, version, projectName) {
1310
1310
  }
1311
1311
  function mapDeployment(name, decl, refs, projectName, uploadedFiles) {
1312
1312
  const body = {
1313
- name,
1313
+ name: decl.name ?? name,
1314
1314
  agent: refs.agent_version !== void 0 ? { id: refs.agent_id, type: "agent", version: refs.agent_version } : refs.agent_id,
1315
1315
  environment_id: refs.environment_id,
1316
1316
  initial_events: mapInitialEvents(decl.initial_events)
@@ -2215,7 +2215,7 @@ function mapMemoryStore2(name, decl) {
2215
2215
  }
2216
2216
  function mapDeployment2(name, decl, refs, projectName, uploadedFiles) {
2217
2217
  const body = {
2218
- name,
2218
+ name: decl.name ?? name,
2219
2219
  agent: refs.agent_version !== void 0 ? { id: refs.agent_id, type: "agent", version: refs.agent_version } : refs.agent_id,
2220
2220
  environment_id: refs.environment_id,
2221
2221
  initial_events: mapDeploymentInitialEvents(decl.initial_events)
@@ -2846,7 +2846,7 @@ var QoderAdapter = class _QoderAdapter {
2846
2846
  const currentMetadata = current.metadata ?? {};
2847
2847
  const metadata = { ...body.metadata ?? {} };
2848
2848
  for (const key of Object.keys(currentMetadata)) {
2849
- if (!key.startsWith("agents.") && !(key in metadata)) metadata[key] = null;
2849
+ if (key !== "created_by" && !key.startsWith("agents.") && !(key in metadata)) metadata[key] = null;
2850
2850
  }
2851
2851
  body.metadata = metadata;
2852
2852
  const res = await client.post(`/environments/${id}`, body);
@@ -3657,24 +3657,17 @@ function mapVault2(name, decl, projectName) {
3657
3657
  return body;
3658
3658
  }
3659
3659
  function mapCredential2(cred) {
3660
- if (cred.type === "environment_variable") {
3661
- const body2 = {
3662
- auth: {
3663
- type: "environment_variable",
3664
- secret_name: cred.secret_name,
3665
- secret_value: cred.secret_value,
3666
- networking: cred.networking ?? { type: "unrestricted" }
3667
- },
3668
- display_name: cred.name
3669
- };
3670
- if (cred.metadata) body2.metadata = cred.metadata;
3671
- return body2;
3660
+ if (cred.type !== "environment_variable") {
3661
+ throw new UserError(
3662
+ `credential '${cred.name}': Bailian only supports credential type 'environment_variable', but '${cred.type}' was declared.`
3663
+ );
3672
3664
  }
3673
3665
  const body = {
3674
3666
  auth: {
3675
- type: cred.type,
3676
- token: cred.access_token,
3677
- mcp_server_url: cred.mcp_server_url
3667
+ type: "environment_variable",
3668
+ secret_name: cred.secret_name,
3669
+ secret_value: cred.secret_value,
3670
+ networking: cred.networking ?? { type: "unrestricted" }
3678
3671
  },
3679
3672
  display_name: cred.name
3680
3673
  };
@@ -4310,6 +4303,7 @@ var BailianAdapter = class _BailianAdapter {
4310
4303
  // thin wrappers over the AgentStudio endpoints, exposed so callers/tests can
4311
4304
  // exercise the full surface through real project code rather than raw fetch.
4312
4305
  async createVault(name, decl) {
4306
+ for (const credential of decl.credentials ?? []) mapCredential2(credential);
4313
4307
  const body = mapVault2(name, decl, this.projectName);
4314
4308
  const res = await this.client.post("/vaults", body);
4315
4309
  const vaultId = res.id;
@@ -4364,6 +4358,7 @@ var BailianAdapter = class _BailianAdapter {
4364
4358
  display_name: raw.display_name ?? raw.id,
4365
4359
  auth_type: auth.type ?? "",
4366
4360
  secret_name: auth.secret_name,
4361
+ mcp_server_url: auth.mcp_server_url,
4367
4362
  networking_type: networking?.type,
4368
4363
  metadata: metadata ? Object.fromEntries(
4369
4364
  Object.entries(metadata).filter((entry) => typeof entry[1] === "string")
@@ -4780,7 +4775,7 @@ function guessMimeType(fileName) {
4780
4775
  // src/internal/providers/bailian/capabilities.ts
4781
4776
  var BAILIAN_CAPABILITIES = {
4782
4777
  environment: { tier: "native", reason: "environments API" },
4783
- vault: { tier: "native", reason: "vaults + credentials API (static_bearer MCP credentials)" },
4778
+ vault: { tier: "native", reason: "vaults + environment_variable credentials API" },
4784
4779
  skill: { tier: "native", reason: "skills API with 2-step zip upload via Files API" },
4785
4780
  agent: { tier: "native", reason: "agents API with versioned updates" },
4786
4781
  template: { tier: "unsupported", reason: "no Forward Template equivalent on Bailian" },
@@ -6725,7 +6720,9 @@ async function executePlan(plan, ctx, options = {}) {
6725
6720
  await runWithConcurrency(level, concurrency, runAction);
6726
6721
  await ctx.state.save();
6727
6722
  }
6728
- await reconcileDefaultMemoryStores(ctx, new Set(plan.actions.map((action) => action.address.provider)));
6723
+ if (!ctx.createOnly) {
6724
+ await reconcileDefaultMemoryStores(ctx, new Set(plan.actions.map((action) => action.address.provider)));
6725
+ }
6729
6726
  for (const action of deletions) {
6730
6727
  await runAction(action);
6731
6728
  await ctx.state.save();
@@ -6937,6 +6934,7 @@ async function executeActionInner(action, provider, ctx) {
6937
6934
  } catch (err) {
6938
6935
  result = await adoptOnConflict(err, address, provider, ctx.onFeedback, {
6939
6936
  mode: apiMode,
6937
+ createOnly: ctx.createOnly,
6940
6938
  onExisting: (existing) => provider.updateEnvironment(existing.id, remoteName, decl, apiMode)
6941
6939
  });
6942
6940
  adopted = true;
@@ -6956,6 +6954,7 @@ async function executeActionInner(action, provider, ctx) {
6956
6954
  } catch (err) {
6957
6955
  result = await adoptOnConflict(err, address, provider, ctx.onFeedback, {
6958
6956
  mode: apiMode,
6957
+ createOnly: ctx.createOnly,
6959
6958
  onExisting: (existing) => provider.updateEnvironment(existing.id, remoteName, decl, apiMode)
6960
6959
  });
6961
6960
  adopted = true;
@@ -6982,6 +6981,7 @@ async function executeActionInner(action, provider, ctx) {
6982
6981
  } catch (err) {
6983
6982
  result = await adoptOnConflict(err, address, provider, ctx.onFeedback, {
6984
6983
  mode: apiMode,
6984
+ createOnly: ctx.createOnly,
6985
6985
  onExisting: async (existing) => {
6986
6986
  await provider.deleteVault(existing.id, apiMode);
6987
6987
  return provider.createVault(name, decl, apiMode);
@@ -7018,6 +7018,7 @@ async function executeActionInner(action, provider, ctx) {
7018
7018
  const searchNames = manifestName && manifestName !== remoteName ? [remoteName, manifestName] : [remoteName];
7019
7019
  const existing = await findExistingByNames(provider, "skill", searchNames, apiMode);
7020
7020
  if (existing) {
7021
+ if (ctx.createOnly) throw createOnlyExistingResourceError(address, existing.name);
7021
7022
  result = existing.resource;
7022
7023
  emitRuntimeFeedback(ctx.onFeedback, {
7023
7024
  type: "resource_adopted",
@@ -7033,6 +7034,7 @@ async function executeActionInner(action, provider, ctx) {
7033
7034
  result = await adoptOnConflict(err, address, provider, ctx.onFeedback, {
7034
7035
  mode: apiMode,
7035
7036
  searchNames,
7037
+ createOnly: ctx.createOnly,
7036
7038
  onExisting: async (existing2) => existing2
7037
7039
  });
7038
7040
  adopted = true;
@@ -7099,6 +7101,7 @@ async function executeActionInner(action, provider, ctx) {
7099
7101
  } catch (err) {
7100
7102
  result = await adoptOnConflict(err, address, provider, ctx.onFeedback, {
7101
7103
  mode: apiMode,
7104
+ createOnly: ctx.createOnly,
7102
7105
  onExisting: async (existing) => reconcile(existing.id)
7103
7106
  });
7104
7107
  adopted = true;
@@ -7117,6 +7120,7 @@ async function executeActionInner(action, provider, ctx) {
7117
7120
  result = await provider.createAgent(remoteName, decl, refs);
7118
7121
  } catch (err) {
7119
7122
  result = await adoptOnConflict(err, address, provider, ctx.onFeedback, {
7123
+ createOnly: ctx.createOnly,
7120
7124
  onExisting: (existing) => provider.updateAgent(existing.id, remoteName, decl, refs)
7121
7125
  });
7122
7126
  adopted = true;
@@ -7140,6 +7144,7 @@ async function executeActionInner(action, provider, ctx) {
7140
7144
  result = await createTemplate(remoteName, decl, refs);
7141
7145
  } catch (err) {
7142
7146
  result = await adoptOnConflict(err, address, provider, ctx.onFeedback, {
7147
+ createOnly: ctx.createOnly,
7143
7148
  onExisting: (existing) => updateTemplate(existing.id, remoteName, decl, refs)
7144
7149
  });
7145
7150
  adopted = true;
@@ -7174,6 +7179,7 @@ async function executeActionInner(action, provider, ctx) {
7174
7179
  result = await createIdentity(name, decl);
7175
7180
  } catch (err) {
7176
7181
  if (!(err instanceof ConflictError)) throw err;
7182
+ if (ctx.createOnly) throw createOnlyExistingResourceError(address);
7177
7183
  const existing = await provider.findResource("identity", decl.external_id);
7178
7184
  if (!existing?.id) throw err;
7179
7185
  result = await updateIdentity(existing.id, name, decl);
@@ -7197,6 +7203,7 @@ async function executeActionInner(action, provider, ctx) {
7197
7203
  result = await createChannel(name, decl, refs);
7198
7204
  } catch (err) {
7199
7205
  result = await adoptOnConflict(err, address, provider, ctx.onFeedback, {
7206
+ createOnly: ctx.createOnly,
7200
7207
  onExisting: (existing) => updateChannel(existing.id, name, decl, refs)
7201
7208
  });
7202
7209
  adopted = true;
@@ -7216,6 +7223,7 @@ async function executeActionInner(action, provider, ctx) {
7216
7223
  } catch (err) {
7217
7224
  const preparedFiles = err instanceof DeploymentCreateConflictError ? err.preparedFiles : void 0;
7218
7225
  const existing = await adoptOnConflict(err, address, provider, ctx.onFeedback, {
7226
+ createOnly: ctx.createOnly,
7219
7227
  onExisting: (existing2) => provider.updateDeployment(existing2.id, name, decl, refs, ctx.configPath ?? "", preparedFiles)
7220
7228
  });
7221
7229
  adopted = true;
@@ -7227,6 +7235,7 @@ async function executeActionInner(action, provider, ctx) {
7227
7235
  } else {
7228
7236
  const existing = hasLocalFileSources ? await findExistingByNames(provider, "deployment", [name]) : null;
7229
7237
  if (existing) {
7238
+ if (ctx.createOnly) throw createOnlyExistingResourceError(address, existing.name);
7230
7239
  result = await provider.updateDeployment(existing.resource.id, name, decl, refs, ctx.configPath ?? "");
7231
7240
  emitRuntimeFeedback(ctx.onFeedback, {
7232
7241
  type: "resource_adopted",
@@ -7327,6 +7336,7 @@ async function findExistingByNames(provider, type, names, mode) {
7327
7336
  async function adoptOnConflict(err, address, provider, onFeedback, opts) {
7328
7337
  if (!(err instanceof ConflictError)) throw err;
7329
7338
  const candidates = opts.searchNames?.length ? opts.searchNames : [address.name];
7339
+ if (opts.createOnly) throw createOnlyExistingResourceError(address, candidates.join('" / "'));
7330
7340
  const existing = await findExistingByNames(provider, address.type, candidates, opts.mode);
7331
7341
  if (!existing) throw nameReservedError(err, address, candidates.join('" / "'));
7332
7342
  emitRuntimeFeedback(onFeedback, {
@@ -7337,6 +7347,11 @@ async function adoptOnConflict(err, address, provider, onFeedback, opts) {
7337
7347
  });
7338
7348
  return opts.onExisting(existing.resource);
7339
7349
  }
7350
+ function createOnlyExistingResourceError(address, remoteName = address.name) {
7351
+ return new UserError(
7352
+ `Create-only cannot adopt or reconcile existing ${address.type} "${remoteName}" on provider '${address.provider}'. Choose a new name, or use a normal apply/import workflow to manage the existing resource.`
7353
+ );
7354
+ }
7340
7355
  function nameReservedError(err, address, searchName) {
7341
7356
  const detail = err instanceof ApiError ? err.message : String(err);
7342
7357
  if (address.type === "channel" && err instanceof ApiError && err.responseBody.includes("CHANNEL_CREDENTIAL_CONFLICT")) {
@@ -8806,6 +8821,10 @@ function resolvePlanScope(ctx, targetProviders, scope) {
8806
8821
  return scope.includeDependencies === false ? [...scope.roots] : collectDependencyClosure(graph, scope.roots);
8807
8822
  }
8808
8823
  async function executePlannedProject(planned, options = {}) {
8824
+ if (planned.mode === "create-only") {
8825
+ const errorDiagnostic = planned.plan.diagnostics.find((diagnostic) => diagnostic.severity === "error");
8826
+ if (errorDiagnostic) throw new UserError(errorDiagnostic.message);
8827
+ }
8809
8828
  const decision = await decideDestructive(planned.destructiveActions, {
8810
8829
  policy: options.policy,
8811
8830
  confirm: options.confirm
@@ -8823,7 +8842,8 @@ async function executePlannedProject(planned, options = {}) {
8823
8842
  configPath: ctx.configPath,
8824
8843
  providers: ctx.providers,
8825
8844
  state: ctx.state,
8826
- onFeedback: options.onFeedback
8845
+ onFeedback: options.onFeedback,
8846
+ createOnly: planned.mode === "create-only"
8827
8847
  },
8828
8848
  { concurrency: options.concurrency }
8829
8849
  );
@@ -9368,7 +9388,10 @@ var BAILIAN_OPERATIONS = {
9368
9388
  "skill.versions": API_KEY,
9369
9389
  "skill.download": API_KEY,
9370
9390
  "vault.create": { ...API_KEY, reason: "YAML declaration plus scoped create-only apply." },
9371
- "vault.credential.create": { ...API_KEY, reason: "YAML declaration plus scoped Vault transaction." },
9391
+ "vault.credential.create": {
9392
+ ...API_KEY,
9393
+ reason: "YAML declaration plus scoped Vault transaction; Bailian supports environment_variable credentials only."
9394
+ },
9372
9395
  "vault.list": API_KEY,
9373
9396
  "vault.get": API_KEY,
9374
9397
  "vault.search": CLIENT_SEARCH,
@@ -9483,6 +9506,11 @@ async function prepareVaultCredentialCreate(ctx, vaultName, credentialName, opti
9483
9506
  if (vault.credentials.slice(0, -1).some((entry) => entry.name === credentialName)) {
9484
9507
  throw new UserError(`Vault '${vaultName}' already declares a credential named '${credentialName}'.`);
9485
9508
  }
9509
+ if (provider === "bailian" && credential.type !== "environment_variable") {
9510
+ throw new UserError(
9511
+ `Credential '${credentialName}' uses '${credential.type}', but Bailian only supports 'environment_variable' credentials.`
9512
+ );
9513
+ }
9486
9514
  const address = { type: "vault", name: vaultName, provider };
9487
9515
  const priorConfig = structuredClone(ctx.config);
9488
9516
  priorConfig.vaults[vaultName] = {
@@ -9541,7 +9569,14 @@ function resolveVaultProvider(ctx, declaredProvider, requestedProvider) {
9541
9569
  throw new UserError("Cannot infer one provider for Vault Credential create.");
9542
9570
  }
9543
9571
  function credentialMatches(remote, desired) {
9544
- return remote.auth_type === desired.type && remote.secret_name === desired.secret_name && (remote.networking_type ?? "unrestricted") === (desired.networking?.type ?? "unrestricted");
9572
+ if (remote.auth_type !== desired.type || !metadataMatches(remote.metadata, desired.metadata)) return false;
9573
+ if (desired.type === "static_bearer") return remote.mcp_server_url === desired.mcp_server_url;
9574
+ return remote.secret_name === desired.secret_name && (remote.networking_type ?? "unrestricted") === (desired.networking?.type ?? "unrestricted");
9575
+ }
9576
+ function metadataMatches(remote, desired) {
9577
+ const remoteEntries = Object.entries(remote ?? {});
9578
+ const desiredEntries = Object.entries(desired ?? {});
9579
+ return remoteEntries.length === desiredEntries.length && desiredEntries.every(([key, value]) => remote?.[key] === value);
9545
9580
  }
9546
9581
 
9547
9582
  // src/internal/core/destroy-runtime.ts
@@ -1,4 +1,4 @@
1
- import { P as ProviderSessionEvent, an as SessionEvent } from './session-event-DHLkM9iF.js';
1
+ import { P as ProviderSessionEvent, an as SessionEvent } from './session-event-5kLRNMHC.js';
2
2
  import 'zod';
3
3
 
4
4
  declare function sanitizeSessionEvents(events: ProviderSessionEvent[], options?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagentpack/sdk",
3
- "version": "0.4.0-beta-2472720-20260827",
3
+ "version": "0.5.0",
4
4
  "description": "OpenAgentPack SDK (Node-compatible runtime)",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -155,8 +155,8 @@ declare const PlannedActionSchema: z.ZodObject<{
155
155
  }, z.core.$strip>;
156
156
  type PlannedAction = z.infer<typeof PlannedActionSchema>;
157
157
  declare const AgentReadinessStatusSchema: z.ZodEnum<{
158
- ready: "ready";
159
158
  error: "error";
159
+ ready: "ready";
160
160
  missing: "missing";
161
161
  creating: "creating";
162
162
  updating: "updating";
@@ -203,8 +203,8 @@ declare const AgentDefinitionSchema: z.ZodObject<{
203
203
  type AgentDefinition = z.infer<typeof AgentDefinitionSchema>;
204
204
  declare const AgentReadinessSchema: z.ZodObject<{
205
205
  status: z.ZodEnum<{
206
- ready: "ready";
207
206
  error: "error";
207
+ ready: "ready";
208
208
  missing: "missing";
209
209
  creating: "creating";
210
210
  updating: "updating";
@@ -353,8 +353,8 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
353
353
  }, z.core.$strip>;
354
354
  readiness: z.ZodObject<{
355
355
  status: z.ZodEnum<{
356
- ready: "ready";
357
356
  error: "error";
357
+ ready: "ready";
358
358
  missing: "missing";
359
359
  creating: "creating";
360
360
  updating: "updating";
@@ -585,9 +585,9 @@ declare const SessionEventTypeSchema: z.ZodEnum<{
585
585
  }>;
586
586
  type SessionEventType = z.infer<typeof SessionEventTypeSchema>;
587
587
  declare const AgentSyncStatusSchema: z.ZodEnum<{
588
- failed: "failed";
589
588
  completed: "completed";
590
589
  blocked: "blocked";
590
+ failed: "failed";
591
591
  }>;
592
592
  type AgentSyncStatus = z.infer<typeof AgentSyncStatusSchema>;
593
593
  declare const AgentSyncResultSchema: z.ZodObject<{
@@ -663,8 +663,8 @@ declare const AgentSyncResultSchema: z.ZodObject<{
663
663
  }, z.core.$strip>>;
664
664
  }, z.core.$strip>;
665
665
  status: z.ZodEnum<{
666
- failed: "failed";
667
666
  success: "success";
667
+ failed: "failed";
668
668
  skipped: "skipped";
669
669
  }>;
670
670
  error: z.ZodOptional<z.ZodString>;
@@ -674,9 +674,9 @@ declare const AgentSyncRunSchema: z.ZodObject<{
674
674
  agentId: z.ZodString;
675
675
  provider: z.ZodOptional<z.ZodString>;
676
676
  status: z.ZodEnum<{
677
- failed: "failed";
678
677
  completed: "completed";
679
678
  blocked: "blocked";
679
+ failed: "failed";
680
680
  }>;
681
681
  actions: z.ZodArray<z.ZodObject<{
682
682
  action: z.ZodEnum<{
@@ -918,8 +918,8 @@ declare const AgentSyncRunSchema: z.ZodObject<{
918
918
  }, z.core.$strip>>;
919
919
  }, z.core.$strip>;
920
920
  status: z.ZodEnum<{
921
- failed: "failed";
922
921
  success: "success";
922
+ failed: "failed";
923
923
  skipped: "skipped";
924
924
  }>;
925
925
  error: z.ZodOptional<z.ZodString>;