@openagentpack/sdk 0.7.3 → 0.8.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/{chunk-XQMLTTGI.js → chunk-KYGVVTV6.js} +1 -1
- package/dist/{chunk-DFRNXUT3.js → chunk-LKLR56IB.js} +199 -167
- package/dist/{chunk-IRA4LOCJ.js → chunk-ZOMPZ7R6.js} +326 -87
- package/dist/{directory-nY2Slsfi.d.ts → directory-CbplCCLL.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +45 -3
- package/dist/project-versions.d.ts +2 -2
- package/dist/project-versions.js +2 -2
- package/dist/project-workspace.d.ts +4 -4
- package/dist/project-workspace.js +3 -3
- package/dist/{resource-runtime-DZsBWDjg.d.ts → resource-runtime-DdMsAJ8U.d.ts} +25 -5
- package/dist/{session-event-DB_YlDiK.d.ts → session-event-8uezu9Rz.d.ts} +1 -1
- package/dist/session-events.d.ts +2 -2
- package/package.json +1 -1
- package/dist/{dto-BT1Q1Ii6.d.ts → dto-CVvsUr3b.d.ts} +58 -58
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { U as UserError } from './errors-BcVE1wZB.js';
|
|
2
|
-
import { P as ProjectConfig, S as SkillFile, R as ResolvedProjectConfig, a as ProjectRuntimeContext, D as DeploymentContext, b as DeploymentRunResult$1, c as DeploymentInfo$1, d as DeploymentListFilter, e as DeploymentListResult, f as ResourceState, g as ProviderSessionInfo, M as ManagedAgentProviderCapabilities, h as DeploymentRunInfo, i as ProviderSkillInfo, j as SkillDownloadInfo, k as SkillVersionInfo, A as AgentVersionListOptions, l as AgentPage, m as AgentListOptions, n as DeploymentRunPage, E as EnvironmentListOptions, o as EnvironmentPage, F as FileListOptions, p as FilePage, q as SkillVersionListOptions, r as SkillVersionPage, s as SkillListOptions, t as SkillPage, V as VaultListOptions, u as VaultPage, v as SessionEventInput, w as SessionEventSendResult, x as SessionUpdateInput, B as BackendRuntimeInput, y as RuntimeFeedbackSink, z as ModelInfo, C as ProviderAdapter, G as MemoryStoreInfo, H as BatchCreateMemoryInput, I as BatchCreateMemoryResult, J as CreateMemoryInput, K as MemoryInfo, L as CreateMemoryStoreInput, N as MemoryProviderCapabilities, O as MemoryVersionInfo, Q as MemoryListOptions, T as MemoryPage, U as MemoryListItem, W as MemoryStoreListOptions, X as MemoryVersionListOptions, Y as UpdateMemoryInput, Z as UpdateMemoryStoreInput, _ as AgentDecl, $ as SkillDecl, a0 as ResourcePlanResult, a1 as ResourceSyncMode, a2 as DestructivePolicy, a3 as EnvironmentDecl, a4 as RemoteResource, a5 as VaultDecl, a6 as SessionResourceDecl, a7 as SessionFilter, a8 as SessionBindings, a9 as SessionGithubRepositoryResource, aa as StateBackend, ab as StateScope, ac as IStateManager } from './resource-runtime-
|
|
3
|
-
export { ad as CredentialDecl, ae as CredentialInjectionLocation, af as CredentialNetworking, ag as CursorListOptions, ah as CursorPage, ai as DeploymentDecl, aj as LoadedProjectConfig, ak as ManagedAgentOperationAuth, al as ManagedAgentOperationCapability, am as MemoryPrefixInfo, an as ResourceActionResult, ao as ResourceExecutionResult, ap as ResourcePlanScope, aq as ResourceRefreshResult, ar as ResourceRuntimeOptions, as as ResourceSyncRun, at as RuntimeFeedbackEvent, au as SessionListResult, av as StateManager, aw as VaultCredentialInfo, ax as createProjectRuntime, ay as decideDestructive, az as executePlannedProject, aA as importResource, aB as planProjectContext, aC as planProjectWithStateBackend, aD as readProjectRuntime, aE as resolveProjectConfig, aF as resolveProjectConfigFromObject, aG as syncProjectResourcesWithStateBackend, aH as writeProjectRuntime } from './resource-runtime-
|
|
4
|
-
import { D as Diagnostic, R as ResourceType, P as PlannedAction, A as AgentDefinition, a as AgentReadiness, b as AgentWithReadiness, C as CloudAgent, c as CloudEnvironment, d as CloudVault, e as AgentSyncRun, f as ResourceAddress } from './dto-
|
|
5
|
-
export { g as ActionType, h as ActionTypeSchema, i as AgentDefinitionSchema, j as AgentDriftSeverity, k as AgentDriftSeveritySchema, l as AgentModel, m as AgentModelSchema, n as AgentReadinessSchema, o as AgentReadinessStatus, p as AgentReadinessStatusSchema, q as AgentRecoveryAction, r as AgentRecoveryActionSchema, s as AgentSkillRef, t as AgentSkillRefSchema, u as AgentSyncReason, v as AgentSyncReasonSchema, w as AgentSyncResult, x as AgentSyncResultSchema, y as AgentSyncRunSchema, z as AgentSyncStatus, B as AgentSyncStatusSchema, E as AgentWithReadinessSchema, F as CloudAgentSchema, G as CloudEnvironmentSchema, H as CloudVaultSchema, I as CreateSessionRequest, J as CreateSessionRequestSchema, K as CreateSessionResponse, L as CreateSessionResponseSchema, M as DiagnosticSchema, N as DiagnosticSeverity, O as DiagnosticSeveritySchema, Q as DriftKind, S as DriftKindSchema, T as GetSessionRequest, U as GetSessionRequestSchema, V as KNOWN_SESSION_EVENT_TYPES, W as KnownSessionEventType, X as ListCloudAgentsResponse, Y as ListCloudAgentsResponseSchema, Z as ListCloudEnvironmentsResponse, _ as ListCloudEnvironmentsResponseSchema, $ as ListSessionEventsRequest, a0 as ListSessionEventsRequestSchema, a1 as ListSessionEventsResponse, a2 as ListSessionEventsResponseSchema, a3 as ListSessionsRequest, a4 as ListSessionsRequestSchema, a5 as ListSessionsResponse, a6 as ListSessionsResponseSchema, a7 as PlanReadinessImpact, a8 as PlanReadinessImpactSchema, a9 as PlannedActionSchema, aa as ResourceAddressSchema, ab as ResourceTypeSchema, ac as SendEventRequest, ad as SendEventRequestSchema, ae as SendEventResponse, af as SendEventResponseSchema, ag as Session, ah as SessionAgent, ai as SessionAgentSchema, aj as SessionContentBlock, ak as SessionContentBlockSchema, al as SessionEvent, am as SessionEventSchema, an as SessionEventType, ao as SessionEventTypeName, ap as SessionEventTypeSchema, aq as SessionSchema } from './dto-
|
|
2
|
+
import { P as ProjectConfig, S as SkillFile, R as ResolvedProjectConfig, a as ProjectRuntimeContext, D as DeploymentContext, b as DeploymentRunResult$1, c as DeploymentInfo$1, d as DeploymentListFilter, e as DeploymentListResult, f as ResourceState, g as ProviderSessionInfo, M as ManagedAgentProviderCapabilities, h as DeploymentRunInfo, i as ProviderSkillInfo, j as SkillDownloadInfo, k as SkillVersionInfo, A as AgentVersionListOptions, l as AgentPage, m as AgentListOptions, n as DeploymentRunPage, E as EnvironmentListOptions, o as EnvironmentPage, F as FileListOptions, p as FilePage, q as SkillVersionListOptions, r as SkillVersionPage, s as SkillListOptions, t as SkillPage, V as VaultListOptions, u as VaultPage, v as SessionEventInput, w as SessionEventSendResult, x as SessionUpdateInput, B as BackendRuntimeInput, y as RuntimeFeedbackSink, z as ModelInfo, C as ProviderAdapter, G as MemoryStoreInfo, H as BatchCreateMemoryInput, I as BatchCreateMemoryResult, J as CreateMemoryInput, K as MemoryInfo, L as CreateMemoryStoreInput, N as MemoryProviderCapabilities, O as MemoryVersionInfo, Q as MemoryListOptions, T as MemoryPage, U as MemoryListItem, W as MemoryStoreListOptions, X as MemoryVersionListOptions, Y as UpdateMemoryInput, Z as UpdateMemoryStoreInput, _ as AgentDecl, $ as SkillDecl, a0 as ResourcePlanResult, a1 as ResourceSyncMode, a2 as DestructivePolicy, a3 as EnvironmentDecl, a4 as RemoteResource, a5 as VaultDecl, a6 as SessionResourceDecl, a7 as SessionFilter, a8 as SessionBindings, a9 as SessionGithubRepositoryResource, aa as StateBackend, ab as StateScope, ac as IStateManager } from './resource-runtime-DdMsAJ8U.js';
|
|
3
|
+
export { ad as CredentialDecl, ae as CredentialInjectionLocation, af as CredentialNetworking, ag as CursorListOptions, ah as CursorPage, ai as DeploymentDecl, aj as LoadedProjectConfig, ak as ManagedAgentOperationAuth, al as ManagedAgentOperationCapability, am as MemoryPrefixInfo, an as ResourceActionResult, ao as ResourceExecutionResult, ap as ResourcePlanScope, aq as ResourceRefreshResult, ar as ResourceRuntimeOptions, as as ResourceSyncRun, at as RuntimeFeedbackEvent, au as SessionListResult, av as StateManager, aw as VaultCredentialInfo, ax as createProjectRuntime, ay as decideDestructive, az as executePlannedProject, aA as importResource, aB as planProjectContext, aC as planProjectWithStateBackend, aD as readProjectRuntime, aE as resolveProjectConfig, aF as resolveProjectConfigFromObject, aG as syncProjectResourcesWithStateBackend, aH as writeProjectRuntime } from './resource-runtime-DdMsAJ8U.js';
|
|
4
|
+
import { D as Diagnostic, R as ResourceType, P as PlannedAction, A as AgentDefinition, a as AgentReadiness, b as AgentWithReadiness, C as CloudAgent, c as CloudEnvironment, d as CloudVault, e as AgentSyncRun, f as ResourceAddress } from './dto-CVvsUr3b.js';
|
|
5
|
+
export { g as ActionType, h as ActionTypeSchema, i as AgentDefinitionSchema, j as AgentDriftSeverity, k as AgentDriftSeveritySchema, l as AgentModel, m as AgentModelSchema, n as AgentReadinessSchema, o as AgentReadinessStatus, p as AgentReadinessStatusSchema, q as AgentRecoveryAction, r as AgentRecoveryActionSchema, s as AgentSkillRef, t as AgentSkillRefSchema, u as AgentSyncReason, v as AgentSyncReasonSchema, w as AgentSyncResult, x as AgentSyncResultSchema, y as AgentSyncRunSchema, z as AgentSyncStatus, B as AgentSyncStatusSchema, E as AgentWithReadinessSchema, F as CloudAgentSchema, G as CloudEnvironmentSchema, H as CloudVaultSchema, I as CreateSessionRequest, J as CreateSessionRequestSchema, K as CreateSessionResponse, L as CreateSessionResponseSchema, M as DiagnosticSchema, N as DiagnosticSeverity, O as DiagnosticSeveritySchema, Q as DriftKind, S as DriftKindSchema, T as GetSessionRequest, U as GetSessionRequestSchema, V as KNOWN_SESSION_EVENT_TYPES, W as KnownSessionEventType, X as ListCloudAgentsResponse, Y as ListCloudAgentsResponseSchema, Z as ListCloudEnvironmentsResponse, _ as ListCloudEnvironmentsResponseSchema, $ as ListSessionEventsRequest, a0 as ListSessionEventsRequestSchema, a1 as ListSessionEventsResponse, a2 as ListSessionEventsResponseSchema, a3 as ListSessionsRequest, a4 as ListSessionsRequestSchema, a5 as ListSessionsResponse, a6 as ListSessionsResponseSchema, a7 as PlanReadinessImpact, a8 as PlanReadinessImpactSchema, a9 as PlannedActionSchema, aa as ResourceAddressSchema, ab as ResourceTypeSchema, ac as SendEventRequest, ad as SendEventRequestSchema, ae as SendEventResponse, af as SendEventResponseSchema, ag as Session, ah as SessionAgent, ai as SessionAgentSchema, aj as SessionContentBlock, ak as SessionContentBlockSchema, al as SessionEvent, am as SessionEventSchema, an as SessionEventType, ao as SessionEventTypeName, ap as SessionEventTypeSchema, aq as SessionSchema } from './dto-CVvsUr3b.js';
|
|
6
6
|
import { P as ProviderFileInfo } from './file-Cj5-Vx27.js';
|
|
7
|
-
import { P as ProviderSessionEventList, E as EventListOptions, a as ProviderSessionEvent, b as EventStreamOptions } from './session-event-
|
|
7
|
+
import { P as ProviderSessionEventList, E as EventListOptions, a as ProviderSessionEvent, b as EventStreamOptions } from './session-event-8uezu9Rz.js';
|
|
8
8
|
import 'zod';
|
|
9
9
|
|
|
10
10
|
declare class ApiError extends Error {
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
selectDestructive,
|
|
24
24
|
syncProjectResourcesWithStateBackend,
|
|
25
25
|
writeProjectRuntime
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LKLR56IB.js";
|
|
27
27
|
import {
|
|
28
28
|
ApiError,
|
|
29
29
|
ConflictError,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
rewriteFileMentions,
|
|
50
50
|
setDefaultFetch,
|
|
51
51
|
validateProjectConfig
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-ZOMPZ7R6.js";
|
|
53
53
|
import "./chunk-6PDVAFLK.js";
|
|
54
54
|
import {
|
|
55
55
|
defaultFileUploadPurpose,
|
|
@@ -770,9 +770,10 @@ var destroyOrder = {
|
|
|
770
770
|
environment: 7
|
|
771
771
|
};
|
|
772
772
|
function planDestroyProjectContext(ctx) {
|
|
773
|
-
const
|
|
773
|
+
const tierSorted = [...ctx.state.listResources()].sort(
|
|
774
774
|
(a, b) => (destroyOrder[a.address.type] ?? 99) - (destroyOrder[b.address.type] ?? 99)
|
|
775
775
|
);
|
|
776
|
+
const resources = destroyCoordinatorsFirst(tierSorted, ctx.config);
|
|
776
777
|
const identityName = ctx.config.defaults?.identity;
|
|
777
778
|
const defaultMemoryStores = [];
|
|
778
779
|
for (const [agentName, agent] of Object.entries(ctx.config.agents ?? {})) {
|
|
@@ -809,6 +810,46 @@ function planDestroyProjectContext(ctx) {
|
|
|
809
810
|
}
|
|
810
811
|
return { resources, defaultMemoryStores, executionContext: ctx };
|
|
811
812
|
}
|
|
813
|
+
function destroyCoordinatorsFirst(resources, config) {
|
|
814
|
+
const byAddress = /* @__PURE__ */ new Map();
|
|
815
|
+
for (const resource of resources) byAddress.set(addressKey(resource.address), resource);
|
|
816
|
+
const memberResourcesOf = (resource) => {
|
|
817
|
+
const decl = config.agents?.[resource.address.name];
|
|
818
|
+
if (!decl?.multiagent) return [];
|
|
819
|
+
if (decl.provider && decl.provider !== resource.address.provider) return [];
|
|
820
|
+
const members = [];
|
|
821
|
+
for (const memberName of decl.multiagent.agents) {
|
|
822
|
+
if (typeof memberName !== "string") continue;
|
|
823
|
+
const memberDecl = config.agents?.[memberName];
|
|
824
|
+
if (!memberDecl) continue;
|
|
825
|
+
const memberType = resolveAgentMaterialization(resource.address.provider, memberDecl).resourceType;
|
|
826
|
+
const member = byAddress.get(
|
|
827
|
+
addressKey({ type: memberType, name: memberName, provider: resource.address.provider })
|
|
828
|
+
);
|
|
829
|
+
if (member) members.push(member);
|
|
830
|
+
}
|
|
831
|
+
return members;
|
|
832
|
+
};
|
|
833
|
+
const emitted = /* @__PURE__ */ new Set();
|
|
834
|
+
const ordered = [];
|
|
835
|
+
const emit = (resource) => {
|
|
836
|
+
const key = addressKey(resource.address);
|
|
837
|
+
if (emitted.has(key)) return;
|
|
838
|
+
emitted.add(key);
|
|
839
|
+
ordered.push(resource);
|
|
840
|
+
for (const member of memberResourcesOf(resource)) emit(member);
|
|
841
|
+
};
|
|
842
|
+
const isCoordinator = (resource) => {
|
|
843
|
+
const decl = config.agents?.[resource.address.name];
|
|
844
|
+
if (!decl?.multiagent) return false;
|
|
845
|
+
return !decl.provider || decl.provider === resource.address.provider;
|
|
846
|
+
};
|
|
847
|
+
for (const resource of resources) {
|
|
848
|
+
if (isCoordinator(resource)) emit(resource);
|
|
849
|
+
}
|
|
850
|
+
for (const resource of resources) emit(resource);
|
|
851
|
+
return ordered;
|
|
852
|
+
}
|
|
812
853
|
async function destroyPlannedProjectResources(planned, options = {}) {
|
|
813
854
|
const results = [];
|
|
814
855
|
const capturedDefaults = await captureDefaultMemoryStores(planned);
|
|
@@ -1796,6 +1837,7 @@ function collectAgentAddresses(config, agentName, provider) {
|
|
|
1796
1837
|
roots.push({ type: "identity", name: config.defaults.identity, provider: resolvedProvider });
|
|
1797
1838
|
}
|
|
1798
1839
|
for (const subAgentName of declaration.multiagent?.agents ?? []) {
|
|
1840
|
+
if (typeof subAgentName !== "string") continue;
|
|
1799
1841
|
const subAgent = config.agents?.[subAgentName];
|
|
1800
1842
|
if (!subAgent) continue;
|
|
1801
1843
|
roots.push({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { U as UserError } from './errors-BcVE1wZB.js';
|
|
2
|
-
import { D as Diagnostic } from './dto-
|
|
3
|
-
export { D as DirectoryProjectMutationConflictError, a as DirectoryProjectSnapshot, b as DirectoryProjectVersion, c as DirectoryProjectVersionAdapter, d as DirectoryProjectVersionPreview, e as DirectoryProjectVersionService, f as DirectoryProjectVersionStatus, g as DirectorySnapshotFile, h as DirectoryVersionFileChange, P as PreparedDirectoryProjectVersion, i as createDirectoryProjectVersionService } from './directory-
|
|
2
|
+
import { D as Diagnostic } from './dto-CVvsUr3b.js';
|
|
3
|
+
export { D as DirectoryProjectMutationConflictError, a as DirectoryProjectSnapshot, b as DirectoryProjectVersion, c as DirectoryProjectVersionAdapter, d as DirectoryProjectVersionPreview, e as DirectoryProjectVersionService, f as DirectoryProjectVersionStatus, g as DirectorySnapshotFile, h as DirectoryVersionFileChange, P as PreparedDirectoryProjectVersion, i as createDirectoryProjectVersionService } from './directory-CbplCCLL.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
type ProjectVersionErrorCode = "store_missing" | "store_blocked" | "stale_snapshot" | "invalid_version" | "invalid_source" | "storage_failed";
|
package/dist/project-versions.js
CHANGED
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
readProjectVersionSource,
|
|
14
14
|
releasePreparedProjectVersion,
|
|
15
15
|
restoreProjectVersion
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-KYGVVTV6.js";
|
|
17
|
+
import "./chunk-ZOMPZ7R6.js";
|
|
18
18
|
import "./chunk-6PDVAFLK.js";
|
|
19
19
|
import "./chunk-CHGDM6TX.js";
|
|
20
20
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { aj as LoadedProjectConfig, a0 as ResourcePlanResult, as as ResourceSyncRun, y as RuntimeFeedbackSink } from './resource-runtime-
|
|
1
|
+
import { aj as LoadedProjectConfig, a0 as ResourcePlanResult, as as ResourceSyncRun, y as RuntimeFeedbackSink } from './resource-runtime-DdMsAJ8U.js';
|
|
2
2
|
import { U as UserError } from './errors-BcVE1wZB.js';
|
|
3
|
-
import { D as Diagnostic, P as PlannedAction } from './dto-
|
|
4
|
-
import { e as DirectoryProjectVersionService } from './directory-
|
|
3
|
+
import { D as Diagnostic, P as PlannedAction } from './dto-CVvsUr3b.js';
|
|
4
|
+
import { e as DirectoryProjectVersionService } from './directory-CbplCCLL.js';
|
|
5
5
|
import './file-Cj5-Vx27.js';
|
|
6
|
-
import './session-event-
|
|
6
|
+
import './session-event-8uezu9Rz.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
|
|
9
9
|
declare const PROJECT_METADATA_FILE = "project.json";
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
planProjectContext,
|
|
5
5
|
planProjectWithStateBackend,
|
|
6
6
|
writeProjectRuntime
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LKLR56IB.js";
|
|
8
8
|
import {
|
|
9
9
|
createDirectoryProjectVersionService
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KYGVVTV6.js";
|
|
11
11
|
import {
|
|
12
12
|
UserError,
|
|
13
13
|
inspectProjectSource,
|
|
14
14
|
resolveProjectConfig,
|
|
15
15
|
resolveProjectConfigFromObject,
|
|
16
16
|
validateProjectConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZOMPZ7R6.js";
|
|
18
18
|
import "./chunk-6PDVAFLK.js";
|
|
19
19
|
import "./chunk-CHGDM6TX.js";
|
|
20
20
|
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import { C as CloudAgent, c as CloudEnvironment, d as CloudVault, f as ResourceAddress, R as ResourceType, P as PlannedAction, D as Diagnostic } from './dto-
|
|
1
|
+
import { C as CloudAgent, c as CloudEnvironment, d as CloudVault, f as ResourceAddress, R as ResourceType, P as PlannedAction, D as Diagnostic } from './dto-CVvsUr3b.js';
|
|
2
2
|
import { P as ProviderFileInfo } from './file-Cj5-Vx27.js';
|
|
3
|
-
import { b as EventStreamOptions, a as ProviderSessionEvent, E as EventListOptions, P as ProviderSessionEventList } from './session-event-
|
|
3
|
+
import { b as EventStreamOptions, a as ProviderSessionEvent, E as EventListOptions, P as ProviderSessionEventList } from './session-event-8uezu9Rz.js';
|
|
4
|
+
|
|
5
|
+
interface ResolvedMultiagentMember {
|
|
6
|
+
/** Present only when the member is owned and named by this project. */
|
|
7
|
+
logical_name?: string;
|
|
8
|
+
resource_type: "agent" | "template";
|
|
9
|
+
remote_id: string;
|
|
10
|
+
}
|
|
11
|
+
interface ResolvedMultiagentRoster {
|
|
12
|
+
type: "coordinator";
|
|
13
|
+
members: ResolvedMultiagentMember[];
|
|
14
|
+
}
|
|
4
15
|
|
|
5
16
|
type ProviderName = string;
|
|
6
17
|
interface ProjectConfig {
|
|
@@ -228,8 +239,12 @@ interface McpServerDecl {
|
|
|
228
239
|
}
|
|
229
240
|
interface MultiagentDecl {
|
|
230
241
|
type: "coordinator";
|
|
231
|
-
agents:
|
|
242
|
+
agents: MultiagentMemberDecl[];
|
|
232
243
|
}
|
|
244
|
+
/** A project-owned logical Agent name, or an externally owned Managed Agent id. */
|
|
245
|
+
type MultiagentMemberDecl = string | {
|
|
246
|
+
agent_id: string;
|
|
247
|
+
};
|
|
233
248
|
interface DeploymentDecl {
|
|
234
249
|
name?: string;
|
|
235
250
|
agent: string;
|
|
@@ -698,7 +713,7 @@ interface ResolvedAgentRefs {
|
|
|
698
713
|
skill_id: string;
|
|
699
714
|
version?: string;
|
|
700
715
|
}>;
|
|
701
|
-
|
|
716
|
+
multiagent?: ResolvedMultiagentRoster;
|
|
702
717
|
}
|
|
703
718
|
interface ResolvedTemplateRefs extends ResolvedAgentRefs {
|
|
704
719
|
environment_id: string;
|
|
@@ -810,7 +825,12 @@ interface ProviderAdapter {
|
|
|
810
825
|
getRemoteVault?(id: string): Promise<CloudVault>;
|
|
811
826
|
getDriftSupport?(type: ResourceType): DriftSupport;
|
|
812
827
|
readComparableResource?(type: ResourceType, id: string | null, name: string, decl?: unknown): Promise<ComparableRemoteResource | null>;
|
|
813
|
-
|
|
828
|
+
/**
|
|
829
|
+
* Canonical desired form for drift comparison. `refs` carries resolved
|
|
830
|
+
* skill and multiagent references; callers only compute it for agent/template
|
|
831
|
+
* resources where they have config + state at hand.
|
|
832
|
+
*/
|
|
833
|
+
normalizeDesiredResource?(type: ResourceType, name: string, decl: unknown, refs?: ResolvedAgentRefs | ResolvedTemplateRefs): unknown | null;
|
|
814
834
|
/**
|
|
815
835
|
* Reverse-map remote resources of a given type into `agents.yaml` declarations
|
|
816
836
|
* (used by `agents sync`). Returns an empty array for unsupported types. Secret
|
package/dist/session-events.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { al as SessionEvent } from './dto-
|
|
2
|
-
import { a as ProviderSessionEvent } from './session-event-
|
|
1
|
+
import { al as SessionEvent } from './dto-CVvsUr3b.js';
|
|
2
|
+
import { a as ProviderSessionEvent } from './session-event-8uezu9Rz.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare function sanitizeSessionEvents(events: ProviderSessionEvent[], options?: {
|