@revoengine/cli 1.0.20 → 1.0.22
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/README.md +48 -10
- package/dist/src/cli.js +5 -1
- package/dist/src/client.d.ts +37 -8
- package/dist/src/client.js +58 -0
- package/dist/src/commands/agents.d.ts +2 -0
- package/dist/src/commands/agents.js +56 -0
- package/dist/src/commands/component.js +19 -0
- package/dist/src/commands/env.js +8 -5
- package/dist/src/commands/index.d.ts +1 -0
- package/dist/src/commands/index.js +1 -0
- package/dist/src/commands/migrate.js +19 -3
- package/dist/src/commands/schedules.js +11 -9
- package/dist/src/component-contract.d.ts +8 -0
- package/dist/src/component-contract.js +68 -0
- package/dist/src/component-lock.d.ts +6 -2
- package/dist/src/component-lock.js +42 -2
- package/dist/src/database-indexes.d.ts +14 -0
- package/dist/src/database-indexes.js +124 -0
- package/dist/src/env-sync.d.ts +2 -0
- package/dist/src/env-sync.js +18 -2
- package/dist/src/metadata-backfill.js +39 -1
- package/dist/src/migration-actions.js +1 -1
- package/dist/src/migration.d.ts +9 -2
- package/dist/src/migration.js +61 -2
- package/dist/src/resource-inventory.d.ts +4 -2
- package/dist/src/resource-inventory.js +11 -1
- package/dist/src/resource-syncs/agent-sync.d.ts +98 -0
- package/dist/src/resource-syncs/agent-sync.js +612 -0
- package/dist/src/resource-syncs/database-table-sync.d.ts +3 -0
- package/dist/src/resource-syncs/database-table-sync.js +10 -6
- package/dist/src/resource-syncs/database-view-sync.d.ts +2 -4
- package/dist/src/resource-syncs/database-view-sync.js +16 -38
- package/dist/src/resource-syncs/endpoint-sync.js +53 -26
- package/dist/src/resource-syncs/job-template-sync.d.ts +1 -0
- package/dist/src/resource-syncs/job-template-sync.js +31 -10
- package/dist/src/resource-syncs/schedule-sync.d.ts +7 -3
- package/dist/src/resource-syncs/schedule-sync.js +85 -16
- package/dist/src/tracked-resources.d.ts +1 -1
- package/dist/src/tracked-resources.js +4 -2
- package/dist/src/types.d.ts +14 -0
- package/dist/src/ui.js +6 -2
- package/dist/src/workspace-diff.js +2 -0
- package/dist/src/workspace-prune.js +38 -2
- package/package.json +2 -2
package/dist/src/migration.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AGENT_LAYOUT, buildAgentsPlan, pullAgentsToWorkspace, pushAgents } from "./resource-syncs/agent-sync.js";
|
|
1
2
|
import { projectRepositoryItems, migrationItemOperation, BLOCKING_SCHEMA_STATUSES, schemaItemAction, viewItemIsBlocked, viewItemAction, componentItemAction, jobTemplateItemAction, endpointItemAction, scheduleItemAction, eventItemAction, groupItemAction, roleGroupItemAction, serviceAccountItemAction, } from "./migration-actions.js";
|
|
2
3
|
import fs from 'node:fs';
|
|
3
4
|
import { applyWorkspacePrune, buildWorkspacePrunePlan, samePrunePlan } from "./workspace-prune.js";
|
|
@@ -25,6 +26,8 @@ const RESOURCE_ORDER = [
|
|
|
25
26
|
'database-view',
|
|
26
27
|
'component',
|
|
27
28
|
'service-account',
|
|
29
|
+
'agent-plugin',
|
|
30
|
+
'agent',
|
|
28
31
|
'job-template',
|
|
29
32
|
'endpoint',
|
|
30
33
|
'schedule',
|
|
@@ -32,6 +35,27 @@ const RESOURCE_ORDER = [
|
|
|
32
35
|
'group',
|
|
33
36
|
'role-group',
|
|
34
37
|
];
|
|
38
|
+
function agentItemAction(item) {
|
|
39
|
+
if (item.blocked || item.status === 'collision')
|
|
40
|
+
return 'blocked';
|
|
41
|
+
if (item.status === 'create')
|
|
42
|
+
return 'create';
|
|
43
|
+
if (['orphan', 'skipped'].includes(item.status))
|
|
44
|
+
return 'excluded';
|
|
45
|
+
if (item.status === 'clean')
|
|
46
|
+
return 'noop';
|
|
47
|
+
return item.desiredHash === item.currentHash ? 'adopt' : 'update';
|
|
48
|
+
}
|
|
49
|
+
function summarizeAgentPhase(plan) {
|
|
50
|
+
const operations = emptyOperations();
|
|
51
|
+
for (const item of plan.items)
|
|
52
|
+
operations[migrationItemOperation(item, agentItemAction(item))]++;
|
|
53
|
+
const blocked = plan.blockers.length > 0 || operations.blocked > 0;
|
|
54
|
+
return { order: RESOURCE_ORDER.indexOf(plan.resourceType) + 1, resource: plan.resourceType,
|
|
55
|
+
operations, warnings: [...plan.warnings, ...plan.exclusions], blockers: plan.blockers,
|
|
56
|
+
needsChanges: operations.create + operations.update + operations.adopt > 0, readyToMigrate: !blocked,
|
|
57
|
+
verdict: blocked ? 'blocked' : plan.exclusions.length ? 'ready-with-warnings' : 'ready' };
|
|
58
|
+
}
|
|
35
59
|
function selectedResources(input) {
|
|
36
60
|
const requested = new Set(input.resources?.length ? input.resources : RESOURCE_ORDER);
|
|
37
61
|
return RESOURCE_ORDER.filter((resource) => requested.has(resource));
|
|
@@ -237,7 +261,7 @@ function summarizeSchedulePhase(plan) {
|
|
|
237
261
|
return {
|
|
238
262
|
order: 6,
|
|
239
263
|
resource: 'schedule',
|
|
240
|
-
needsChanges: operations.create + operations.update > 0,
|
|
264
|
+
needsChanges: operations.create + operations.update > 0 || plan.items.some((item) => item.status === 'activation-drift'),
|
|
241
265
|
readyToMigrate: blockers.length === 0,
|
|
242
266
|
verdict: phaseVerdict(blockers, warnings),
|
|
243
267
|
operations,
|
|
@@ -267,7 +291,7 @@ function summarizeEventPhase(plan) {
|
|
|
267
291
|
return {
|
|
268
292
|
order: 7,
|
|
269
293
|
resource: 'event',
|
|
270
|
-
needsChanges: operations.create + operations.update > 0,
|
|
294
|
+
needsChanges: operations.create + operations.update > 0 || plan.items.some(item => item.status === 'activation-drift'),
|
|
271
295
|
readyToMigrate: blockers.length === 0,
|
|
272
296
|
verdict: phaseVerdict(blockers, warnings),
|
|
273
297
|
operations,
|
|
@@ -404,6 +428,11 @@ function summarizePulls(mode, pulls) {
|
|
|
404
428
|
skipped: pulls.groups.skipped.length,
|
|
405
429
|
};
|
|
406
430
|
}
|
|
431
|
+
for (const [family, field] of [['agent', 'agents'], ['agent-plugin', 'agentPlugins']]) {
|
|
432
|
+
const pull = pulls[field];
|
|
433
|
+
if (pull)
|
|
434
|
+
byResource[family] = { pulled: pull.pulled.length, pruned: pull.pruned.length, skipped: pull.skipped.length };
|
|
435
|
+
}
|
|
407
436
|
if (pulls.serviceAccounts) {
|
|
408
437
|
byResource['service-account'] = { pulled: pulls.serviceAccounts.pulled.length, pruned: pulls.serviceAccounts.pruned.length, skipped: pulls.serviceAccounts.skipped.length };
|
|
409
438
|
}
|
|
@@ -541,6 +570,10 @@ function combinePlan(input) {
|
|
|
541
570
|
if (input.components) {
|
|
542
571
|
input.components = { ...input.components, items: projectRepositoryItems(input.components.items, componentItemAction, (item) => item.lockHash) };
|
|
543
572
|
}
|
|
573
|
+
for (const field of ['agentPlugins', 'agents']) {
|
|
574
|
+
if (input[field])
|
|
575
|
+
input[field] = { ...input[field], items: projectRepositoryItems(input[field].items, agentItemAction, baselineByKey(lock[field])) };
|
|
576
|
+
}
|
|
544
577
|
if (input.serviceAccounts) {
|
|
545
578
|
input.serviceAccounts = { ...input.serviceAccounts, items: projectRepositoryItems(input.serviceAccounts.items, serviceAccountItemAction, baselineByKey(lock.serviceAccounts)) };
|
|
546
579
|
}
|
|
@@ -568,6 +601,8 @@ function combinePlan(input) {
|
|
|
568
601
|
...(input.databaseViews ? [summarizeViewPhase(input.databaseViews)] : []),
|
|
569
602
|
...(input.components ? [summarizeComponentPhase(input.components)] : []),
|
|
570
603
|
...(input.serviceAccounts ? [summarizeServiceAccountPhase(input.serviceAccounts)] : []),
|
|
604
|
+
...(input.agentPlugins ? [summarizeAgentPhase(input.agentPlugins)] : []),
|
|
605
|
+
...(input.agents ? [summarizeAgentPhase(input.agents)] : []),
|
|
571
606
|
...(input.jobTemplates ? [summarizeJobTemplatePhase(input.jobTemplates)] : []),
|
|
572
607
|
...(input.endpoints ? [summarizeEndpointPhase(input.endpoints)] : []),
|
|
573
608
|
...(input.schedules ? [summarizeSchedulePhase(input.schedules)] : []),
|
|
@@ -682,6 +717,8 @@ function combinePlan(input) {
|
|
|
682
717
|
...(input.groups ? { groups: input.groups } : {}),
|
|
683
718
|
...(input.roleGroups ? { roleGroups: input.roleGroups } : {}),
|
|
684
719
|
...(input.serviceAccounts ? { serviceAccounts: input.serviceAccounts } : {}),
|
|
720
|
+
...(input.agentPlugins ? { agentPlugins: input.agentPlugins } : {}),
|
|
721
|
+
...(input.agents ? { agents: input.agents } : {}),
|
|
685
722
|
warnings,
|
|
686
723
|
blockers,
|
|
687
724
|
};
|
|
@@ -717,6 +754,8 @@ function createTemporaryProject(input) {
|
|
|
717
754
|
GROUPS_DIRECTORY,
|
|
718
755
|
ROLE_GROUPS_DIRECTORY,
|
|
719
756
|
SERVICE_ACCOUNTS_DIRECTORY,
|
|
757
|
+
AGENT_LAYOUT.agent[0],
|
|
758
|
+
AGENT_LAYOUT['agent-plugin'][0],
|
|
720
759
|
]) {
|
|
721
760
|
const sourceDirectory = path.join(workspaceRoot, directory);
|
|
722
761
|
if (fs.existsSync(sourceDirectory)) {
|
|
@@ -832,6 +871,11 @@ export async function pullResourcesToWorkspace(input) {
|
|
|
832
871
|
pulls.serviceAccounts = await runMigrationStage('source pull', 'service-account', input.sourceLabel, () => pullServiceAccountsToWorkspace({ client, cwd: input.cwd, envName: input.sourceKey, stableKeyName,
|
|
833
872
|
force: input.force === true, pruneOrphans: input.pruneOrphans === true }));
|
|
834
873
|
}
|
|
874
|
+
for (const family of ['agent-plugin', 'agent'])
|
|
875
|
+
if (resources.includes(family)) {
|
|
876
|
+
pulls[AGENT_LAYOUT[family][2]] = await runMigrationStage('source pull', family, input.sourceLabel, () => pullAgentsToWorkspace({ client, cwd: input.cwd, envName: input.sourceKey, stableKeyName, family,
|
|
877
|
+
force: input.force === true, pruneOrphans: input.pruneOrphans === true }));
|
|
878
|
+
}
|
|
835
879
|
if (resources.includes('job-template')) {
|
|
836
880
|
pulls.jobTemplates = await runMigrationStage('source pull', 'job-template', input.sourceLabel, () => pullJobTemplatesToWorkspace({
|
|
837
881
|
client,
|
|
@@ -1045,6 +1089,11 @@ async function planWorkspace(input) {
|
|
|
1045
1089
|
if (serviceAccounts && identities) {
|
|
1046
1090
|
serviceAccounts.blockers.push(...identities.blockers);
|
|
1047
1091
|
}
|
|
1092
|
+
const projected = { component: input.projectDependencies && components ? components.items.filter(item => !item.blocked && ['create', 'update'].includes(componentItemAction(item))).flatMap(item => item.stableKey ? [item.stableKey] : []) : [],
|
|
1093
|
+
'service-account': identities?.projection.serviceAccounts || [], group: identities?.projection.groups || [] };
|
|
1094
|
+
const agentPlugins = resources.includes('agent-plugin') ? await runMigrationStage('target plan', 'agent-plugin', environmentLabel, () => buildAgentsPlan({ client, cwd: input.cwd, envName: environmentKey, stableKeyName, family: 'agent-plugin', projected })) : undefined;
|
|
1095
|
+
const agents = resources.includes('agent') ? await runMigrationStage('target plan', 'agent', environmentLabel, () => buildAgentsPlan({ client, cwd: input.cwd, envName: environmentKey, stableKeyName, family: 'agent', projected: { ...projected,
|
|
1096
|
+
'agent-plugin': agentPlugins?.items.filter(item => !item.blocked && item.desiredHash).flatMap(item => item.stableKey ? [item.stableKey] : []) || [] } })) : undefined;
|
|
1048
1097
|
const jobTemplates = resources.includes('job-template')
|
|
1049
1098
|
? await runMigrationStage('target plan', 'job-template', environmentLabel, () => buildJobTemplatesPlan({
|
|
1050
1099
|
client,
|
|
@@ -1130,6 +1179,8 @@ async function planWorkspace(input) {
|
|
|
1130
1179
|
groups,
|
|
1131
1180
|
roleGroups,
|
|
1132
1181
|
serviceAccounts,
|
|
1182
|
+
agentPlugins,
|
|
1183
|
+
agents,
|
|
1133
1184
|
});
|
|
1134
1185
|
if (identities) {
|
|
1135
1186
|
combined.identityOrder = identities.ordered.map(({ resource, stableKey }) => ({ resource, stableKey }));
|
|
@@ -1395,6 +1446,14 @@ export async function runMigration(input) {
|
|
|
1395
1446
|
}
|
|
1396
1447
|
}
|
|
1397
1448
|
}
|
|
1449
|
+
for (const family of ['agent-plugin', 'agent'])
|
|
1450
|
+
if (resources.includes(family)) {
|
|
1451
|
+
const pushed = await pushAgents({ client: targetClient, cwd: input.cwd, envName: environmentKey, stableKeyName, family, force: true });
|
|
1452
|
+
phaseResults[family] = pushed.results;
|
|
1453
|
+
results.push(...pushed.results);
|
|
1454
|
+
if (!resultsAreComplete(pushed.results))
|
|
1455
|
+
return { ...base, verdict: 'failed', results, phaseResults };
|
|
1456
|
+
}
|
|
1398
1457
|
if (resources.includes('job-template')) {
|
|
1399
1458
|
const liveJobTemplatePlan = await buildJobTemplatesPlan({
|
|
1400
1459
|
client: targetClient,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { RevoClient } from './client.ts';
|
|
2
2
|
import type { TrackableResourceType } from './tracked-resources.ts';
|
|
3
|
-
import type { ComponentRecord, DatabaseSchemaRecord, DatabaseViewRecord, EndpointRecord, EventRecord, GroupRecord, JobTemplateRecord, RoleGroupRecord, ScheduleRecord, ServiceAccountRecord } from './types.ts';
|
|
3
|
+
import type { AgentRecord, AgentPluginRecord, ComponentRecord, DatabaseSchemaRecord, DatabaseViewRecord, EndpointRecord, EventRecord, GroupRecord, JobTemplateRecord, RoleGroupRecord, ScheduleRecord, ServiceAccountRecord } from './types.ts';
|
|
4
4
|
type ResourceRecordMap = {
|
|
5
|
+
agent: AgentRecord;
|
|
6
|
+
'agent-plugin': AgentPluginRecord;
|
|
5
7
|
'service-account': ServiceAccountRecord;
|
|
6
8
|
component: ComponentRecord;
|
|
7
9
|
'database-table': DatabaseSchemaRecord;
|
|
@@ -14,7 +16,7 @@ type ResourceRecordMap = {
|
|
|
14
16
|
event: EventRecord;
|
|
15
17
|
};
|
|
16
18
|
export type ResourceRecord = ResourceRecordMap[TrackableResourceType];
|
|
17
|
-
export type ResourceInventoryClient = Pick<RevoClient, 'listAllServiceAccounts' | 'getServiceAccount' | 'listAllComponents' | 'getComponent' | 'listAllDatabaseSchemas' | 'listAllDatabaseViewsForSync' | 'listAllEndpoints' | 'getEndpoint' | 'listAllRoleGroups' | 'getRoleGroup' | 'listAllGroups' | 'getGroup' | 'listAllJobTemplates' | 'getJobTemplate' | 'listAllSchedules' | 'getSchedule' | 'listAllEvents' | 'getEvent'>;
|
|
19
|
+
export type ResourceInventoryClient = Pick<RevoClient, 'listAllAgents' | 'getAgent' | 'listAllAgentPlugins' | 'getAgentPlugin' | 'listAllServiceAccounts' | 'getServiceAccount' | 'listAllComponents' | 'getComponent' | 'listAllDatabaseSchemas' | 'listAllDatabaseViewsForSync' | 'listAllEndpoints' | 'getEndpoint' | 'listAllRoleGroups' | 'getRoleGroup' | 'listAllGroups' | 'getGroup' | 'listAllJobTemplates' | 'getJobTemplate' | 'listAllSchedules' | 'getSchedule' | 'listAllEvents' | 'getEvent'>;
|
|
18
20
|
type InventoryOptions = {
|
|
19
21
|
skipPartitions?: boolean;
|
|
20
22
|
};
|
|
@@ -10,7 +10,9 @@ export function unwrapResource(value) {
|
|
|
10
10
|
return value;
|
|
11
11
|
}
|
|
12
12
|
export function resourceIdOf(resource) {
|
|
13
|
-
return String(('
|
|
13
|
+
return String(('agentId' in resource && resource.agentId)
|
|
14
|
+
|| ('agentPluginId' in resource && resource.agentPluginId)
|
|
15
|
+
|| ('userId' in resource && resource.userId)
|
|
14
16
|
|| ('databaseId' in resource && resource.databaseId)
|
|
15
17
|
|| ('databaseViewId' in resource && resource.databaseViewId)
|
|
16
18
|
|| ('jobTemplateId' in resource && resource.jobTemplateId)
|
|
@@ -35,6 +37,14 @@ async function* readDetails(summaries, getDetail) {
|
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
const readers = {
|
|
40
|
+
async *agent(client) {
|
|
41
|
+
const { agents } = await client.listAllAgents();
|
|
42
|
+
yield* readDetails(agents, (id) => client.getAgent(id));
|
|
43
|
+
},
|
|
44
|
+
async *'agent-plugin'(client) {
|
|
45
|
+
const { agentPlugins } = await client.listAllAgentPlugins();
|
|
46
|
+
yield* readDetails(agentPlugins, (id) => client.getAgentPlugin(id));
|
|
47
|
+
},
|
|
38
48
|
async *'service-account'(client) {
|
|
39
49
|
const { serviceAccounts } = await client.listAllServiceAccounts();
|
|
40
50
|
yield* readDetails(serviceAccounts, (id) => client.getServiceAccount(id));
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { RevoClient } from '../client.ts';
|
|
2
|
+
import { type GroupOwnerPolicy } from '../component-lock.ts';
|
|
3
|
+
import { type FieldChange } from '../diff-details.ts';
|
|
4
|
+
import type { ComponentRecord } from '../types.ts';
|
|
5
|
+
import { type ExecutionPrincipal } from './account-principal.ts';
|
|
6
|
+
export type AgentFamily = 'agent' | 'agent-plugin';
|
|
7
|
+
export declare const AGENT_LAYOUT: {
|
|
8
|
+
readonly agent: readonly ["Agents", "agent.json", "agents"];
|
|
9
|
+
readonly 'agent-plugin': readonly ["AgentPlugins", "agent-plugin.json", "agentPlugins"];
|
|
10
|
+
};
|
|
11
|
+
export type AgentManifest = {
|
|
12
|
+
kind: AgentFamily;
|
|
13
|
+
stableKey: string;
|
|
14
|
+
name: string;
|
|
15
|
+
metadata: Record<string, unknown>;
|
|
16
|
+
definition: Record<string, unknown>;
|
|
17
|
+
owner?: GroupOwnerPolicy;
|
|
18
|
+
executionPrincipal?: ExecutionPrincipal;
|
|
19
|
+
};
|
|
20
|
+
export type AgentSyncStatus = 'clean' | 'create' | 'safe-update' | 'remote-changed' | 'conflict' | 'missing-lock' | 'orphan' | 'skipped' | 'collision';
|
|
21
|
+
export type AgentSyncItem = {
|
|
22
|
+
status: AgentSyncStatus;
|
|
23
|
+
stableKey?: string;
|
|
24
|
+
name: string;
|
|
25
|
+
reason?: string;
|
|
26
|
+
desiredHash?: string;
|
|
27
|
+
currentHash?: string;
|
|
28
|
+
baselineHash?: string;
|
|
29
|
+
changedFields?: string[];
|
|
30
|
+
fieldChanges?: FieldChange[];
|
|
31
|
+
blocked?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export type AgentSyncPlan = {
|
|
34
|
+
resourceType: AgentFamily;
|
|
35
|
+
env: string;
|
|
36
|
+
counts: Record<AgentSyncStatus, number>;
|
|
37
|
+
items: AgentSyncItem[];
|
|
38
|
+
blockers: string[];
|
|
39
|
+
warnings: string[];
|
|
40
|
+
exclusions: string[];
|
|
41
|
+
};
|
|
42
|
+
export type AgentSyncPull = {
|
|
43
|
+
pulled: Array<{
|
|
44
|
+
manifest: AgentManifest;
|
|
45
|
+
targetPath: string;
|
|
46
|
+
}>;
|
|
47
|
+
pruned: Array<{
|
|
48
|
+
stableKey: string;
|
|
49
|
+
targetPath: string;
|
|
50
|
+
}>;
|
|
51
|
+
skipped: Array<{
|
|
52
|
+
name: string;
|
|
53
|
+
targetPath: string;
|
|
54
|
+
reason: string;
|
|
55
|
+
}>;
|
|
56
|
+
};
|
|
57
|
+
export type AgentSyncResult = {
|
|
58
|
+
stableKey: string;
|
|
59
|
+
action: 'create' | 'update' | 'noop' | 'orphan' | 'skipped';
|
|
60
|
+
status: 'deployed' | 'skipped' | 'failed';
|
|
61
|
+
targetPath: string;
|
|
62
|
+
error?: string;
|
|
63
|
+
reason?: string;
|
|
64
|
+
};
|
|
65
|
+
type SyncInput = {
|
|
66
|
+
client: RevoClient;
|
|
67
|
+
cwd: string;
|
|
68
|
+
envName: string;
|
|
69
|
+
stableKeyName: string;
|
|
70
|
+
family: AgentFamily;
|
|
71
|
+
};
|
|
72
|
+
type Projection = Partial<Record<'agent-plugin' | 'component' | 'service-account' | 'group', string[]>>;
|
|
73
|
+
export declare function agentManifestFromRecord(input: Pick<SyncInput, 'client' | 'family' | 'stableKeyName'>, value: ComponentRecord): Promise<AgentManifest | null>;
|
|
74
|
+
export declare function hashPortableAgent(manifest: AgentManifest): string;
|
|
75
|
+
export declare function readWorkspaceAgents(cwd: string, family: AgentFamily): {
|
|
76
|
+
manifestPath: string;
|
|
77
|
+
manifest: AgentManifest;
|
|
78
|
+
}[];
|
|
79
|
+
export declare function agentDependencies(manifest: AgentManifest): Array<[keyof Projection, string]>;
|
|
80
|
+
export declare function orderAgentPlugins(entries: Array<{
|
|
81
|
+
manifest: AgentManifest;
|
|
82
|
+
}>): {
|
|
83
|
+
manifest: AgentManifest;
|
|
84
|
+
}[];
|
|
85
|
+
export declare function pullAgentsToWorkspace(input: SyncInput & {
|
|
86
|
+
force?: boolean;
|
|
87
|
+
pruneOrphans?: boolean;
|
|
88
|
+
}): Promise<AgentSyncPull>;
|
|
89
|
+
export declare function buildAgentsPlan(input: SyncInput & {
|
|
90
|
+
projected?: Projection;
|
|
91
|
+
}): Promise<AgentSyncPlan>;
|
|
92
|
+
export declare function pushAgents(input: SyncInput & {
|
|
93
|
+
force?: boolean;
|
|
94
|
+
}): Promise<{
|
|
95
|
+
plan: AgentSyncPlan;
|
|
96
|
+
results: AgentSyncResult[];
|
|
97
|
+
}>;
|
|
98
|
+
export {};
|