@platforma-sdk/block-tools 2.11.2 → 2.11.3

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 (48) hide show
  1. package/bin/run.js +9 -5
  2. package/dist/cli.d.ts +3 -0
  3. package/dist/cli.js +12 -12
  4. package/dist/cli.js.map +1 -1
  5. package/dist/cli.mjs +740 -930
  6. package/dist/cli.mjs.map +1 -1
  7. package/dist/cmd/build-meta.d.ts +2 -9
  8. package/dist/cmd/build-model.d.ts +2 -10
  9. package/dist/cmd/list-overview-snapshots.d.ts +2 -9
  10. package/dist/cmd/mark-stable.d.ts +2 -13
  11. package/dist/cmd/pack.d.ts +2 -9
  12. package/dist/cmd/publish.d.ts +2 -12
  13. package/dist/cmd/refresh-registry.d.ts +2 -9
  14. package/dist/cmd/restore-overview-from-snapshot.d.ts +2 -10
  15. package/dist/cmd/structure/check.d.ts +2 -10
  16. package/dist/cmd/structure/init.d.ts +2 -18
  17. package/dist/cmd/structure/refresh.d.ts +10 -11
  18. package/dist/cmd/update-deps.d.ts +2 -6
  19. package/dist/cmd/upload-package-v1.d.ts +2 -14
  20. package/dist/config-DpfTzcgG.mjs.map +1 -1
  21. package/dist/config-xxVy3IQR.js.map +1 -1
  22. package/dist/registry_v1/config_schema.d.ts +7 -7
  23. package/dist/registry_v1/flags.d.ts +2 -4
  24. package/dist/structure/cli/run-structure.d.ts +1 -1
  25. package/dist/v2/registry/schema_public.d.ts +3600 -3600
  26. package/package.json +4 -19
  27. package/src/cli.test.ts +56 -0
  28. package/src/cli.ts +50 -0
  29. package/src/cmd/build-meta.ts +11 -22
  30. package/src/cmd/build-model.ts +16 -33
  31. package/src/cmd/list-overview-snapshots.ts +24 -28
  32. package/src/cmd/mark-stable.ts +35 -55
  33. package/src/cmd/pack.ts +11 -22
  34. package/src/cmd/publish.ts +35 -49
  35. package/src/cmd/refresh-registry.ts +22 -26
  36. package/src/cmd/restore-overview-from-snapshot.ts +24 -34
  37. package/src/cmd/structure/check.ts +19 -28
  38. package/src/cmd/structure/init.ts +40 -47
  39. package/src/cmd/structure/refresh.ts +45 -36
  40. package/src/cmd/update-deps.ts +22 -12
  41. package/src/cmd/upload-package-v1.ts +42 -60
  42. package/src/registry_v1/flags.ts +7 -7
  43. package/src/structure/cli/run-structure.ts +2 -2
  44. package/src/v2/model/content_conversion.ts +0 -1
  45. package/bin/dev.cmd +0 -3
  46. package/bin/dev.js +0 -6
  47. package/dist/cmd/index.d.ts +0 -28
  48. package/src/cmd/index.ts +0 -31
