@kb-labs/cli-commands 2.94.0 → 2.96.0

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.
@@ -1,6 +1,7 @@
1
- import { d as CommandManifest, A as AvailabilityCheck, R as RegisteredCommand, l as CommandRegistry, D as DiscoveryResult } from '../discover-CCE84_5E.js';
2
- export { b as CacheFile, c as CommandLookupResult, e as CommandModule, f as CommandType, F as FlagDefinition, G as GlobalFlags, g as PackageCacheEntry, P as ProductGroup, _ as __test, h as discoverManifests, i as discoverManifestsByNamespace, j as findCommand, k as findCommandWithType, r as registry, m as resetInProcCache } from '../discover-CCE84_5E.js';
1
+ import { C as CommandManifest, A as AvailabilityCheck, R as RegisteredCommand, T as TrieBackedRegistry, D as DiscoveryResult } from '../discover-DxmYCrcJ.js';
2
+ export { a as CacheFile, b as CommandModule, F as FlagDefinition, G as GlobalFlags, P as PackageCacheEntry, c as RegistryDiagnostics, d as RouteResult, h as TrieRouter, _ as __test, e as createRegistry, f as discoverManifests, g as discoverManifestsByNamespace, l as levenshtein, i as loadConfig, r as registry, j as resetInProcCache } from '../discover-DxmYCrcJ.js';
3
3
  import { ILogger } from '@kb-labs/core-platform';
4
+ export { Command as SystemCommand, CommandGroup as SystemGroup } from '@kb-labs/shared-command-kit';
4
5
  import '@kb-labs/plugin-contracts';
5
6
 
6
7
  /**
@@ -23,7 +24,12 @@ declare function checkRequires(manifest: CommandManifest, options?: CheckRequire
23
24
 
24
25
  /**
25
26
  * @kb-labs/cli-commands/registry
26
- * Manifest validation and registration with shadowing support
27
+ * Manifest validation and registration with shadowing support (ADR-0015)
28
+ *
29
+ * Key changes vs old version:
30
+ * - canonicalKey = segments.join(':') — includes full path, no subgroup collision
31
+ * - checkNamespaceCollision removed — Trie guarantees structural uniqueness
32
+ * - CommandRegistry replaced with TrieBackedRegistry
27
33
  */
28
34
 
29
35
  interface RegisterManifestsOptions {
@@ -44,16 +50,10 @@ declare function preflightManifests(discoveryResults: DiscoveryResult[], logger?
44
50
  valid: DiscoveryResult[];
45
51
  skipped: SkippedManifest[];
46
52
  };
47
- /**
48
- * Register manifests with shadowing and collision detection
49
- */
50
- declare function registerManifests(discoveryResults: DiscoveryResult[], registry: CommandRegistry, options?: RegisterManifestsOptions & {
53
+ declare function registerManifests(discoveryResults: DiscoveryResult[], registry: TrieBackedRegistry, options?: RegisterManifestsOptions & {
51
54
  logger?: ILogger;
52
55
  }): Promise<ManifestRegistrationResult>;
53
- /**
54
- * Dispose all plugins by calling their dispose hooks
55
- */
56
- declare function disposeAllPlugins(registry: CommandRegistry, logger?: ILogger): Promise<void>;
56
+ declare function disposeAllPlugins(registry: TrieBackedRegistry, logger?: ILogger): Promise<void>;
57
57
 
58
58
  /**
59
59
  * Execute a registered command.
@@ -63,4 +63,4 @@ declare function disposeAllPlugins(registry: CommandRegistry, logger?: ILogger):
63
63
  */
64
64
  declare function runCommand(cmd: RegisteredCommand, ctx: Record<string, unknown>, argv: string[], flags: Record<string, unknown>): Promise<number>;
65
65
 
66
- export { AvailabilityCheck, type CheckRequiresOptions, CommandManifest, DiscoveryResult, type ManifestRegistrationResult, type RegisterManifestsOptions, RegisteredCommand, type SkippedManifest, checkRequires, disposeAllPlugins, preflightManifests, registerManifests, runCommand };
66
+ export { AvailabilityCheck, type CheckRequiresOptions, CommandManifest, DiscoveryResult, type ManifestRegistrationResult, type RegisterManifestsOptions, RegisteredCommand, type SkippedManifest, TrieBackedRegistry, checkRequires, disposeAllPlugins, preflightManifests, registerManifests, runCommand };