@inf-monkeys-tech/monkeys-cli 0.12.24 → 0.12.25
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/command/metadata.d.ts.map +1 -1
- package/dist/command/metadata.js +3 -0
- package/dist/command/metadata.js.map +1 -1
- package/dist/commands/navigation/deactivate.d.ts +18 -0
- package/dist/commands/navigation/deactivate.d.ts.map +1 -0
- package/dist/commands/navigation/deactivate.js +30 -0
- package/dist/commands/navigation/deactivate.js.map +1 -0
- package/dist/declarative/deactivate.d.ts +509 -2
- package/dist/declarative/deactivate.d.ts.map +1 -1
- package/dist/declarative/deactivate.js +30 -13
- package/dist/declarative/deactivate.js.map +1 -1
- package/oclif.manifest.json +107 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/command/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAClE,uBAAuB,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvD,oBAAoB,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC1B,IAAI,EAAE,SAAS,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/command/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAClE,uBAAuB,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvD,oBAAoB,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC1B,IAAI,EAAE,SAAS,CAAC;CACjB;AAgLD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAiCnE"}
|
package/dist/command/metadata.js
CHANGED
|
@@ -22,6 +22,7 @@ const NATIVE_DRY_RUN_COMMANDS = new Set([
|
|
|
22
22
|
'navigation import',
|
|
23
23
|
'navigation publish',
|
|
24
24
|
'navigation rollback',
|
|
25
|
+
'navigation deactivate',
|
|
25
26
|
'config patch',
|
|
26
27
|
'config set',
|
|
27
28
|
'data asset enrich-jsonl',
|
|
@@ -77,6 +78,7 @@ const PRIVILEGED_COMMANDS = new Set([
|
|
|
77
78
|
'navigation import',
|
|
78
79
|
'navigation publish',
|
|
79
80
|
'navigation rollback',
|
|
81
|
+
'navigation deactivate',
|
|
80
82
|
'dev-agent work assign existing',
|
|
81
83
|
'dev-agent work assign new',
|
|
82
84
|
'dev-agent work retry',
|
|
@@ -110,6 +112,7 @@ const NATIVE_REQUIRED_CONFIRMATION = new Set([
|
|
|
110
112
|
'navigation import',
|
|
111
113
|
'navigation publish',
|
|
112
114
|
'navigation rollback',
|
|
115
|
+
'navigation deactivate',
|
|
113
116
|
'dev-agent work assign existing',
|
|
114
117
|
'dev-agent work assign new',
|
|
115
118
|
'dev-agent work delete',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/command/metadata.ts"],"names":[],"mappings":"AAUA,MAAM,kBAAkB,GAAG;IACzB,gBAAgB;IAChB,mBAAmB;IACnB,kBAAkB;IAClB,qBAAqB;IACrB,cAAc;IACd,cAAc;IACd,cAAc;IACd,sBAAsB;CACvB,CAAC;AAEF,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IACtC,4BAA4B;IAC5B,qBAAqB;IACrB,0BAA0B;IAC1B,+BAA+B;IAC/B,+BAA+B;IAC/B,GAAG,kBAAkB;IACrB,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ACvB,gBAAgB;QAChB,oBAAoB,EAAE,gBAAgB,KAAK,UAAU;QACrD,MAAM,EAAE,uBAAuB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM;QACnE,IAAI;KACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LocalCommand } from '../../config/local-command.js';
|
|
2
|
+
export default class NavigationDeactivate extends LocalCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
subscription: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
team: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
surface: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'release-slot': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
reason: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
};
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=deactivate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deactivate.d.ts","sourceRoot":"","sources":["../../../src/commands/navigation/deactivate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAmB,MAAM,+BAA+B,CAAC;AAG9E,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,YAAY;IAC5D,OAAgB,WAAW,SAA0F;IACrH,OAAgB,IAAI;QAAK,EAAE;MAA8E;IACzG,OAAgB,KAAK;QACnB,MAAM;QACN,YAAY;QACZ,IAAI;QACJ,OAAO;QACP,cAAc;QACd,SAAS;QACT,MAAM;MACN;IAEI,GAAG,kBAcR;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Args, Flags } from '@oclif/core';
|
|
2
|
+
import { LocalCommand, localOutputFlag } from '../../config/local-command.js';
|
|
3
|
+
import { deactivateNavigationRelease } from '../../declarative/deactivate.js';
|
|
4
|
+
export default class NavigationDeactivate extends LocalCommand {
|
|
5
|
+
static description = 'Deactivate one exact Navigation release slot while preserving its draft and history.';
|
|
6
|
+
static args = { id: Args.string({ required: true, description: 'Navigation declaration ID' }) };
|
|
7
|
+
static flags = {
|
|
8
|
+
output: localOutputFlag,
|
|
9
|
+
subscription: Flags.string({ required: true, summary: 'Target Subscription name' }),
|
|
10
|
+
team: Flags.string({ summary: 'Explicit Studio Team; Kernel ownership is resolved by the server' }),
|
|
11
|
+
surface: Flags.string({ options: ['kernel', 'studio'], summary: 'Product surface' }),
|
|
12
|
+
'release-slot': Flags.string({ required: true, summary: 'Exact active release slot to deactivate' }),
|
|
13
|
+
'dry-run': Flags.boolean({ default: false, summary: 'Inspect the exact release without changing it' }),
|
|
14
|
+
reason: Flags.string({ summary: 'Deactivation change reason' }),
|
|
15
|
+
};
|
|
16
|
+
async run() {
|
|
17
|
+
const { args, flags } = await this.parse(NavigationDeactivate);
|
|
18
|
+
await this.emit('navigation deactivate', flags.output, () => deactivateNavigationRelease({
|
|
19
|
+
id: args.id,
|
|
20
|
+
subscription: flags.subscription,
|
|
21
|
+
releaseSlot: flags['release-slot'],
|
|
22
|
+
...(flags.surface === 'kernel' || flags.surface === 'studio' ? { surface: flags.surface } : {}),
|
|
23
|
+
...(flags.team ? { team: flags.team } : {}),
|
|
24
|
+
...(flags.reason ? { reason: flags.reason } : {}),
|
|
25
|
+
dryRun: flags['dry-run'],
|
|
26
|
+
yes: flags.yes,
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=deactivate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deactivate.js","sourceRoot":"","sources":["../../../src/commands/navigation/deactivate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAE9E,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,YAAY;IAC5D,MAAM,CAAU,WAAW,GAAG,sFAAsF,CAAC;IACrH,MAAM,CAAU,IAAI,GAAG,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC,EAAE,CAAC;IACzG,MAAM,CAAU,KAAK,GAAG;QACtB,MAAM,EAAE,eAAe;QACvB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;QACnF,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,kEAAkE,EAAE,CAAC;QACnG,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;QACpF,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;QACpG,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,+CAA+C,EAAE,CAAC;QACtG,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;KAChE,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC/D,MAAM,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,CAC1D,2BAA2B,CAAC;YAC1B,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC;YAClC,GAAG,CAAC,KAAK,CAAC,OAAO,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/F,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC3C,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACjD,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;YACxB,GAAG,EAAE,KAAK,CAAC,GAAG;SACf,CAAC,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -9,11 +9,518 @@ interface Options {
|
|
|
9
9
|
yes?: boolean;
|
|
10
10
|
reason?: string;
|
|
11
11
|
}
|
|
12
|
+
type DeactivatableKind = 'page' | 'navigation';
|
|
13
|
+
export declare function deactivateRelease(kind: DeactivatableKind, options: Options, suppliedClient?: DeclarativeClient): Promise<{
|
|
14
|
+
subscription: string;
|
|
15
|
+
baseUrl: string;
|
|
16
|
+
tenant: string;
|
|
17
|
+
resourceKind: DeactivatableKind;
|
|
18
|
+
resourceId: string;
|
|
19
|
+
action: string;
|
|
20
|
+
releaseSlotId: string;
|
|
21
|
+
routePath: string | undefined;
|
|
22
|
+
dryRun: boolean;
|
|
23
|
+
intent: {
|
|
24
|
+
idempotencyKey: string;
|
|
25
|
+
definitionVersion: number;
|
|
26
|
+
releaseSlotId?: string | undefined;
|
|
27
|
+
releaseExpectedVersion: number;
|
|
28
|
+
publicationExpectedGeneration: number;
|
|
29
|
+
target: {
|
|
30
|
+
environmentRef: {
|
|
31
|
+
kind: string;
|
|
32
|
+
id: string;
|
|
33
|
+
ownerRepo: string;
|
|
34
|
+
visibility: "global" | "public" | "tenant";
|
|
35
|
+
tenantScope?: {
|
|
36
|
+
tenantRef: {
|
|
37
|
+
kind: string;
|
|
38
|
+
id: string;
|
|
39
|
+
ownerRepo: string;
|
|
40
|
+
};
|
|
41
|
+
dataSpaceRef: {
|
|
42
|
+
kind: string;
|
|
43
|
+
id: string;
|
|
44
|
+
ownerRepo: string;
|
|
45
|
+
};
|
|
46
|
+
teamRef?: {
|
|
47
|
+
kind: string;
|
|
48
|
+
id: string;
|
|
49
|
+
ownerRepo: string;
|
|
50
|
+
} | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
};
|
|
53
|
+
environmentRevisionRef: {
|
|
54
|
+
revision: number;
|
|
55
|
+
schemaVersion: number;
|
|
56
|
+
contentHash: string;
|
|
57
|
+
kind: string;
|
|
58
|
+
id: string;
|
|
59
|
+
ownerRepo: string;
|
|
60
|
+
visibility: "global" | "public" | "tenant";
|
|
61
|
+
tenantScope?: {
|
|
62
|
+
tenantRef: {
|
|
63
|
+
kind: string;
|
|
64
|
+
id: string;
|
|
65
|
+
ownerRepo: string;
|
|
66
|
+
};
|
|
67
|
+
dataSpaceRef: {
|
|
68
|
+
kind: string;
|
|
69
|
+
id: string;
|
|
70
|
+
ownerRepo: string;
|
|
71
|
+
};
|
|
72
|
+
teamRef?: {
|
|
73
|
+
kind: string;
|
|
74
|
+
id: string;
|
|
75
|
+
ownerRepo: string;
|
|
76
|
+
} | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
};
|
|
79
|
+
surface: "kernel" | "studio";
|
|
80
|
+
routeClaimIndex?: number | undefined;
|
|
81
|
+
legacyRouteTakeoverAuthorization?: {
|
|
82
|
+
contract: "LegacyRouteTakeoverAuthorization";
|
|
83
|
+
schemaVersion: 1;
|
|
84
|
+
routeSpaceRevisionRef: {
|
|
85
|
+
revision: number;
|
|
86
|
+
schemaVersion: number;
|
|
87
|
+
contentHash: string;
|
|
88
|
+
kind: string;
|
|
89
|
+
id: string;
|
|
90
|
+
ownerRepo: string;
|
|
91
|
+
visibility: "global" | "public" | "tenant";
|
|
92
|
+
tenantScope?: {
|
|
93
|
+
tenantRef: {
|
|
94
|
+
kind: string;
|
|
95
|
+
id: string;
|
|
96
|
+
ownerRepo: string;
|
|
97
|
+
};
|
|
98
|
+
dataSpaceRef: {
|
|
99
|
+
kind: string;
|
|
100
|
+
id: string;
|
|
101
|
+
ownerRepo: string;
|
|
102
|
+
};
|
|
103
|
+
teamRef?: {
|
|
104
|
+
kind: string;
|
|
105
|
+
id: string;
|
|
106
|
+
ownerRepo: string;
|
|
107
|
+
} | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
};
|
|
110
|
+
normalizedPath: string;
|
|
111
|
+
legacyAdapterRevisionRef: {
|
|
112
|
+
revision: number;
|
|
113
|
+
schemaVersion: number;
|
|
114
|
+
contentHash: string;
|
|
115
|
+
kind: string;
|
|
116
|
+
id: string;
|
|
117
|
+
ownerRepo: string;
|
|
118
|
+
visibility: "global" | "public" | "tenant";
|
|
119
|
+
tenantScope?: {
|
|
120
|
+
tenantRef: {
|
|
121
|
+
kind: string;
|
|
122
|
+
id: string;
|
|
123
|
+
ownerRepo: string;
|
|
124
|
+
};
|
|
125
|
+
dataSpaceRef: {
|
|
126
|
+
kind: string;
|
|
127
|
+
id: string;
|
|
128
|
+
ownerRepo: string;
|
|
129
|
+
};
|
|
130
|
+
teamRef?: {
|
|
131
|
+
kind: string;
|
|
132
|
+
id: string;
|
|
133
|
+
ownerRepo: string;
|
|
134
|
+
} | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
};
|
|
137
|
+
sourceRevisionRef: {
|
|
138
|
+
revision: number;
|
|
139
|
+
schemaVersion: number;
|
|
140
|
+
contentHash: string;
|
|
141
|
+
kind: string;
|
|
142
|
+
id: string;
|
|
143
|
+
ownerRepo: string;
|
|
144
|
+
visibility: "global" | "public" | "tenant";
|
|
145
|
+
tenantScope?: {
|
|
146
|
+
tenantRef: {
|
|
147
|
+
kind: string;
|
|
148
|
+
id: string;
|
|
149
|
+
ownerRepo: string;
|
|
150
|
+
};
|
|
151
|
+
dataSpaceRef: {
|
|
152
|
+
kind: string;
|
|
153
|
+
id: string;
|
|
154
|
+
ownerRepo: string;
|
|
155
|
+
};
|
|
156
|
+
teamRef?: {
|
|
157
|
+
kind: string;
|
|
158
|
+
id: string;
|
|
159
|
+
ownerRepo: string;
|
|
160
|
+
} | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
};
|
|
163
|
+
inspectedSourceContentHash: string;
|
|
164
|
+
targetResourceRef: {
|
|
165
|
+
kind: string;
|
|
166
|
+
id: string;
|
|
167
|
+
ownerRepo: string;
|
|
168
|
+
visibility: "global" | "public" | "tenant";
|
|
169
|
+
tenantScope?: {
|
|
170
|
+
tenantRef: {
|
|
171
|
+
kind: string;
|
|
172
|
+
id: string;
|
|
173
|
+
ownerRepo: string;
|
|
174
|
+
};
|
|
175
|
+
dataSpaceRef: {
|
|
176
|
+
kind: string;
|
|
177
|
+
id: string;
|
|
178
|
+
ownerRepo: string;
|
|
179
|
+
};
|
|
180
|
+
teamRef?: {
|
|
181
|
+
kind: string;
|
|
182
|
+
id: string;
|
|
183
|
+
ownerRepo: string;
|
|
184
|
+
} | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
};
|
|
187
|
+
workbenchCatalogDefaults?: {
|
|
188
|
+
order: number;
|
|
189
|
+
isDefaultCandidate: boolean;
|
|
190
|
+
} | undefined;
|
|
191
|
+
contentHash: string;
|
|
192
|
+
} | undefined;
|
|
193
|
+
placement?: string | undefined;
|
|
194
|
+
order?: number | undefined;
|
|
195
|
+
isDefaultCandidate?: boolean | undefined;
|
|
196
|
+
};
|
|
197
|
+
targetReleaseVersion?: number | undefined;
|
|
198
|
+
ttlSeconds?: number | undefined;
|
|
199
|
+
audienceSimulation?: {
|
|
200
|
+
groupRefs: {
|
|
201
|
+
kind: string;
|
|
202
|
+
id: string;
|
|
203
|
+
ownerRepo: string;
|
|
204
|
+
visibility: "global" | "public" | "tenant";
|
|
205
|
+
tenantScope?: {
|
|
206
|
+
tenantRef: {
|
|
207
|
+
kind: string;
|
|
208
|
+
id: string;
|
|
209
|
+
ownerRepo: string;
|
|
210
|
+
};
|
|
211
|
+
dataSpaceRef: {
|
|
212
|
+
kind: string;
|
|
213
|
+
id: string;
|
|
214
|
+
ownerRepo: string;
|
|
215
|
+
};
|
|
216
|
+
teamRef?: {
|
|
217
|
+
kind: string;
|
|
218
|
+
id: string;
|
|
219
|
+
ownerRepo: string;
|
|
220
|
+
} | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
}[];
|
|
223
|
+
permissions: string[];
|
|
224
|
+
} | undefined;
|
|
225
|
+
reason?: string | undefined;
|
|
226
|
+
};
|
|
227
|
+
retainedReleaseSlotIds: string[];
|
|
228
|
+
} | {
|
|
229
|
+
subscription: string;
|
|
230
|
+
baseUrl: string;
|
|
231
|
+
tenant: string;
|
|
232
|
+
resourceKind: DeactivatableKind;
|
|
233
|
+
resourceId: string;
|
|
234
|
+
action: string;
|
|
235
|
+
releaseSlotId: string;
|
|
236
|
+
routePath: string | undefined;
|
|
237
|
+
verified: boolean;
|
|
238
|
+
releaseRevisionRef: {
|
|
239
|
+
revision: number;
|
|
240
|
+
schemaVersion: number;
|
|
241
|
+
contentHash: string;
|
|
242
|
+
kind: string;
|
|
243
|
+
id: string;
|
|
244
|
+
ownerRepo: string;
|
|
245
|
+
visibility: "global" | "public" | "tenant";
|
|
246
|
+
tenantScope?: {
|
|
247
|
+
tenantRef: {
|
|
248
|
+
kind: string;
|
|
249
|
+
id: string;
|
|
250
|
+
ownerRepo: string;
|
|
251
|
+
};
|
|
252
|
+
dataSpaceRef: {
|
|
253
|
+
kind: string;
|
|
254
|
+
id: string;
|
|
255
|
+
ownerRepo: string;
|
|
256
|
+
};
|
|
257
|
+
teamRef?: {
|
|
258
|
+
kind: string;
|
|
259
|
+
id: string;
|
|
260
|
+
ownerRepo: string;
|
|
261
|
+
} | undefined;
|
|
262
|
+
} | undefined;
|
|
263
|
+
};
|
|
264
|
+
retainedReleaseSlotIds: string[];
|
|
265
|
+
}>;
|
|
12
266
|
export declare function deactivatePageRelease(options: Options, suppliedClient?: DeclarativeClient): Promise<{
|
|
13
267
|
subscription: string;
|
|
14
268
|
baseUrl: string;
|
|
15
269
|
tenant: string;
|
|
16
|
-
resourceKind:
|
|
270
|
+
resourceKind: DeactivatableKind;
|
|
271
|
+
resourceId: string;
|
|
272
|
+
action: string;
|
|
273
|
+
releaseSlotId: string;
|
|
274
|
+
routePath: string | undefined;
|
|
275
|
+
dryRun: boolean;
|
|
276
|
+
intent: {
|
|
277
|
+
idempotencyKey: string;
|
|
278
|
+
definitionVersion: number;
|
|
279
|
+
releaseSlotId?: string | undefined;
|
|
280
|
+
releaseExpectedVersion: number;
|
|
281
|
+
publicationExpectedGeneration: number;
|
|
282
|
+
target: {
|
|
283
|
+
environmentRef: {
|
|
284
|
+
kind: string;
|
|
285
|
+
id: string;
|
|
286
|
+
ownerRepo: string;
|
|
287
|
+
visibility: "global" | "public" | "tenant";
|
|
288
|
+
tenantScope?: {
|
|
289
|
+
tenantRef: {
|
|
290
|
+
kind: string;
|
|
291
|
+
id: string;
|
|
292
|
+
ownerRepo: string;
|
|
293
|
+
};
|
|
294
|
+
dataSpaceRef: {
|
|
295
|
+
kind: string;
|
|
296
|
+
id: string;
|
|
297
|
+
ownerRepo: string;
|
|
298
|
+
};
|
|
299
|
+
teamRef?: {
|
|
300
|
+
kind: string;
|
|
301
|
+
id: string;
|
|
302
|
+
ownerRepo: string;
|
|
303
|
+
} | undefined;
|
|
304
|
+
} | undefined;
|
|
305
|
+
};
|
|
306
|
+
environmentRevisionRef: {
|
|
307
|
+
revision: number;
|
|
308
|
+
schemaVersion: number;
|
|
309
|
+
contentHash: string;
|
|
310
|
+
kind: string;
|
|
311
|
+
id: string;
|
|
312
|
+
ownerRepo: string;
|
|
313
|
+
visibility: "global" | "public" | "tenant";
|
|
314
|
+
tenantScope?: {
|
|
315
|
+
tenantRef: {
|
|
316
|
+
kind: string;
|
|
317
|
+
id: string;
|
|
318
|
+
ownerRepo: string;
|
|
319
|
+
};
|
|
320
|
+
dataSpaceRef: {
|
|
321
|
+
kind: string;
|
|
322
|
+
id: string;
|
|
323
|
+
ownerRepo: string;
|
|
324
|
+
};
|
|
325
|
+
teamRef?: {
|
|
326
|
+
kind: string;
|
|
327
|
+
id: string;
|
|
328
|
+
ownerRepo: string;
|
|
329
|
+
} | undefined;
|
|
330
|
+
} | undefined;
|
|
331
|
+
};
|
|
332
|
+
surface: "kernel" | "studio";
|
|
333
|
+
routeClaimIndex?: number | undefined;
|
|
334
|
+
legacyRouteTakeoverAuthorization?: {
|
|
335
|
+
contract: "LegacyRouteTakeoverAuthorization";
|
|
336
|
+
schemaVersion: 1;
|
|
337
|
+
routeSpaceRevisionRef: {
|
|
338
|
+
revision: number;
|
|
339
|
+
schemaVersion: number;
|
|
340
|
+
contentHash: string;
|
|
341
|
+
kind: string;
|
|
342
|
+
id: string;
|
|
343
|
+
ownerRepo: string;
|
|
344
|
+
visibility: "global" | "public" | "tenant";
|
|
345
|
+
tenantScope?: {
|
|
346
|
+
tenantRef: {
|
|
347
|
+
kind: string;
|
|
348
|
+
id: string;
|
|
349
|
+
ownerRepo: string;
|
|
350
|
+
};
|
|
351
|
+
dataSpaceRef: {
|
|
352
|
+
kind: string;
|
|
353
|
+
id: string;
|
|
354
|
+
ownerRepo: string;
|
|
355
|
+
};
|
|
356
|
+
teamRef?: {
|
|
357
|
+
kind: string;
|
|
358
|
+
id: string;
|
|
359
|
+
ownerRepo: string;
|
|
360
|
+
} | undefined;
|
|
361
|
+
} | undefined;
|
|
362
|
+
};
|
|
363
|
+
normalizedPath: string;
|
|
364
|
+
legacyAdapterRevisionRef: {
|
|
365
|
+
revision: number;
|
|
366
|
+
schemaVersion: number;
|
|
367
|
+
contentHash: string;
|
|
368
|
+
kind: string;
|
|
369
|
+
id: string;
|
|
370
|
+
ownerRepo: string;
|
|
371
|
+
visibility: "global" | "public" | "tenant";
|
|
372
|
+
tenantScope?: {
|
|
373
|
+
tenantRef: {
|
|
374
|
+
kind: string;
|
|
375
|
+
id: string;
|
|
376
|
+
ownerRepo: string;
|
|
377
|
+
};
|
|
378
|
+
dataSpaceRef: {
|
|
379
|
+
kind: string;
|
|
380
|
+
id: string;
|
|
381
|
+
ownerRepo: string;
|
|
382
|
+
};
|
|
383
|
+
teamRef?: {
|
|
384
|
+
kind: string;
|
|
385
|
+
id: string;
|
|
386
|
+
ownerRepo: string;
|
|
387
|
+
} | undefined;
|
|
388
|
+
} | undefined;
|
|
389
|
+
};
|
|
390
|
+
sourceRevisionRef: {
|
|
391
|
+
revision: number;
|
|
392
|
+
schemaVersion: number;
|
|
393
|
+
contentHash: string;
|
|
394
|
+
kind: string;
|
|
395
|
+
id: string;
|
|
396
|
+
ownerRepo: string;
|
|
397
|
+
visibility: "global" | "public" | "tenant";
|
|
398
|
+
tenantScope?: {
|
|
399
|
+
tenantRef: {
|
|
400
|
+
kind: string;
|
|
401
|
+
id: string;
|
|
402
|
+
ownerRepo: string;
|
|
403
|
+
};
|
|
404
|
+
dataSpaceRef: {
|
|
405
|
+
kind: string;
|
|
406
|
+
id: string;
|
|
407
|
+
ownerRepo: string;
|
|
408
|
+
};
|
|
409
|
+
teamRef?: {
|
|
410
|
+
kind: string;
|
|
411
|
+
id: string;
|
|
412
|
+
ownerRepo: string;
|
|
413
|
+
} | undefined;
|
|
414
|
+
} | undefined;
|
|
415
|
+
};
|
|
416
|
+
inspectedSourceContentHash: string;
|
|
417
|
+
targetResourceRef: {
|
|
418
|
+
kind: string;
|
|
419
|
+
id: string;
|
|
420
|
+
ownerRepo: string;
|
|
421
|
+
visibility: "global" | "public" | "tenant";
|
|
422
|
+
tenantScope?: {
|
|
423
|
+
tenantRef: {
|
|
424
|
+
kind: string;
|
|
425
|
+
id: string;
|
|
426
|
+
ownerRepo: string;
|
|
427
|
+
};
|
|
428
|
+
dataSpaceRef: {
|
|
429
|
+
kind: string;
|
|
430
|
+
id: string;
|
|
431
|
+
ownerRepo: string;
|
|
432
|
+
};
|
|
433
|
+
teamRef?: {
|
|
434
|
+
kind: string;
|
|
435
|
+
id: string;
|
|
436
|
+
ownerRepo: string;
|
|
437
|
+
} | undefined;
|
|
438
|
+
} | undefined;
|
|
439
|
+
};
|
|
440
|
+
workbenchCatalogDefaults?: {
|
|
441
|
+
order: number;
|
|
442
|
+
isDefaultCandidate: boolean;
|
|
443
|
+
} | undefined;
|
|
444
|
+
contentHash: string;
|
|
445
|
+
} | undefined;
|
|
446
|
+
placement?: string | undefined;
|
|
447
|
+
order?: number | undefined;
|
|
448
|
+
isDefaultCandidate?: boolean | undefined;
|
|
449
|
+
};
|
|
450
|
+
targetReleaseVersion?: number | undefined;
|
|
451
|
+
ttlSeconds?: number | undefined;
|
|
452
|
+
audienceSimulation?: {
|
|
453
|
+
groupRefs: {
|
|
454
|
+
kind: string;
|
|
455
|
+
id: string;
|
|
456
|
+
ownerRepo: string;
|
|
457
|
+
visibility: "global" | "public" | "tenant";
|
|
458
|
+
tenantScope?: {
|
|
459
|
+
tenantRef: {
|
|
460
|
+
kind: string;
|
|
461
|
+
id: string;
|
|
462
|
+
ownerRepo: string;
|
|
463
|
+
};
|
|
464
|
+
dataSpaceRef: {
|
|
465
|
+
kind: string;
|
|
466
|
+
id: string;
|
|
467
|
+
ownerRepo: string;
|
|
468
|
+
};
|
|
469
|
+
teamRef?: {
|
|
470
|
+
kind: string;
|
|
471
|
+
id: string;
|
|
472
|
+
ownerRepo: string;
|
|
473
|
+
} | undefined;
|
|
474
|
+
} | undefined;
|
|
475
|
+
}[];
|
|
476
|
+
permissions: string[];
|
|
477
|
+
} | undefined;
|
|
478
|
+
reason?: string | undefined;
|
|
479
|
+
};
|
|
480
|
+
retainedReleaseSlotIds: string[];
|
|
481
|
+
} | {
|
|
482
|
+
subscription: string;
|
|
483
|
+
baseUrl: string;
|
|
484
|
+
tenant: string;
|
|
485
|
+
resourceKind: DeactivatableKind;
|
|
486
|
+
resourceId: string;
|
|
487
|
+
action: string;
|
|
488
|
+
releaseSlotId: string;
|
|
489
|
+
routePath: string | undefined;
|
|
490
|
+
verified: boolean;
|
|
491
|
+
releaseRevisionRef: {
|
|
492
|
+
revision: number;
|
|
493
|
+
schemaVersion: number;
|
|
494
|
+
contentHash: string;
|
|
495
|
+
kind: string;
|
|
496
|
+
id: string;
|
|
497
|
+
ownerRepo: string;
|
|
498
|
+
visibility: "global" | "public" | "tenant";
|
|
499
|
+
tenantScope?: {
|
|
500
|
+
tenantRef: {
|
|
501
|
+
kind: string;
|
|
502
|
+
id: string;
|
|
503
|
+
ownerRepo: string;
|
|
504
|
+
};
|
|
505
|
+
dataSpaceRef: {
|
|
506
|
+
kind: string;
|
|
507
|
+
id: string;
|
|
508
|
+
ownerRepo: string;
|
|
509
|
+
};
|
|
510
|
+
teamRef?: {
|
|
511
|
+
kind: string;
|
|
512
|
+
id: string;
|
|
513
|
+
ownerRepo: string;
|
|
514
|
+
} | undefined;
|
|
515
|
+
} | undefined;
|
|
516
|
+
};
|
|
517
|
+
retainedReleaseSlotIds: string[];
|
|
518
|
+
}>;
|
|
519
|
+
export declare function deactivateNavigationRelease(options: Options, suppliedClient?: DeclarativeClient): Promise<{
|
|
520
|
+
subscription: string;
|
|
521
|
+
baseUrl: string;
|
|
522
|
+
tenant: string;
|
|
523
|
+
resourceKind: DeactivatableKind;
|
|
17
524
|
resourceId: string;
|
|
18
525
|
action: string;
|
|
19
526
|
releaseSlotId: string;
|
|
@@ -228,7 +735,7 @@ export declare function deactivatePageRelease(options: Options, suppliedClient?:
|
|
|
228
735
|
subscription: string;
|
|
229
736
|
baseUrl: string;
|
|
230
737
|
tenant: string;
|
|
231
|
-
resourceKind:
|
|
738
|
+
resourceKind: DeactivatableKind;
|
|
232
739
|
resourceId: string;
|
|
233
740
|
action: string;
|
|
234
741
|
releaseSlotId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deactivate.d.ts","sourceRoot":"","sources":["../../src/declarative/deactivate.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,UAAU,OAAO;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"deactivate.d.ts","sourceRoot":"","sources":["../../src/declarative/deactivate.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,UAAU,OAAO;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAErG"}
|
|
@@ -9,29 +9,30 @@ const same = (a, b) => canonicalContentHash(a) === canonicalContentHash(b);
|
|
|
9
9
|
function invalid(message) {
|
|
10
10
|
throw new CliError(message, { code: 'DECLARATIVE_DEACTIVATION_MISMATCH', exitCode: EXIT_CODES.validation });
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
const resourceLabel = (kind) => (kind === 'page' ? 'Page' : 'Navigation');
|
|
13
|
+
export async function deactivateRelease(kind, options, suppliedClient) {
|
|
13
14
|
const runtime = suppliedClient?.runtime ??
|
|
14
15
|
(await loadSemanticRuntime({
|
|
15
16
|
subscription: options.subscription,
|
|
16
17
|
inheritDefaultTeam: false,
|
|
17
18
|
...(options.team ? { team: options.team } : {}),
|
|
18
19
|
}));
|
|
19
|
-
const client = suppliedClient ?? new DeclarativeClient(runtime,
|
|
20
|
+
const client = suppliedClient ?? new DeclarativeClient(runtime, kind);
|
|
20
21
|
const before = await client.bootstrap(options.id, options.surface);
|
|
21
|
-
const resources = before.resources.filter((resource) => resource.resourceKind ===
|
|
22
|
+
const resources = before.resources.filter((resource) => resource.resourceKind === kind && resource.resourceId === options.id);
|
|
22
23
|
if (resources.length !== 1)
|
|
23
|
-
invalid(
|
|
24
|
+
invalid(`The ${resourceLabel(kind)} is absent or ambiguous in this context.`);
|
|
24
25
|
const resource = resources[0];
|
|
25
26
|
const placements = resource.releasePlacements.filter((placement) => placement.releaseRevisionRef.id === options.releaseSlot &&
|
|
26
27
|
(!options.surface || placement.surface === options.surface) &&
|
|
27
28
|
resource.activeReleaseRevisionRefs.some((ref) => same(ref, placement.releaseRevisionRef)));
|
|
28
29
|
if (placements.length !== 1)
|
|
29
|
-
invalid(
|
|
30
|
+
invalid(`The exact release slot is not active for this ${resourceLabel(kind)} and surface.`);
|
|
30
31
|
const placement = placements[0];
|
|
31
32
|
if (placement.definitionRevisionRef.id !== options.id)
|
|
32
|
-
invalid(
|
|
33
|
+
invalid(`The release slot belongs to another ${resourceLabel(kind)}.`);
|
|
33
34
|
if (placement.surface === 'studio')
|
|
34
|
-
requireSemanticTeam(runtime,
|
|
35
|
+
requireSemanticTeam(runtime, `${kind} deactivate`);
|
|
35
36
|
const environments = before.environmentChoices.filter((choice) => same(choice.stableRef, placement.environmentRef));
|
|
36
37
|
if (environments.length !== 1 || !environments[0].revisionRef)
|
|
37
38
|
invalid('The release environment cannot be resolved exactly.');
|
|
@@ -41,14 +42,19 @@ export async function deactivatePageRelease(options, suppliedClient) {
|
|
|
41
42
|
releaseSlotId: options.releaseSlot,
|
|
42
43
|
releaseExpectedVersion: placement.releaseRevisionRef.revision,
|
|
43
44
|
publicationExpectedGeneration: before.generation,
|
|
44
|
-
target: {
|
|
45
|
+
target: {
|
|
46
|
+
environmentRef: placement.environmentRef,
|
|
47
|
+
environmentRevisionRef: environments[0].revisionRef,
|
|
48
|
+
surface: placement.surface,
|
|
49
|
+
...(placement.placement ? { placement: placement.placement } : {}),
|
|
50
|
+
},
|
|
45
51
|
...(options.reason ? { reason: options.reason } : {}),
|
|
46
52
|
});
|
|
47
53
|
const meta = {
|
|
48
54
|
subscription: runtime.context.subscription,
|
|
49
55
|
baseUrl: runtime.context.baseUrl,
|
|
50
56
|
tenant: runtime.context.tenant,
|
|
51
|
-
resourceKind:
|
|
57
|
+
resourceKind: kind,
|
|
52
58
|
resourceId: options.id,
|
|
53
59
|
action: 'deactivate',
|
|
54
60
|
releaseSlotId: options.releaseSlot,
|
|
@@ -64,16 +70,21 @@ export async function deactivatePageRelease(options, suppliedClient) {
|
|
|
64
70
|
assertConfirmation({ interactive: Boolean(process.stdin.isTTY), risk: 'privileged', yes: Boolean(options.yes) });
|
|
65
71
|
const result = await client.deactivate(options.id, intent);
|
|
66
72
|
const item = result.items.length === 1 ? result.items[0] : undefined;
|
|
73
|
+
const returnedDefinition = item?.release.contract === 'PageRelease'
|
|
74
|
+
? item.release.pageRevisionRef
|
|
75
|
+
: item?.release.contract === 'NavigationRelease'
|
|
76
|
+
? item.release.navigationRevisionRef
|
|
77
|
+
: undefined;
|
|
67
78
|
if (result.action !== 'publication-plan' ||
|
|
68
79
|
!item ||
|
|
69
|
-
item.resourceKind !==
|
|
80
|
+
item.resourceKind !== kind ||
|
|
70
81
|
item.resourceId !== options.id ||
|
|
71
|
-
item.release.contract !== 'PageRelease' ||
|
|
82
|
+
item.release.contract !== (kind === 'page' ? 'PageRelease' : 'NavigationRelease') ||
|
|
72
83
|
item.release.operation !== 'deactivate' ||
|
|
73
84
|
item.bundle !== undefined ||
|
|
74
85
|
item.releaseRevisionRef.id !== options.releaseSlot ||
|
|
75
86
|
item.releaseRevisionRef.revision !== placement.releaseRevisionRef.revision + 1 ||
|
|
76
|
-
!same(
|
|
87
|
+
!same(returnedDefinition, resource.draftRevisionRef))
|
|
77
88
|
invalid('The deactivation response does not match the selected release. Read history before retrying.');
|
|
78
89
|
const history = await client.releaseHistory(options.id, options.releaseSlot, { pageSize: 1 });
|
|
79
90
|
if (history.items.length !== 1 ||
|
|
@@ -81,7 +92,7 @@ export async function deactivatePageRelease(options, suppliedClient) {
|
|
|
81
92
|
!same(history.items[0].body, item.release))
|
|
82
93
|
invalid('The exact deactivation could not be verified from release history.');
|
|
83
94
|
const after = await client.bootstrap(options.id, placement.surface);
|
|
84
|
-
const current = after.resources.find((entry) => entry.resourceKind ===
|
|
95
|
+
const current = after.resources.find((entry) => entry.resourceKind === kind && entry.resourceId === options.id);
|
|
85
96
|
if (!current ||
|
|
86
97
|
current.activeReleaseRevisionRefs.some((ref) => ref.id === options.releaseSlot) ||
|
|
87
98
|
resource.activeReleaseRevisionRefs
|
|
@@ -95,4 +106,10 @@ export async function deactivatePageRelease(options, suppliedClient) {
|
|
|
95
106
|
retainedReleaseSlotIds: current.activeReleaseRevisionRefs.map((ref) => ref.id),
|
|
96
107
|
};
|
|
97
108
|
}
|
|
109
|
+
export async function deactivatePageRelease(options, suppliedClient) {
|
|
110
|
+
return deactivateRelease('page', options, suppliedClient);
|
|
111
|
+
}
|
|
112
|
+
export async function deactivateNavigationRelease(options, suppliedClient) {
|
|
113
|
+
return deactivateRelease('navigation', options, suppliedClient);
|
|
114
|
+
}
|
|
98
115
|
//# sourceMappingURL=deactivate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deactivate.js","sourceRoot":"","sources":["../../src/declarative/deactivate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"deactivate.js","sourceRoot":"","sources":["../../src/declarative/deactivate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAahD,MAAM,IAAI,GAAG,CAAC,CAAU,EAAE,CAAU,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EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;QAExF,OAAO,CAAC,oFAAoF,CAAC,CAAC;IAChG,OAAO;QACL,GAAG,IAAI;QACP,QAAQ,EAAE,IAAI;QACd,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;QAC3C,sBAAsB,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;KAC/E,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,OAAgB,EAAE,cAAkC;IAC9F,OAAO,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,OAAgB,EAAE,cAAkC;IACpG,OAAO,iBAAiB,CAAC,YAAY,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;AAClE,CAAC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -14133,6 +14133,112 @@
|
|
|
14133
14133
|
],
|
|
14134
14134
|
"strict": true
|
|
14135
14135
|
},
|
|
14136
|
+
"navigation:deactivate": {
|
|
14137
|
+
"aliases": [],
|
|
14138
|
+
"args": {
|
|
14139
|
+
"id": {
|
|
14140
|
+
"description": "Navigation declaration ID",
|
|
14141
|
+
"name": "id",
|
|
14142
|
+
"required": true
|
|
14143
|
+
}
|
|
14144
|
+
},
|
|
14145
|
+
"description": "Deactivate one exact Navigation release slot while preserving its draft and history.",
|
|
14146
|
+
"enableJsonFlag": false,
|
|
14147
|
+
"flags": {
|
|
14148
|
+
"dry-run": {
|
|
14149
|
+
"allowNo": false,
|
|
14150
|
+
"name": "dry-run",
|
|
14151
|
+
"summary": "Inspect the exact release without changing it",
|
|
14152
|
+
"type": "boolean"
|
|
14153
|
+
},
|
|
14154
|
+
"jq": {
|
|
14155
|
+
"char": "q",
|
|
14156
|
+
"hasDynamicHelp": false,
|
|
14157
|
+
"multiple": false,
|
|
14158
|
+
"name": "jq",
|
|
14159
|
+
"summary": "Filter the JSON result with a jq expression",
|
|
14160
|
+
"type": "option"
|
|
14161
|
+
},
|
|
14162
|
+
"output": {
|
|
14163
|
+
"default": "json",
|
|
14164
|
+
"hasDynamicHelp": false,
|
|
14165
|
+
"multiple": false,
|
|
14166
|
+
"name": "output",
|
|
14167
|
+
"options": [
|
|
14168
|
+
"json",
|
|
14169
|
+
"pretty",
|
|
14170
|
+
"table",
|
|
14171
|
+
"ndjson",
|
|
14172
|
+
"csv",
|
|
14173
|
+
"text"
|
|
14174
|
+
],
|
|
14175
|
+
"summary": "Output format",
|
|
14176
|
+
"type": "option"
|
|
14177
|
+
},
|
|
14178
|
+
"reason": {
|
|
14179
|
+
"hasDynamicHelp": false,
|
|
14180
|
+
"multiple": false,
|
|
14181
|
+
"name": "reason",
|
|
14182
|
+
"summary": "Deactivation change reason",
|
|
14183
|
+
"type": "option"
|
|
14184
|
+
},
|
|
14185
|
+
"release-slot": {
|
|
14186
|
+
"hasDynamicHelp": false,
|
|
14187
|
+
"multiple": false,
|
|
14188
|
+
"name": "release-slot",
|
|
14189
|
+
"required": true,
|
|
14190
|
+
"summary": "Exact active release slot to deactivate",
|
|
14191
|
+
"type": "option"
|
|
14192
|
+
},
|
|
14193
|
+
"subscription": {
|
|
14194
|
+
"hasDynamicHelp": false,
|
|
14195
|
+
"multiple": false,
|
|
14196
|
+
"name": "subscription",
|
|
14197
|
+
"required": true,
|
|
14198
|
+
"summary": "Target Subscription name",
|
|
14199
|
+
"type": "option"
|
|
14200
|
+
},
|
|
14201
|
+
"surface": {
|
|
14202
|
+
"hasDynamicHelp": false,
|
|
14203
|
+
"multiple": false,
|
|
14204
|
+
"name": "surface",
|
|
14205
|
+
"options": [
|
|
14206
|
+
"kernel",
|
|
14207
|
+
"studio"
|
|
14208
|
+
],
|
|
14209
|
+
"summary": "Product surface",
|
|
14210
|
+
"type": "option"
|
|
14211
|
+
},
|
|
14212
|
+
"team": {
|
|
14213
|
+
"hasDynamicHelp": false,
|
|
14214
|
+
"multiple": false,
|
|
14215
|
+
"name": "team",
|
|
14216
|
+
"summary": "Explicit Studio Team; Kernel ownership is resolved by the server",
|
|
14217
|
+
"type": "option"
|
|
14218
|
+
},
|
|
14219
|
+
"yes": {
|
|
14220
|
+
"allowNo": false,
|
|
14221
|
+
"char": "y",
|
|
14222
|
+
"name": "yes",
|
|
14223
|
+
"summary": "Confirm destructive or privileged operations",
|
|
14224
|
+
"type": "boolean"
|
|
14225
|
+
}
|
|
14226
|
+
},
|
|
14227
|
+
"hasDynamicHelp": false,
|
|
14228
|
+
"hiddenAliases": [],
|
|
14229
|
+
"id": "navigation:deactivate",
|
|
14230
|
+
"isESM": true,
|
|
14231
|
+
"pluginAlias": "@inf-monkeys-tech/monkeys-cli",
|
|
14232
|
+
"pluginName": "@inf-monkeys-tech/monkeys-cli",
|
|
14233
|
+
"pluginType": "core",
|
|
14234
|
+
"relativePath": [
|
|
14235
|
+
"dist",
|
|
14236
|
+
"commands",
|
|
14237
|
+
"navigation",
|
|
14238
|
+
"deactivate.js"
|
|
14239
|
+
],
|
|
14240
|
+
"strict": true
|
|
14241
|
+
},
|
|
14136
14242
|
"navigation:export": {
|
|
14137
14243
|
"aliases": [],
|
|
14138
14244
|
"args": {
|
|
@@ -19477,5 +19583,5 @@
|
|
|
19477
19583
|
"strict": true
|
|
19478
19584
|
}
|
|
19479
19585
|
},
|
|
19480
|
-
"version": "0.12.
|
|
19586
|
+
"version": "0.12.25"
|
|
19481
19587
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inf-monkeys-tech/monkeys-cli",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.25",
|
|
4
4
|
"packageManager": "bun@1.3.14",
|
|
5
5
|
"description": "Monkeys command-line client for AI agents, automation, and interactive use",
|
|
6
6
|
"type": "module",
|
|
@@ -150,5 +150,5 @@
|
|
|
150
150
|
"publishConfig": {
|
|
151
151
|
"access": "public"
|
|
152
152
|
},
|
|
153
|
-
"monkeysReleaseCommit": "
|
|
153
|
+
"monkeysReleaseCommit": "0fccd613ac6d54c3aafb4b56f90ec2f6acaf33f3"
|
|
154
154
|
}
|