@revoengine/cli 1.0.10 → 1.0.11

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.
Files changed (79) hide show
  1. package/README.md +312 -33
  2. package/dist/src/cli.js +58 -7
  3. package/dist/src/client.d.ts +356 -5
  4. package/dist/src/client.js +803 -19
  5. package/dist/src/commands/auth.js +4 -2
  6. package/dist/src/commands/component.js +260 -141
  7. package/dist/src/commands/database-schemas.d.ts +2 -0
  8. package/dist/src/commands/database-schemas.js +188 -0
  9. package/dist/src/commands/database-views.d.ts +2 -0
  10. package/dist/src/commands/database-views.js +123 -0
  11. package/dist/src/commands/endpoints.js +114 -0
  12. package/dist/src/commands/env.js +44 -24
  13. package/dist/src/commands/events.d.ts +2 -0
  14. package/dist/src/commands/events.js +146 -0
  15. package/dist/src/commands/groups.d.ts +2 -0
  16. package/dist/src/commands/groups.js +169 -0
  17. package/dist/src/commands/index.d.ts +8 -0
  18. package/dist/src/commands/index.js +8 -0
  19. package/dist/src/commands/job-templates.d.ts +2 -0
  20. package/dist/src/commands/job-templates.js +101 -0
  21. package/dist/src/commands/metadata.js +29 -7
  22. package/dist/src/commands/project.js +10 -3
  23. package/dist/src/commands/role-groups.d.ts +2 -0
  24. package/dist/src/commands/role-groups.js +152 -0
  25. package/dist/src/commands/schedules.d.ts +2 -0
  26. package/dist/src/commands/schedules.js +141 -0
  27. package/dist/src/commands/terminal-service.d.ts +38 -0
  28. package/dist/src/commands/terminal-service.js +210 -0
  29. package/dist/src/commands/terminal.d.ts +22 -0
  30. package/dist/src/commands/terminal.js +511 -0
  31. package/dist/src/component-lock.d.ts +100 -2
  32. package/dist/src/component-lock.js +304 -15
  33. package/dist/src/config.d.ts +10 -2
  34. package/dist/src/config.js +49 -14
  35. package/dist/src/database-schema-artifacts.d.ts +7 -0
  36. package/dist/src/database-schema-artifacts.js +8 -0
  37. package/dist/src/env-sync.d.ts +0 -3
  38. package/dist/src/env-sync.js +3 -19
  39. package/dist/src/metadata-backfill.d.ts +16 -6
  40. package/dist/src/metadata-backfill.js +1069 -18
  41. package/dist/src/project.d.ts +2 -0
  42. package/dist/src/project.js +4 -17
  43. package/dist/src/prompt.js +10 -18
  44. package/dist/src/resource-metadata.d.ts +1 -0
  45. package/dist/src/resource-metadata.js +3 -0
  46. package/dist/src/resource-syncs/database-schema-sync.d.ts +117 -0
  47. package/dist/src/resource-syncs/database-schema-sync.js +2289 -0
  48. package/dist/src/resource-syncs/database-view-sync.d.ts +124 -0
  49. package/dist/src/resource-syncs/database-view-sync.js +1317 -0
  50. package/dist/src/resource-syncs/endpoint-sync.d.ts +96 -0
  51. package/dist/src/resource-syncs/endpoint-sync.js +1283 -0
  52. package/dist/src/resource-syncs/event-sync.d.ts +99 -0
  53. package/dist/src/resource-syncs/event-sync.js +949 -0
  54. package/dist/src/resource-syncs/group-sync.d.ts +86 -0
  55. package/dist/src/resource-syncs/group-sync.js +882 -0
  56. package/dist/src/resource-syncs/job-template-sync.d.ts +85 -0
  57. package/dist/src/resource-syncs/job-template-sync.js +782 -0
  58. package/dist/src/resource-syncs/role-group-sync.d.ts +83 -0
  59. package/dist/src/resource-syncs/role-group-sync.js +597 -0
  60. package/dist/src/resource-syncs/schedule-sync.d.ts +111 -0
  61. package/dist/src/resource-syncs/schedule-sync.js +1302 -0
  62. package/dist/src/resource-syncs/util.d.ts +19 -0
  63. package/dist/src/resource-syncs/util.js +116 -0
  64. package/dist/src/runtime-view.d.ts +1 -0
  65. package/dist/src/runtime-view.js +6 -1
  66. package/dist/src/sync-output.d.ts +38 -0
  67. package/dist/src/sync-output.js +131 -0
  68. package/dist/src/tracked-resources.d.ts +1 -1
  69. package/dist/src/tracked-resources.js +26 -2
  70. package/dist/src/types.d.ts +224 -0
  71. package/dist/src/ui.d.ts +3 -0
  72. package/dist/src/ui.js +67 -18
  73. package/dist/src/utils.d.ts +2 -0
  74. package/dist/src/utils.js +64 -0
  75. package/dist/src/workspace-component.d.ts +2 -0
  76. package/dist/src/workspace-component.js +34 -0
  77. package/dist/src/workspace-resource.d.ts +2 -0
  78. package/dist/src/workspace-resource.js +52 -0
  79. package/package.json +8 -3
