@hamak/microkernel-api 0.4.6 → 0.4.8
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/package.json +4 -1
- package/.turbo/turbo-build.log +0 -1
- package/CHANGELOG.md +0 -41
- package/project.json +0 -24
- package/src/index.d.ts +0 -2
- package/src/index.d.ts.map +0 -1
- package/src/index.js +0 -1
- package/src/index.js.map +0 -1
- package/src/index.ts +0 -1
- package/src/types.d.ts +0 -68
- package/src/types.d.ts.map +0 -1
- package/src/types.js +0 -1
- package/src/types.js.map +0 -1
- package/src/types.ts +0 -13
- package/tsconfig.json +0 -11
- package/tsconfig.lib.es2015.json +0 -23
- package/tsconfig.lib.json +0 -24
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hamak/microkernel-api",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Microkernel API - Core interfaces and contracts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
9
12
|
"repository": {
|
|
10
13
|
"type": "git",
|
|
11
14
|
"url": "https://github.com/amah/app-framework.git",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$ tsc -p tsconfig.lib.json && tsc -p tsconfig.lib.es2015.json
|
package/CHANGELOG.md
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
## 0.4.0 (2025-11-10)
|
|
2
|
-
|
|
3
|
-
### 🚀 Features
|
|
4
|
-
|
|
5
|
-
- implement notification plugin with UI and backend components ([c19ffcf](https://github.com/amah/app-framework/commit/c19ffcf))
|
|
6
|
-
- add ES2015 build support and fix TypeScript config for logging packages ([be5e45e](https://github.com/amah/app-framework/commit/be5e45e))
|
|
7
|
-
- complete logging system build and add optional console interception ([f390bc6](https://github.com/amah/app-framework/commit/f390bc6))
|
|
8
|
-
- implement core pluggable logging system (Phase 1) ([2abdc1a](https://github.com/amah/app-framework/commit/2abdc1a))
|
|
9
|
-
|
|
10
|
-
### 🩹 Fixes
|
|
11
|
-
|
|
12
|
-
- add notification packages to workspaces ([97a234d](https://github.com/amah/app-framework/commit/97a234d))
|
|
13
|
-
|
|
14
|
-
### ❤️ Thank You
|
|
15
|
-
|
|
16
|
-
- Amah
|
|
17
|
-
- Claude
|
|
18
|
-
|
|
19
|
-
## 0.3.0 (2025-11-06)
|
|
20
|
-
|
|
21
|
-
### 🚀 Features
|
|
22
|
-
|
|
23
|
-
- migrate from Turbo to Nx 22 with comprehensive monorepo setup ([e63801e](https://github.com/amah/app-framework/commit/e63801e))
|
|
24
|
-
- add Nx Release for automated dependency management ([01d474f](https://github.com/amah/app-framework/commit/01d474f))
|
|
25
|
-
- migrate from Turbo to Nx 22 monorepo orchestration ([d374271](https://github.com/amah/app-framework/commit/d374271))
|
|
26
|
-
- add configurable main padding and resizable sidebar to DashboardLayout ([c1d25bf](https://github.com/amah/app-framework/commit/c1d25bf))
|
|
27
|
-
- add debug logging and version management system ([ea514fc](https://github.com/amah/app-framework/commit/ea514fc))
|
|
28
|
-
- **ui-store:** add STORE_EXTENSIONS_TOKEN for DI-based middleware/reducer registration ([e855bdd](https://github.com/amah/app-framework/commit/e855bdd))
|
|
29
|
-
- Rename package scope from @amk to @hamak and configure npm publishing ([b6040b5](https://github.com/amah/app-framework/commit/b6040b5))
|
|
30
|
-
- Add hybrid local/CI-CD development workflow with bun link ([d09f528](https://github.com/amah/app-framework/commit/d09f528))
|
|
31
|
-
- Add Turborepo for intelligent build orchestration and fix test type errors ([ba41db8](https://github.com/amah/app-framework/commit/ba41db8))
|
|
32
|
-
- Add Redux store integration with ui-store package and demo ([e5aafa8](https://github.com/amah/app-framework/commit/e5aafa8))
|
|
33
|
-
|
|
34
|
-
### 🩹 Fixes
|
|
35
|
-
|
|
36
|
-
- move git config to top-level release.git in nx.json ([1bb2187](https://github.com/amah/app-framework/commit/1bb2187))
|
|
37
|
-
|
|
38
|
-
### ❤️ Thank You
|
|
39
|
-
|
|
40
|
-
- Amah
|
|
41
|
-
- Claude
|
package/project.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@hamak/microkernel-api",
|
|
3
|
-
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"sourceRoot": "packages/microkernel/microkernel-api/src",
|
|
5
|
-
"projectType": "library",
|
|
6
|
-
"targets": {
|
|
7
|
-
"build": {
|
|
8
|
-
"executor": "nx:run-commands",
|
|
9
|
-
"outputs": ["{projectRoot}/dist"],
|
|
10
|
-
"options": {
|
|
11
|
-
"command": "tsc -p tsconfig.lib.json && tsc -p tsconfig.lib.es2015.json",
|
|
12
|
-
"cwd": "{projectRoot}"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"clean": {
|
|
16
|
-
"executor": "nx:run-commands",
|
|
17
|
-
"options": {
|
|
18
|
-
"command": "rm -rf dist",
|
|
19
|
-
"cwd": "{projectRoot}"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"tags": ["type:library", "scope:microkernel"]
|
|
24
|
-
}
|
package/src/index.d.ts
DELETED
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/src/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './types';
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './types';
|
package/src/types.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export type Token<T = any> = string | symbol | {
|
|
2
|
-
new (...args: any[]): T;
|
|
3
|
-
};
|
|
4
|
-
export type CommandRegistry = {
|
|
5
|
-
register(id: string, handler: (...a: any[]) => any): void;
|
|
6
|
-
run(id: string, ...a: any[]): any;
|
|
7
|
-
has(id: string): boolean;
|
|
8
|
-
};
|
|
9
|
-
export type ViewRegistry = {
|
|
10
|
-
register(slot: string, viewFactory: any): void;
|
|
11
|
-
list(slot: string): any[];
|
|
12
|
-
};
|
|
13
|
-
export type Hooks = {
|
|
14
|
-
on(event: string, fn: (...a: any[]) => void): void;
|
|
15
|
-
off(event: string, fn: (...a: any[]) => void): void;
|
|
16
|
-
emit(event: string, ...a: any[]): void;
|
|
17
|
-
};
|
|
18
|
-
export type PluginManifest = {
|
|
19
|
-
name: string;
|
|
20
|
-
version: string;
|
|
21
|
-
entry: string;
|
|
22
|
-
baseUrl?: string;
|
|
23
|
-
dependsOn?: string[];
|
|
24
|
-
contributes?: {
|
|
25
|
-
commands?: Array<{
|
|
26
|
-
id: string;
|
|
27
|
-
title?: string;
|
|
28
|
-
}>;
|
|
29
|
-
views?: Array<{
|
|
30
|
-
slot: string;
|
|
31
|
-
id: string;
|
|
32
|
-
title?: string;
|
|
33
|
-
}>;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export type ClassProvider<T = any> = {
|
|
37
|
-
provide: Token<T>;
|
|
38
|
-
useClass: {
|
|
39
|
-
new (...args: any[]): T;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export type ValueProvider<T = any> = {
|
|
43
|
-
provide: Token<T>;
|
|
44
|
-
useValue: T;
|
|
45
|
-
};
|
|
46
|
-
export type FactoryProvider<T = any> = {
|
|
47
|
-
provide: Token<T>;
|
|
48
|
-
useFactory: (...deps: any[]) => T;
|
|
49
|
-
deps?: Token[];
|
|
50
|
-
};
|
|
51
|
-
export type Provider<T = any> = ClassProvider<T> | ValueProvider<T> | FactoryProvider<T>;
|
|
52
|
-
export type ProvidedServices = {
|
|
53
|
-
resolve<T>(token: Token<T>): T;
|
|
54
|
-
commands: CommandRegistry;
|
|
55
|
-
views: ViewRegistry;
|
|
56
|
-
hooks: Hooks;
|
|
57
|
-
env?: Record<string, any>;
|
|
58
|
-
};
|
|
59
|
-
export type ActivateContext = ProvidedServices;
|
|
60
|
-
export interface IHost {
|
|
61
|
-
loadPlugins(manifests: Array<string | PluginManifest>): Promise<void>;
|
|
62
|
-
bootstrapAllAtRoot(): Promise<void>;
|
|
63
|
-
createChildHost(overrides?: Provider[], env?: Record<string, any>): IChildHost;
|
|
64
|
-
}
|
|
65
|
-
export interface IChildHost {
|
|
66
|
-
bootstrap(pluginNames?: string[] | 'all'): Promise<void>;
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=types.d.ts.map
|
package/src/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CAAC,CAAC,GAAG,GAAG,IAAI,MAAM,GAAG,MAAM,GAAG;IAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,CAAC;AAC3E,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IAAC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;CAAE,CAAC;AAC1J,MAAM,MAAM,YAAY,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,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C,IAAI,CAAC,CAAC;CAAE"}
|
package/src/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/src/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":""}
|
package/src/types.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type Token<T = any> = string | symbol | { new (...args: any[]): T };
|
|
2
|
-
export type CommandRegistry = { register(id: string, handler: (...a: any[]) => any): void; run(id: string, ...a: any[]): any; has(id: string): boolean; };
|
|
3
|
-
export type ViewRegistry = { register(slot: string, viewFactory: any): void; list(slot: string): any[]; };
|
|
4
|
-
export type Hooks = { on(event: string, fn: (...a: any[]) => void): void; off(event: string, fn: (...a: any[]) => void): void; emit(event: string, ...a: any[]): void; };
|
|
5
|
-
export type PluginManifest = { name: string; version: string; entry: string; baseUrl?: string; dependsOn?: string[]; contributes?: { commands?: Array<{ id: string; title?: string }>; views?: Array<{ slot: string; id: string; title?: string }>; }; };
|
|
6
|
-
export type ClassProvider<T = any> = { provide: Token<T>; useClass: { new (...args: any[]): T } };
|
|
7
|
-
export type ValueProvider<T = any> = { provide: Token<T>; useValue: T };
|
|
8
|
-
export type FactoryProvider<T = any> = { provide: Token<T>; useFactory: (...deps: any[]) => T; deps?: Token[] };
|
|
9
|
-
export type Provider<T = any> = ClassProvider<T> | ValueProvider<T> | FactoryProvider<T>;
|
|
10
|
-
export type ProvidedServices = { resolve<T>(token: Token<T>): T; commands: CommandRegistry; views: ViewRegistry; hooks: Hooks; env?: Record<string, any>; };
|
|
11
|
-
export type ActivateContext = ProvidedServices;
|
|
12
|
-
export interface IHost { loadPlugins(manifests: Array<string | PluginManifest>): Promise<void>; bootstrapAllAtRoot(): Promise<void>; createChildHost(overrides?: Provider[], env?: Record<string, any>): IChildHost; }
|
|
13
|
-
export interface IChildHost { bootstrap(pluginNames?: string[] | 'all'): Promise<void>; }
|
package/tsconfig.json
DELETED
package/tsconfig.lib.es2015.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.lib.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "ES2015",
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2015",
|
|
7
|
-
"DOM"
|
|
8
|
-
],
|
|
9
|
-
"outDir": "./dist/es2015",
|
|
10
|
-
"declaration": false,
|
|
11
|
-
"declarationMap": false,
|
|
12
|
-
"sourceMap": false,
|
|
13
|
-
"downlevelIteration": true,
|
|
14
|
-
"composite": false
|
|
15
|
-
},
|
|
16
|
-
"include": [
|
|
17
|
-
"src/**/*.ts"
|
|
18
|
-
],
|
|
19
|
-
"exclude": [
|
|
20
|
-
"node_modules",
|
|
21
|
-
"dist"
|
|
22
|
-
]
|
|
23
|
-
}
|
package/tsconfig.lib.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"lib": ["ES2020", "DOM"],
|
|
5
|
-
"module": "ESNext",
|
|
6
|
-
"moduleResolution": "Bundler",
|
|
7
|
-
"rootDir": "./src",
|
|
8
|
-
"outDir": "./dist",
|
|
9
|
-
"declaration": true,
|
|
10
|
-
"declarationMap": true,
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"strict": true,
|
|
13
|
-
"esModuleInterop": true,
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"types": []
|
|
16
|
-
},
|
|
17
|
-
"include": [
|
|
18
|
-
"src/**/*.ts"
|
|
19
|
-
],
|
|
20
|
-
"exclude": [
|
|
21
|
-
"node_modules",
|
|
22
|
-
"dist"
|
|
23
|
-
]
|
|
24
|
-
}
|