@kuckit/sdk 1.0.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.
- package/README.md +134 -0
- package/dist/index.d.ts +620 -0
- package/dist/index.js +638 -0
- package/package.json +56 -0
- package/src/index.ts +62 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Types
|
|
2
|
+
export type { CoreConfig, CoreCradle, CoreContainer } from './types'
|
|
3
|
+
|
|
4
|
+
// Container factory
|
|
5
|
+
export { createKuckitContainer, disposeContainer, type CreateKuckitOptions } from './core/container'
|
|
6
|
+
|
|
7
|
+
// Core module registration (for advanced use cases)
|
|
8
|
+
export { registerCoreModule } from './core/core.module'
|
|
9
|
+
|
|
10
|
+
// Module system
|
|
11
|
+
export {
|
|
12
|
+
defineKuckitModule,
|
|
13
|
+
loadKuckitModules,
|
|
14
|
+
createModuleShutdownHandler,
|
|
15
|
+
type KuckitModuleMeta,
|
|
16
|
+
type KuckitModuleContext,
|
|
17
|
+
type ApiRegistration,
|
|
18
|
+
type KuckitModuleHooks,
|
|
19
|
+
type KuckitModuleDefinition,
|
|
20
|
+
type ModuleSpec,
|
|
21
|
+
type LoadModulesOptions,
|
|
22
|
+
// Capability system
|
|
23
|
+
type BuiltInCapability,
|
|
24
|
+
type ModuleCapability,
|
|
25
|
+
type LoadedModuleInfo,
|
|
26
|
+
ModuleRegistry,
|
|
27
|
+
getModuleRegistry,
|
|
28
|
+
getModulesWithCapability,
|
|
29
|
+
resetModuleRegistry,
|
|
30
|
+
} from './modules'
|
|
31
|
+
|
|
32
|
+
// Configuration system
|
|
33
|
+
export {
|
|
34
|
+
defineConfig,
|
|
35
|
+
loadKuckitConfig,
|
|
36
|
+
tryLoadKuckitConfig,
|
|
37
|
+
findConfigFile,
|
|
38
|
+
hasUnifiedConfig,
|
|
39
|
+
type KuckitConfig,
|
|
40
|
+
type KuckitModuleConfig,
|
|
41
|
+
type KuckitDiscoveryConfig,
|
|
42
|
+
type KuckitClientConfig,
|
|
43
|
+
type KuckitServerConfig,
|
|
44
|
+
type LoadedKuckitConfig,
|
|
45
|
+
} from './config'
|
|
46
|
+
|
|
47
|
+
// Schema registry for module-owned schemas
|
|
48
|
+
export {
|
|
49
|
+
SchemaRegistry,
|
|
50
|
+
getSchemaRegistry,
|
|
51
|
+
resetSchemaRegistry,
|
|
52
|
+
type SchemaEntry,
|
|
53
|
+
type PgTable,
|
|
54
|
+
} from './schema'
|
|
55
|
+
|
|
56
|
+
// Re-export useful utilities from core packages
|
|
57
|
+
export * as Domain from '@kuckit/domain'
|
|
58
|
+
export * as Application from '@kuckit/application'
|
|
59
|
+
export * as Contracts from '@kuckit/contracts'
|
|
60
|
+
|
|
61
|
+
// Re-export Awilix helpers for module authors
|
|
62
|
+
export { asClass, asFunction, asValue, type AwilixContainer, type Resolver } from 'awilix'
|