@revoengine/cli 1.0.10 → 1.0.13
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 +314 -239
- package/dist/src/cli.js +126 -9
- package/dist/src/client.d.ts +373 -6
- package/dist/src/client.js +1005 -53
- package/dist/src/commands/auth.js +4 -2
- package/dist/src/commands/component.d.ts +67 -0
- package/dist/src/commands/component.js +555 -164
- package/dist/src/commands/database-tables.d.ts +2 -0
- package/dist/src/commands/database-tables.js +169 -0
- package/dist/src/commands/database-views.d.ts +2 -0
- package/dist/src/commands/database-views.js +126 -0
- package/dist/src/commands/endpoints.js +124 -0
- package/dist/src/commands/env.js +44 -24
- package/dist/src/commands/events.d.ts +2 -0
- package/dist/src/commands/events.js +144 -0
- package/dist/src/commands/groups.d.ts +2 -0
- package/dist/src/commands/groups.js +160 -0
- package/dist/src/commands/index.d.ts +9 -0
- package/dist/src/commands/index.js +9 -0
- package/dist/src/commands/job-templates.d.ts +2 -0
- package/dist/src/commands/job-templates.js +107 -0
- package/dist/src/commands/metadata.js +75 -10
- package/dist/src/commands/migrate.d.ts +6 -0
- package/dist/src/commands/migrate.js +658 -0
- package/dist/src/commands/project.js +10 -3
- package/dist/src/commands/role-groups.d.ts +2 -0
- package/dist/src/commands/role-groups.js +141 -0
- package/dist/src/commands/schedules.d.ts +2 -0
- package/dist/src/commands/schedules.js +140 -0
- package/dist/src/commands/terminal-browser.d.ts +16 -0
- package/dist/src/commands/terminal-browser.js +92 -0
- package/dist/src/commands/terminal-image.d.ts +7 -0
- package/dist/src/commands/terminal-image.js +40 -0
- package/dist/src/commands/terminal-patch-worker.d.ts +1 -0
- package/dist/src/commands/terminal-patch-worker.js +24 -0
- package/dist/src/commands/terminal-patch.d.ts +2 -0
- package/dist/src/commands/terminal-patch.js +156 -0
- package/dist/src/commands/terminal-sandbox.d.ts +8 -0
- package/dist/src/commands/terminal-sandbox.js +87 -0
- package/dist/src/commands/terminal-service.d.ts +38 -0
- package/dist/src/commands/terminal-service.js +210 -0
- package/dist/src/commands/terminal.d.ts +49 -0
- package/dist/src/commands/terminal.js +826 -0
- package/dist/src/component-lock.d.ts +111 -3
- package/dist/src/component-lock.js +363 -15
- package/dist/src/config.d.ts +10 -2
- package/dist/src/config.js +49 -14
- package/dist/src/database-table-artifacts.d.ts +7 -0
- package/dist/src/database-table-artifacts.js +8 -0
- package/dist/src/diff-details.d.ts +8 -0
- package/dist/src/diff-details.js +152 -0
- package/dist/src/env-sync.d.ts +0 -3
- package/dist/src/env-sync.js +11 -25
- package/dist/src/http-trace.d.ts +94 -0
- package/dist/src/http-trace.js +226 -0
- package/dist/src/metadata-backfill.d.ts +18 -7
- package/dist/src/metadata-backfill.js +1002 -27
- package/dist/src/migration.d.ts +141 -0
- package/dist/src/migration.js +1632 -0
- package/dist/src/project.d.ts +2 -0
- package/dist/src/project.js +4 -17
- package/dist/src/prompt.js +10 -18
- package/dist/src/resource-inventory.d.ts +28 -0
- package/dist/src/resource-inventory.js +85 -0
- package/dist/src/resource-metadata.d.ts +1 -0
- package/dist/src/resource-metadata.js +3 -0
- package/dist/src/resource-syncs/database-table-sync.d.ts +127 -0
- package/dist/src/resource-syncs/database-table-sync.js +2374 -0
- package/dist/src/resource-syncs/database-view-sync.d.ts +146 -0
- package/dist/src/resource-syncs/database-view-sync.js +1405 -0
- package/dist/src/resource-syncs/endpoint-sync.d.ts +123 -0
- package/dist/src/resource-syncs/endpoint-sync.js +1563 -0
- package/dist/src/resource-syncs/event-sync.d.ts +126 -0
- package/dist/src/resource-syncs/event-sync.js +1046 -0
- package/dist/src/resource-syncs/group-sync.d.ts +93 -0
- package/dist/src/resource-syncs/group-sync.js +928 -0
- package/dist/src/resource-syncs/job-template-sync.d.ts +106 -0
- package/dist/src/resource-syncs/job-template-sync.js +843 -0
- package/dist/src/resource-syncs/role-group-sync.d.ts +90 -0
- package/dist/src/resource-syncs/role-group-sync.js +635 -0
- package/dist/src/resource-syncs/schedule-sync.d.ts +140 -0
- package/dist/src/resource-syncs/schedule-sync.js +1396 -0
- package/dist/src/resource-syncs/util.d.ts +22 -0
- package/dist/src/resource-syncs/util.js +118 -0
- package/dist/src/resource-target.d.ts +11 -0
- package/dist/src/resource-target.js +48 -0
- package/dist/src/runtime-view.d.ts +1 -0
- package/dist/src/runtime-view.js +6 -1
- package/dist/src/sync-output.d.ts +66 -0
- package/dist/src/sync-output.js +268 -0
- package/dist/src/tracked-resources.d.ts +1 -1
- package/dist/src/tracked-resources.js +28 -2
- package/dist/src/types.d.ts +227 -0
- package/dist/src/ui.d.ts +3 -0
- package/dist/src/ui.js +76 -18
- package/dist/src/utils.d.ts +4 -0
- package/dist/src/utils.js +81 -0
- package/dist/src/workspace-component.d.ts +2 -0
- package/dist/src/workspace-component.js +34 -0
- package/dist/src/workspace-diff.d.ts +25 -0
- package/dist/src/workspace-diff.js +75 -0
- package/dist/src/workspace-resource.d.ts +2 -0
- package/dist/src/workspace-resource.js +52 -0
- package/package.json +12 -4
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type FieldChange } from '../diff-details.ts';
|
|
2
|
+
import type { RevoClient } from '../client.ts';
|
|
3
|
+
import type { GroupRecord } from '../types.ts';
|
|
4
|
+
export declare const GROUPS_DIRECTORY = "Groups";
|
|
5
|
+
export declare const GROUP_MANIFEST_FILE = "group.json";
|
|
6
|
+
export type GroupManifest = {
|
|
7
|
+
kind: 'group';
|
|
8
|
+
stableKey: string;
|
|
9
|
+
name: string;
|
|
10
|
+
category?: string | null;
|
|
11
|
+
description?: string;
|
|
12
|
+
metadata: Record<string, unknown>;
|
|
13
|
+
};
|
|
14
|
+
export type GroupPullResult = {
|
|
15
|
+
pulled: Array<{
|
|
16
|
+
manifest: GroupManifest;
|
|
17
|
+
targetPath: string;
|
|
18
|
+
}>;
|
|
19
|
+
pruned: Array<{
|
|
20
|
+
stableKey: string;
|
|
21
|
+
targetPath: string;
|
|
22
|
+
}>;
|
|
23
|
+
skipped: Array<{
|
|
24
|
+
name: string;
|
|
25
|
+
targetPath: string;
|
|
26
|
+
reason: string;
|
|
27
|
+
}>;
|
|
28
|
+
notices: Array<{
|
|
29
|
+
stableKey: string;
|
|
30
|
+
reason: string;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
export type GroupPlanStatus = 'clean' | 'create' | 'manual-owner' | 'safe-update' | 'remote-changed' | 'conflict' | 'missing-lock' | 'orphan' | 'collision' | 'skipped' | 'delete';
|
|
34
|
+
export type GroupPlanItem = {
|
|
35
|
+
fieldChanges?: FieldChange[];
|
|
36
|
+
status: GroupPlanStatus;
|
|
37
|
+
stableKey?: string;
|
|
38
|
+
name: string;
|
|
39
|
+
reason?: string;
|
|
40
|
+
changedFields?: string[];
|
|
41
|
+
desiredHash?: string;
|
|
42
|
+
currentHash?: string;
|
|
43
|
+
baselineHash?: string;
|
|
44
|
+
ownerStableKey?: string;
|
|
45
|
+
};
|
|
46
|
+
export type GroupsPlan = {
|
|
47
|
+
resourceType: 'group';
|
|
48
|
+
env: string;
|
|
49
|
+
counts: Record<GroupPlanStatus, number>;
|
|
50
|
+
blockers: string[];
|
|
51
|
+
items: GroupPlanItem[];
|
|
52
|
+
warnings: string[];
|
|
53
|
+
exclusions: string[];
|
|
54
|
+
};
|
|
55
|
+
export type GroupPushResult = {
|
|
56
|
+
stableKey: string;
|
|
57
|
+
action: 'create' | 'update' | 'noop' | 'manual-owner' | 'orphan' | 'skipped';
|
|
58
|
+
status: 'deployed' | 'skipped' | 'failed';
|
|
59
|
+
targetPath: string;
|
|
60
|
+
reason?: string;
|
|
61
|
+
error?: string;
|
|
62
|
+
};
|
|
63
|
+
export declare function groupManifestFromRecord(record: GroupRecord, stableKeyName: string): GroupManifest | null;
|
|
64
|
+
export declare function hashPortableGroup(manifest: GroupManifest): string;
|
|
65
|
+
export declare function groupManifestPath(workspaceRoot: string, manifest: GroupManifest): string;
|
|
66
|
+
export declare function readWorkspaceGroups(cwd: string): {
|
|
67
|
+
manifestPath: string;
|
|
68
|
+
manifest: GroupManifest;
|
|
69
|
+
}[];
|
|
70
|
+
export declare function buildGroupsPlan(input: {
|
|
71
|
+
client: RevoClient;
|
|
72
|
+
cwd: string;
|
|
73
|
+
envName: string;
|
|
74
|
+
stableKeyName: string;
|
|
75
|
+
}): Promise<GroupsPlan>;
|
|
76
|
+
export declare function pullGroupsToWorkspace(input: {
|
|
77
|
+
client: RevoClient;
|
|
78
|
+
cwd: string;
|
|
79
|
+
envName: string;
|
|
80
|
+
stableKeyName: string;
|
|
81
|
+
force?: boolean;
|
|
82
|
+
pruneOrphans?: boolean;
|
|
83
|
+
}): Promise<GroupPullResult>;
|
|
84
|
+
export declare function pushGroups(input: {
|
|
85
|
+
client: RevoClient;
|
|
86
|
+
cwd: string;
|
|
87
|
+
envName: string;
|
|
88
|
+
stableKeyName: string;
|
|
89
|
+
force?: boolean;
|
|
90
|
+
}): Promise<{
|
|
91
|
+
plan: GroupsPlan;
|
|
92
|
+
results: GroupPushResult[];
|
|
93
|
+
}>;
|