@inf-monkeys-tech/monkeys-cli 0.12.23 → 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/README.md CHANGED
@@ -372,6 +372,7 @@ monkeys page publish --subscription test --file page.json --yes
372
372
  monkeys navigation import --subscription test --file navigation.json --dry-run
373
373
  monkeys navigation import --subscription test --file navigation.json --yes
374
374
  monkeys navigation publish example.navigation --subscription test --surface kernel --yes
375
+ monkeys page deactivate example.page --subscription test --release-slot <slot-id> --dry-run
375
376
  monkeys page history example.page --subscription test --release-slot <slot-id>
376
377
  monkeys page rollback example.page --subscription test --release-slot <slot-id> --release-version 1 --dry-run
377
378
  ```
@@ -382,6 +383,8 @@ File preflight checks document and dependency compatibility without saving or al
382
383
 
383
384
  Studio commands require an explicit `--team`. Use `--surface`, `--environment`, `--placement`, `--route-index` or `--release-slot` to resolve target ambiguity. Foreign live scopes and template references to immutable revisions are rejected; valid target revisions remain unchanged. Dependencies are never installed implicitly. Page and Navigation releases are independently scoped.
384
385
 
386
+ `page deactivate <id> --release-slot <slot> --dry-run` shows the exact active release to remove and the other release slots to retain. Apply with `--yes` only after checking that selection; the command verifies the deactivation and retained slots. To reuse a deactivated slot, read its current version with `page history`, then pass both `--release-slot <slot>` and `--expected-release-version <version>` to `validate` or `publish`. The server rejects a stale version; do not guess or bypass this check.
387
+
385
388
  After an authorized dependency update, `page publish <id> --refresh-dependencies --yes` compiles a new release even when the Page JSON is unchanged. Normal publication keeps its existing no-op behavior for an already active declaration.
386
389
 
387
390
  Catalog commands require a Subscription configured with only `--expected-surface kernel`. Kernel operators can use `page catalog import --file <artifact.json> --expected-hash <active-hash>`, followed by `page catalog synchronize --expected-hash <new-hash>`. Import checks the observed head before sending; synchronization enforces the exact catalog hash and definition revisions on the server. Use `--dry-run` first and `--yes` to apply each stage. These commands do not publish pages. `page catalog design-import --file <intent.json>` accepts an official Design artifact with `expectedCurrentSourceHash` and its exact `idempotencyKey`; the server checks dedicated activation authority and append-only compatibility. Its dry run checks local artifact hashes only. If a write outcome is unknown, inspect current catalog and definition state before retrying.
@@ -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;AA0KD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAiCnE"}
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"}
@@ -18,9 +18,11 @@ const NATIVE_DRY_RUN_COMMANDS = new Set([
18
18
  'page import',
19
19
  'page publish',
20
20
  'page rollback',
21
+ 'page deactivate',
21
22
  'navigation import',
22
23
  'navigation publish',
23
24
  'navigation rollback',
25
+ 'navigation deactivate',
24
26
  'config patch',
25
27
  'config set',
26
28
  'data asset enrich-jsonl',
@@ -72,9 +74,11 @@ const PRIVILEGED_COMMANDS = new Set([
72
74
  'page import',
73
75
  'page publish',
74
76
  'page rollback',
77
+ 'page deactivate',
75
78
  'navigation import',
76
79
  'navigation publish',
77
80
  'navigation rollback',
81
+ 'navigation deactivate',
78
82
  'dev-agent work assign existing',
79
83
  'dev-agent work assign new',
80
84
  'dev-agent work retry',
@@ -104,9 +108,11 @@ const NATIVE_REQUIRED_CONFIRMATION = new Set([
104
108
  'page import',
105
109
  'page publish',
106
110
  'page rollback',
111
+ 'page deactivate',
107
112
  'navigation import',
108
113
  'navigation publish',
109
114
  'navigation rollback',
115
+ 'navigation deactivate',
110
116
  'dev-agent work assign existing',
111
117
  'dev-agent work assign new',
112
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,aAAa;IACb,cAAc;IACd,eAAe;IACf,mBAAmB;IACnB,oBAAoB;IACpB,qBAAqB;IACrB,cAAc;IACd,YAAY;IACZ,yBAAyB;IACzB,6BAA6B;IAC7B,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,QAAQ;IACR,SAAS;CACV,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC;IACzB,OAAO;IACP,SAAS;IACT,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,KAAK;IACL,SAAS;IACT,MA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CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM;QACnE,IAAI;KACL,CAAC;AACJ,CAAC"}
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,aAAa;IACb,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,mBAAmB;IACnB,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;IACvB,cAAc;IACd,YAAY;IACZ,yBAAyB;IACzB,6BAA6B;IAC7B,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,QAAQ;IACR,SAAS;CACV,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC;IACzB,OAAO;IACP,SAAS;IACT,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,KAAK;IACL,SAAS;IACT,MAAM;IACN,UAAU;IACV,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,MAAM;IACN,UAAU;IACV,SAAS;IACT,MAAM;IACN,OAAO;IACP,QAAQ;CACT,CAAC,CAAC;AACH,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC;IAC5B,sBAAsB;IACtB,oCAAoC;IACpC,wCAAwC;IACxC,6BAA6B;CAC9B,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,CAAC,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,qBAAqB,CAAC,CAAC;AACrG,MAAM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GAAG,eAAe,CAAC;SACxE,IAAI,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAAE,IAAI,GAAG,MAAM,CAAC;;QAC5F,IAAI,GAAG,eAAe,CAAC;IAE5B,MAAM,gBAAgB,GACpB,UAAU,KAAK,UAAU;QACvB,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,+BAA+B,CAAC,GAAG,CAAC,UAAU,CAAC;YAC/C,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,4BAA4B,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,IAAI,KAAK,YAAY,IAAI,IAAI,KAAK,aAAa,IAAI,IAAI,KAAK,YAAY;gBACxH,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,MAAM,CAAC;IACjB,MAAM,uBAAuB,GAC3B,4BAA4B,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,+BAA+B,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,UAAU,KAAK,UAAU;QAC1H,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,gBAAgB,KAAK,UAAU;YAC/B,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,MAAM,CAAC;IAEf,OAAO;QACL,uBAAuB;QACvB,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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,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"}
@@ -0,0 +1,18 @@
1
+ import { LocalCommand } from '../../config/local-command.js';
2
+ export default class PageDeactivate 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/page/deactivate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAmB,MAAM,+BAA+B,CAAC;AAG9E,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,YAAY;IACtD,OAAgB,WAAW,SAA2F;IACtH,OAAgB,IAAI;QAAK,EAAE;MAAwE;IACnG,OAAgB,KAAK;QACnB,MAAM;QACN,YAAY;QACZ,IAAI;QACJ,OAAO;QACP,cAAc;QACd,SAAS;QACT,MAAM;MACN;IACI,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 { deactivatePageRelease } from '../../declarative/deactivate.js';
4
+ export default class PageDeactivate extends LocalCommand {
5
+ static description = 'Deactivate one exact Page release slot while preserving its draft and other releases.';
6
+ static args = { id: Args.string({ required: true, description: 'Page 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(PageDeactivate);
18
+ await this.emit('page deactivate', flags.output, () => deactivatePageRelease({
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/page/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,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,M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