@ultrst-armada/krnl 1.0.8 → 1.0.10

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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/krnl",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "private": false,
5
5
  "description": "KrnlTS backend semantic kernel for authoring, validating, and running modular TypeScript services",
6
6
  "type": "module",
@@ -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
  /**
@@ -6,7 +6,7 @@ import {
6
6
  runDev,
7
7
  runGenerate,
8
8
  runValidate
9
- } from "../chunk-3DD775A7.js";
9
+ } from "../chunk-OOVZPIMX.js";
10
10
 
11
11
  // src/bin/krnl.ts
12
12
  import * as path from "path";
@@ -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
  /**
@@ -4,7 +4,7 @@ import {
4
4
  runDev,
5
5
  runGenerate,
6
6
  runValidate
7
- } from "./chunk-3DD775A7.js";
7
+ } from "./chunk-OOVZPIMX.js";
8
8
  export {
9
9
  generateMagneticDeclarations,
10
10
  runBuild,