@ultrst-armada/krnl 1.0.8 → 1.0.9
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 +15 -0
- package/package.json +1 -1
- package/packages/cli/dist/bin/krnl.cjs +2 -0
- package/packages/cli/dist/bin/krnl.js +1 -1
- package/packages/cli/dist/{chunk-3DD775A7.js → chunk-OOVZPIMX.js} +2 -0
- package/packages/cli/dist/index.cjs +2 -0
- package/packages/cli/dist/index.js +1 -1
- package/packages/core/dist/index.cjs +358 -57
- package/packages/core/dist/index.d.cts +150 -1
- package/packages/core/dist/index.d.ts +150 -1
- package/packages/core/dist/index.js +354 -57
- package/packages/core/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,6 +61,21 @@ A stopped service may be restarted. Invalid lifecycle transitions fail determini
|
|
|
61
61
|
|
|
62
62
|
Proxy lifecycle is local client lifecycle. Proxy state is a local cache and proxy events are local subscriptions unless a transport explicitly implements synchronization.
|
|
63
63
|
|
|
64
|
+
## Native Telemetry
|
|
65
|
+
|
|
66
|
+
Every `ServiceFacade` includes a framework-owned telemetry controller. Services do not implement telemetry APIs individually.
|
|
67
|
+
|
|
68
|
+
```ts
|
|
69
|
+
service.telemetry.enable();
|
|
70
|
+
service.telemetry.setMode('standard' | 'detailed' | 'profile' | 'off');
|
|
71
|
+
service.telemetry.status();
|
|
72
|
+
service.telemetry.snapshot();
|
|
73
|
+
service.telemetry.reset();
|
|
74
|
+
service.telemetry.functionalities();
|
|
75
|
+
service.telemetry.functionality('operationName');
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Telemetry is disabled by default. Standard mode records invocation timing, counts, success/error state, correlation IDs, and bounded recent traces. Detailed and profile modes additionally capture capability-detected runtime resource samples such as CPU, memory, and event-loop utilization. Service calls, functionality execution, and functionality orchestrations are instrumented automatically and correlated into trace/span hierarchies. No service-specific telemetry code is required.
|
|
64
79
|
## Validation
|
|
65
80
|
|
|
66
81
|
KrnlTS has two complementary validation layers:
|
package/package.json
CHANGED
|
@@ -921,6 +921,8 @@ var fs5 = __toESM(require("fs"), 1);
|
|
|
921
921
|
var path6 = __toESM(require("path"), 1);
|
|
922
922
|
var import_gutts = require("@dinilmusick/gutts");
|
|
923
923
|
var gutts = __toESM(require("@dinilmusick/gutts"), 1);
|
|
924
|
+
var runtimeProcess = typeof globalThis !== "undefined" ? globalThis.process : void 0;
|
|
925
|
+
var runtimePerformance = typeof globalThis !== "undefined" ? globalThis.performance : void 0;
|
|
924
926
|
var asyncHooks = globalThis.process?.getBuiltinModule?.("node:async_hooks");
|
|
925
927
|
var KrnlPackageReconciler = class {
|
|
926
928
|
/**
|
|
@@ -816,6 +816,8 @@ import * as fs3 from "fs";
|
|
|
816
816
|
import * as path4 from "path";
|
|
817
817
|
import { tryParseJson } from "@dinilmusick/gutts";
|
|
818
818
|
import * as gutts from "@dinilmusick/gutts";
|
|
819
|
+
var runtimeProcess = typeof globalThis !== "undefined" ? globalThis.process : void 0;
|
|
820
|
+
var runtimePerformance = typeof globalThis !== "undefined" ? globalThis.performance : void 0;
|
|
819
821
|
var asyncHooks = globalThis.process?.getBuiltinModule?.("node:async_hooks");
|
|
820
822
|
var KrnlPackageReconciler = class {
|
|
821
823
|
/**
|
|
@@ -932,6 +932,8 @@ var fs5 = __toESM(require("fs"), 1);
|
|
|
932
932
|
var path6 = __toESM(require("path"), 1);
|
|
933
933
|
var import_gutts = require("@dinilmusick/gutts");
|
|
934
934
|
var gutts = __toESM(require("@dinilmusick/gutts"), 1);
|
|
935
|
+
var runtimeProcess = typeof globalThis !== "undefined" ? globalThis.process : void 0;
|
|
936
|
+
var runtimePerformance = typeof globalThis !== "undefined" ? globalThis.performance : void 0;
|
|
935
937
|
var asyncHooks = globalThis.process?.getBuiltinModule?.("node:async_hooks");
|
|
936
938
|
var KrnlPackageReconciler = class {
|
|
937
939
|
/**
|