@@ -1,9 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class BuildMeta extends Command {
3
- static description: string;
4
- static flags: {
5
- modulePath: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
- destination: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
- };
8
- run(): Promise<void>;
9
- }
1
+ import { Command } from 'commander';
2
+ export declare function buildMetaCommand(): Command;
@@ -1,10 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class BuildModel extends Command {
3
- static description: string;
4
- static flags: {
5
- modulePath: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
- sourceBundle: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
- destination: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
- };
9
- run(): Promise<void>;
10
- }
1
+ import { Command } from 'commander';
2
+ export declare function buildModelCommand(): Command;
@@ -1,9 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class ListOverviewSnapshots extends Command {
3
- static description: string;
4
- static flags: {
5
- registry: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
- json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
7
- };
8
- run(): Promise<void>;
9
- }
1
+ import { Command } from 'commander';
2
+ export declare function listOverviewSnapshotsCommand(): Command;
@@ -1,13 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class MarkStable extends Command {
3
- static description: string;
4
- static flags: {
5
- modulePath: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
- channel: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
- "version-override": import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
8
- registry: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
- refresh: import('@oclif/core/interfaces').BooleanFlag<boolean>;
10
- unmark: import('@oclif/core/interfaces').BooleanFlag<boolean>;
11
- };
12
- run(): Promise<void>;
13
- }
1
+ import { Command } from 'commander';
2
+ export declare function markStableCommand(): Command;
@@ -1,9 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class PackBlock extends Command {
3
- static description: string;
4
- static flags: {
5
- modulePath: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
- destinationPath: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
- };
8
- run(): Promise<void>;
9
- }
1
+ import { Command } from 'commander';
2
+ export declare function packCommand(): Command;
@@ -1,12 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class Publish extends Command {
3
- static description: string;
4
- static flags: {
5
- registry: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
- manifest: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
- "version-override": import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
8
- refresh: import('@oclif/core/interfaces').BooleanFlag<boolean>;
9
- unstable: import('@oclif/core/interfaces').BooleanFlag<boolean>;
10
- };
11
- run(): Promise<void>;
12
- }
1
+ import { Command } from 'commander';
2
+ export declare function publishCommand(): Command;
@@ -1,9 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class RefreshRegistry extends Command {
3
- static description: string;
4
- static flags: {
5
- registry: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
- mode: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
- };
8
- run(): Promise<void>;
9
- }
1
+ import { Command } from 'commander';
2
+ export declare function refreshRegistryCommand(): Command;
@@ -1,10 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class RestoreOverviewFromSnapshot extends Command {
3
- static description: string;
4
- static flags: {
5
- registry: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
- snapshot: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
- "skip-confirmation": import('@oclif/core/interfaces').BooleanFlag<boolean>;
8
- };
9
- run(): Promise<void>;
10
- }
1
+ import { Command } from 'commander';
2
+ export declare function restoreOverviewFromSnapshotCommand(): Command;
@@ -1,10 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class StructureCheck extends Command {
3
- static description: string;
4
- static examples: string[];
5
- static strict: boolean;
6
- static flags: {
7
- "sdk-internal": import('@oclif/core/interfaces').BooleanFlag<boolean>;
8
- };
9
- run(): Promise<void>;
10
- }
1
+ import { Command } from 'commander';
2
+ export declare function structureCheckCommand(packageRoot: string): Command;
@@ -1,18 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class StructureInit extends Command {
3
- static description: string;
4
- static examples: string[];
5
- static args: {
6
- path: import('@oclif/core/interfaces').Arg<string | undefined, Record<string, unknown>>;
7
- };
8
- static flags: {
9
- "npm-org": import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
10
- "org-scope": import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
11
- "short-name": import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
12
- "with-software": import('@oclif/core/interfaces').BooleanFlag<boolean>;
13
- "no-software": import('@oclif/core/interfaces').BooleanFlag<boolean>;
14
- platform: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
15
- "non-interactive": import('@oclif/core/interfaces').BooleanFlag<boolean>;
16
- };
17
- run(): Promise<void>;
18
- }
1
+ import { Command } from 'commander';
2
+ export declare function structureInitCommand(packageRoot: string): Command;
@@ -1,11 +1,10 @@
1
- import { Command } from '@oclif/core';
2
- export default class StructureRefresh extends Command {
3
- static description: string;
4
- static examples: string[];
5
- static strict: boolean;
6
- static flags: {
7
- "sdk-internal": import('@oclif/core/interfaces').BooleanFlag<boolean>;
8
- "update-deps-only": import('@oclif/core/interfaces').BooleanFlag<boolean>;
9
- };
10
- run(): Promise<void>;
11
- }
1
+ import { Command } from 'commander';
2
+ import { MiLogger } from '@milaboratories/ts-helpers';
3
+ export declare function runRefresh(opts: {
4
+ paths: string[];
5
+ isSdkInternal: boolean;
6
+ updateDepsOnly: boolean;
7
+ templatesRoot: string;
8
+ logger: MiLogger;
9
+ }): Promise<void>;
10
+ export declare function structureRefreshCommand(packageRoot: string): Command;
@@ -1,4 +1,4 @@
1
- import { Command } from '@oclif/core';
1
+ import { Command } from 'commander';
2
2
  /**
3
3
  * Deprecated. Phase-2 forwarding alias (spec.md § "Coexistence And
4
4
  * Retirement"): delegates to `structure refresh --update-deps-only`,
@@ -6,8 +6,4 @@ import { Command } from '@oclif/core';
6
6
  * semantics. Prints a deprecation warning; will be removed once the
7
7
  * structurer path has been live without surprises.
8
8
  */
9
- export default class UpdateDeps extends Command {
10
- static description: string;
11
- static examples: string[];
12
- run(): Promise<void>;
13
- }
9
+ export declare function updateDepsCommand(packageRoot: string): Command;
@@ -1,14 +1,2 @@
1
- import { Command } from '@oclif/core';
2
- export default class UploadPackageV1 extends Command {
3
- static description: string;
4
- static flags: {
5
- registry: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
6
- organization: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
7
- package: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
8
- version: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
9
- meta: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
10
- file: import('@oclif/core/interfaces').OptionFlag<import('../registry_v1/flags').TargetFile[], import('@oclif/core/interfaces').CustomOptions>;
11
- refresh: import('@oclif/core/interfaces').BooleanFlag<boolean>;
12
- };
13
- run(): Promise<void>;
14
- }
1
+ import { Command } from 'commander';
2
+ export declare function uploadPackageV1Command(): Command;