@revoengine/cli 1.0.10 → 1.0.12
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,106 @@
|
|
|
1
|
+
import { type FieldChange } from '../diff-details.ts';
|
|
2
|
+
import type { RevoClient } from '../client.ts';
|
|
3
|
+
export declare const JOB_TEMPLATES_DIRECTORY = "JobTemplates";
|
|
4
|
+
export declare const JOB_TEMPLATE_MANIFEST_FILE = "job-template.json";
|
|
5
|
+
export type JobTemplateManifest = {
|
|
6
|
+
kind: 'job-template';
|
|
7
|
+
stableKey: string;
|
|
8
|
+
name: string;
|
|
9
|
+
category?: string | null;
|
|
10
|
+
description?: string;
|
|
11
|
+
metadata: Record<string, unknown>;
|
|
12
|
+
component: {
|
|
13
|
+
stableKey: string;
|
|
14
|
+
};
|
|
15
|
+
timeout?: number;
|
|
16
|
+
options?: unknown;
|
|
17
|
+
inputs?: unknown;
|
|
18
|
+
migration?: {
|
|
19
|
+
componentBinding?: 'pinned-unsupported';
|
|
20
|
+
executionPrincipal?: 'excluded';
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type JobTemplatePullResult = {
|
|
24
|
+
pulled: Array<{
|
|
25
|
+
manifest: JobTemplateManifest;
|
|
26
|
+
targetPath: string;
|
|
27
|
+
}>;
|
|
28
|
+
pruned: Array<{
|
|
29
|
+
stableKey: string;
|
|
30
|
+
targetPath: string;
|
|
31
|
+
}>;
|
|
32
|
+
skipped: Array<{
|
|
33
|
+
name: string;
|
|
34
|
+
targetPath: string;
|
|
35
|
+
reason: string;
|
|
36
|
+
}>;
|
|
37
|
+
warnings: Array<{
|
|
38
|
+
stableKey: string;
|
|
39
|
+
reason: string;
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
42
|
+
export type ProjectedComponentDependency = {
|
|
43
|
+
stableKey: string;
|
|
44
|
+
desiredHash: string;
|
|
45
|
+
state: 'ready' | 'pending-create' | 'pending-update' | 'pending-adopt';
|
|
46
|
+
};
|
|
47
|
+
export type JobTemplateDependencyReadiness = 'ready' | 'pending-component-create' | 'pending-component-update' | 'pending-component-adopt' | 'blocked';
|
|
48
|
+
export type JobTemplatePushResult = {
|
|
49
|
+
stableKey: string;
|
|
50
|
+
action: 'create' | 'update' | 'noop' | 'orphan' | 'skipped';
|
|
51
|
+
status: 'deployed' | 'skipped' | 'failed';
|
|
52
|
+
targetPath: string;
|
|
53
|
+
reason?: string;
|
|
54
|
+
error?: string;
|
|
55
|
+
};
|
|
56
|
+
export type JobTemplatePlanStatus = 'clean' | 'create' | 'safe-update' | 'remote-changed' | 'conflict' | 'missing-lock' | 'orphan' | 'collision' | 'skipped';
|
|
57
|
+
export type JobTemplatePlanItem = {
|
|
58
|
+
fieldChanges?: FieldChange[];
|
|
59
|
+
status: JobTemplatePlanStatus;
|
|
60
|
+
stableKey?: string;
|
|
61
|
+
name: string;
|
|
62
|
+
reason?: string;
|
|
63
|
+
changedFields?: string[];
|
|
64
|
+
desiredHash?: string;
|
|
65
|
+
currentHash?: string;
|
|
66
|
+
baselineHash?: string;
|
|
67
|
+
componentStableKey?: string;
|
|
68
|
+
componentDesiredHash?: string;
|
|
69
|
+
dependencyReadiness?: JobTemplateDependencyReadiness;
|
|
70
|
+
};
|
|
71
|
+
export type JobTemplatesPlan = {
|
|
72
|
+
resourceType: 'job-template';
|
|
73
|
+
env: string;
|
|
74
|
+
counts: Record<JobTemplatePlanStatus, number>;
|
|
75
|
+
blockers: string[];
|
|
76
|
+
warnings: string[];
|
|
77
|
+
items: JobTemplatePlanItem[];
|
|
78
|
+
exclusions: string[];
|
|
79
|
+
};
|
|
80
|
+
export declare function jobTemplateManifestPath(workspaceRoot: string, manifest: JobTemplateManifest): string;
|
|
81
|
+
export declare function hashPortableJobTemplate(manifest: JobTemplateManifest): string;
|
|
82
|
+
export declare function buildJobTemplatesPlan(input: {
|
|
83
|
+
client: RevoClient;
|
|
84
|
+
cwd: string;
|
|
85
|
+
envName: string;
|
|
86
|
+
stableKeyName: string;
|
|
87
|
+
projectedComponents?: ProjectedComponentDependency[];
|
|
88
|
+
}): Promise<JobTemplatesPlan>;
|
|
89
|
+
export declare function pullJobTemplatesToWorkspace(input: {
|
|
90
|
+
client: RevoClient;
|
|
91
|
+
cwd: string;
|
|
92
|
+
envName: string;
|
|
93
|
+
stableKeyName: string;
|
|
94
|
+
force?: boolean;
|
|
95
|
+
pruneOrphans?: boolean;
|
|
96
|
+
}): Promise<JobTemplatePullResult>;
|
|
97
|
+
export declare function pushJobTemplates(input: {
|
|
98
|
+
client: RevoClient;
|
|
99
|
+
cwd: string;
|
|
100
|
+
envName: string;
|
|
101
|
+
stableKeyName: string;
|
|
102
|
+
force?: boolean;
|
|
103
|
+
}): Promise<{
|
|
104
|
+
plan: JobTemplatesPlan;
|
|
105
|
+
results: JobTemplatePushResult[];
|
|
106
|
+
}>;
|