@@ -0,0 +1,86 @@
1
+ import type { RevoClient } from '../client.ts';
2
+ import type { GroupRecord } from '../types.ts';
3
+ export declare const GROUPS_DIRECTORY = "Groups";
4
+ export declare const GROUP_MANIFEST_FILE = "group.json";
5
+ export type GroupManifest = {
6
+ kind: 'group';
7
+ stableKey: string;
8
+ name: string;
9
+ category?: string | null;
10
+ description?: string;
11
+ metadata: Record<string, unknown>;
12
+ };
13
+ export type GroupPullResult = {
14
+ pulled: Array<{
15
+ manifest: GroupManifest;
16
+ targetPath: string;
17
+ }>;
18
+ skipped: Array<{
19
+ name: string;
20
+ targetPath: string;
21
+ reason: string;
22
+ }>;
23
+ notices: Array<{
24
+ stableKey: string;
25
+ reason: string;
26
+ }>;
27
+ };
28
+ export type GroupPlanStatus = 'clean' | 'create' | 'manual-owner' | 'safe-update' | 'remote-changed' | 'conflict' | 'missing-lock' | 'orphan' | 'collision' | 'skipped' | 'delete';
29
+ export type GroupPlanItem = {
30
+ status: GroupPlanStatus;
31
+ stableKey?: string;
32
+ name: string;
33
+ reason?: string;
34
+ changedFields?: string[];
35
+ desiredHash?: string;
36
+ currentHash?: string;
37
+ baselineHash?: string;
38
+ ownerStableKey?: string;
39
+ };
40
+ export type GroupsPlan = {
41
+ resourceType: 'group';
42
+ env: string;
43
+ counts: Record<GroupPlanStatus, number>;
44
+ blockers: string[];
45
+ items: GroupPlanItem[];
46
+ warnings: string[];
47
+ exclusions: string[];
48
+ };
49
+ export type GroupPushResult = {
50
+ stableKey: string;
51
+ action: 'create' | 'update' | 'noop' | 'manual-owner' | 'orphan' | 'skipped';
52
+ status: 'deployed' | 'skipped' | 'failed';
53
+ targetPath: string;
54
+ reason?: string;
55
+ error?: string;
56
+ };
57
+ export declare function groupManifestFromRecord(record: GroupRecord, stableKeyName: string): GroupManifest | null;
58
+ export declare function hashPortableGroup(manifest: GroupManifest): string;
59
+ export declare function groupManifestPath(workspaceRoot: string, manifest: GroupManifest): string;
60
+ export declare function readWorkspaceGroups(cwd: string): {
61
+ manifestPath: string;
62
+ manifest: GroupManifest;
63
+ }[];
64
+ export declare function buildGroupsPlan(input: {
65
+ client: RevoClient;
66
+ cwd: string;
67
+ envName: string;
68
+ stableKeyName: string;
69
+ }): Promise<GroupsPlan>;
70
+ export declare function pullGroupsToWorkspace(input: {
71
+ client: RevoClient;
72
+ cwd: string;
73
+ envName: string;
74
+ stableKeyName: string;
75
+ force?: boolean;
76
+ }): Promise<GroupPullResult>;
77
+ export declare function pushGroups(input: {
78
+ client: RevoClient;
79
+ cwd: string;
80
+ envName: string;
81
+ stableKeyName: string;
82
+ force?: boolean;
83
+ }): Promise<{
84
+ plan: GroupsPlan;
85
+ results: GroupPushResult[];
86
+ }>;