@ultrst-armada/krnl 1.0.3 → 1.0.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/krnl",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "private": false,
5
5
  "description": "KrnlTS backend semantic kernel for authoring, validating, and running modular TypeScript services",
6
6
  "type": "module",
@@ -77,5 +77,8 @@
77
77
  "repository": {
78
78
  "type": "git",
79
79
  "url": "git+https://github.com/dinilmusick/KrnlTS.git"
80
+ },
81
+ "dependencies": {
82
+ "@dinilmusick/gutts": "^0.1.0"
80
83
  }
81
84
  }
@@ -919,6 +919,20 @@ var path7 = __toESM(require("path"), 1);
919
919
  // ../core/dist/index.js
920
920
  var fs5 = __toESM(require("fs"), 1);
921
921
  var path6 = __toESM(require("path"), 1);
922
+
923
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@0.1.0/node_modules/@dinilmusick/gutts/dist/json/json-parse.js
924
+ function parseJson(text) {
925
+ return JSON.parse(text);
926
+ }
927
+ function tryParseJson(text) {
928
+ try {
929
+ return parseJson(text);
930
+ } catch {
931
+ return void 0;
932
+ }
933
+ }
934
+
935
+ // ../core/dist/index.js
922
936
  var asyncHooks = globalThis.process?.getBuiltinModule?.("node:async_hooks");
923
937
  var KrnlPackageReconciler = class {
924
938
  /**
@@ -931,7 +945,7 @@ var KrnlPackageReconciler = class {
931
945
  for (const mPath of manifests) {
932
946
  try {
933
947
  const raw = fs5.readFileSync(mPath, "utf8");
934
- const json = JSON.parse(raw);
948
+ const json = tryParseJson(raw) ?? {};
935
949
  if (json.dependencies && typeof json.dependencies === "object") {
936
950
  for (const [pkg, ver] of Object.entries(json.dependencies)) {
937
951
  if (!aggregatedDeps[pkg]) aggregatedDeps[pkg] = [];
@@ -6,7 +6,7 @@ import {
6
6
  runDev,
7
7
  runGenerate,
8
8
  runValidate
9
- } from "../chunk-6SHSECXR.js";
9
+ } from "../chunk-GHWYEAPD.js";
10
10
 
11
11
  // src/bin/krnl.ts
12
12
  import * as path from "path";
@@ -814,6 +814,20 @@ async function runValidate(projectRoot = process.cwd()) {
814
814
  // ../core/dist/index.js
815
815
  import * as fs3 from "fs";
816
816
  import * as path4 from "path";
817
+
818
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@0.1.0/node_modules/@dinilmusick/gutts/dist/json/json-parse.js
819
+ function parseJson(text) {
820
+ return JSON.parse(text);
821
+ }
822
+ function tryParseJson(text) {
823
+ try {
824
+ return parseJson(text);
825
+ } catch {
826
+ return void 0;
827
+ }
828
+ }
829
+
830
+ // ../core/dist/index.js
817
831
  var asyncHooks = globalThis.process?.getBuiltinModule?.("node:async_hooks");
818
832
  var KrnlPackageReconciler = class {
819
833
  /**
@@ -826,7 +840,7 @@ var KrnlPackageReconciler = class {
826
840
  for (const mPath of manifests) {
827
841
  try {
828
842
  const raw = fs3.readFileSync(mPath, "utf8");
829
- const json = JSON.parse(raw);
843
+ const json = tryParseJson(raw) ?? {};
830
844
  if (json.dependencies && typeof json.dependencies === "object") {
831
845
  for (const [pkg, ver] of Object.entries(json.dependencies)) {
832
846
  if (!aggregatedDeps[pkg]) aggregatedDeps[pkg] = [];
@@ -930,6 +930,20 @@ var path7 = __toESM(require("path"), 1);
930
930
  // ../core/dist/index.js
931
931
  var fs5 = __toESM(require("fs"), 1);
932
932
  var path6 = __toESM(require("path"), 1);
933
+
934
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@0.1.0/node_modules/@dinilmusick/gutts/dist/json/json-parse.js
935
+ function parseJson(text) {
936
+ return JSON.parse(text);
937
+ }
938
+ function tryParseJson(text) {
939
+ try {
940
+ return parseJson(text);
941
+ } catch {
942
+ return void 0;
943
+ }
944
+ }
945
+
946
+ // ../core/dist/index.js
933
947
  var asyncHooks = globalThis.process?.getBuiltinModule?.("node:async_hooks");
934
948
  var KrnlPackageReconciler = class {
935
949
  /**
@@ -942,7 +956,7 @@ var KrnlPackageReconciler = class {
942
956
  for (const mPath of manifests) {
943
957
  try {
944
958
  const raw = fs5.readFileSync(mPath, "utf8");
945
- const json = JSON.parse(raw);
959
+ const json = tryParseJson(raw) ?? {};
946
960
  if (json.dependencies && typeof json.dependencies === "object") {
947
961
  for (const [pkg, ver] of Object.entries(json.dependencies)) {
948
962
  if (!aggregatedDeps[pkg]) aggregatedDeps[pkg] = [];
@@ -4,7 +4,7 @@ import {
4
4
  runDev,
5
5
  runGenerate,
6
6
  runValidate
7
- } from "./chunk-6SHSECXR.js";
7
+ } from "./chunk-GHWYEAPD.js";
8
8
  export {
9
9
  generateMagneticDeclarations,
10
10
  runBuild,
@@ -54,6 +54,7 @@ __export(index_exports, {
54
54
  createServiceDefinition: () => createServiceDefinition,
55
55
  createServiceFacade: () => createServiceFacade,
56
56
  createServiceProxy: () => createServiceProxy,
57
+ gutts: () => gutts,
57
58
  validateOrchestrationDAG: () => validateOrchestrationDAG,
58
59
  validateServiceDefinition: () => validateServiceDefinition
59
60
  });
@@ -3217,6 +3218,7 @@ var ServiceDiscovery = class {
3217
3218
  // src/discovery/KrnlPackageReconciler.ts
3218
3219
  var fs = __toESM(require("fs"), 1);
3219
3220
  var path = __toESM(require("path"), 1);
3221
+ var import_gutts = require("@dinilmusick/gutts");
3220
3222
  var KrnlPackageReconciler = class {
3221
3223
  /**
3222
3224
  * Scans all manifest.json files across backend and frontend and reconciles root package.json.
@@ -3228,7 +3230,7 @@ var KrnlPackageReconciler = class {
3228
3230
  for (const mPath of manifests) {
3229
3231
  try {
3230
3232
  const raw = fs.readFileSync(mPath, "utf8");
3231
- const json = JSON.parse(raw);
3233
+ const json = (0, import_gutts.tryParseJson)(raw) ?? {};
3232
3234
  if (json.dependencies && typeof json.dependencies === "object") {
3233
3235
  for (const [pkg, ver] of Object.entries(json.dependencies)) {
3234
3236
  if (!aggregatedDeps[pkg]) aggregatedDeps[pkg] = [];
@@ -3627,6 +3629,9 @@ var FunctionalityOrchestration = class {
3627
3629
  }
3628
3630
  }
3629
3631
  };
3632
+
3633
+ // src/index.ts
3634
+ var gutts = __toESM(require("@dinilmusick/gutts"), 1);
3630
3635
  // Annotate the CommonJS export names for ESM import in node:
3631
3636
  0 && (module.exports = {
3632
3637
  FunctionalityOrchestration,
@@ -3653,6 +3658,7 @@ var FunctionalityOrchestration = class {
3653
3658
  createServiceDefinition,
3654
3659
  createServiceFacade,
3655
3660
  createServiceProxy,
3661
+ gutts,
3656
3662
  validateOrchestrationDAG,
3657
3663
  validateServiceDefinition
3658
3664
  });
@@ -1,3 +1,6 @@
1
+ import * as gutts from '@dinilmusick/gutts';
2
+ export { gutts };
3
+
1
4
  /**
2
5
  * @file LifecycleManager.ts
3
6
  * @description Explicit, deterministic lifecycle state machine for services.
@@ -1,3 +1,6 @@
1
+ import * as gutts from '@dinilmusick/gutts';
2
+ export { gutts };
3
+
1
4
  /**
2
5
  * @file LifecycleManager.ts
3
6
  * @description Explicit, deterministic lifecycle state machine for services.
@@ -3156,6 +3156,7 @@ var ServiceDiscovery = class {
3156
3156
  // src/discovery/KrnlPackageReconciler.ts
3157
3157
  import * as fs from "fs";
3158
3158
  import * as path from "path";
3159
+ import { tryParseJson } from "@dinilmusick/gutts";
3159
3160
  var KrnlPackageReconciler = class {
3160
3161
  /**
3161
3162
  * Scans all manifest.json files across backend and frontend and reconciles root package.json.
@@ -3167,7 +3168,7 @@ var KrnlPackageReconciler = class {
3167
3168
  for (const mPath of manifests) {
3168
3169
  try {
3169
3170
  const raw = fs.readFileSync(mPath, "utf8");
3170
- const json = JSON.parse(raw);
3171
+ const json = tryParseJson(raw) ?? {};
3171
3172
  if (json.dependencies && typeof json.dependencies === "object") {
3172
3173
  for (const [pkg, ver] of Object.entries(json.dependencies)) {
3173
3174
  if (!aggregatedDeps[pkg]) aggregatedDeps[pkg] = [];
@@ -3566,6 +3567,9 @@ var FunctionalityOrchestration = class {
3566
3567
  }
3567
3568
  }
3568
3569
  };
3570
+
3571
+ // src/index.ts
3572
+ import * as gutts from "@dinilmusick/gutts";
3569
3573
  export {
3570
3574
  FunctionalityOrchestration,
3571
3575
  HttpProtocolAdapter,
@@ -3591,6 +3595,7 @@ export {
3591
3595
  createServiceDefinition,
3592
3596
  createServiceFacade,
3593
3597
  createServiceProxy,
3598
+ gutts,
3594
3599
  validateOrchestrationDAG,
3595
3600
  validateServiceDefinition
3596
3601
  };
@@ -23,6 +23,7 @@
23
23
  "typecheck": "tsc --noEmit -p tsconfig.json"
24
24
  },
25
25
  "dependencies": {
26
+ "@dinilmusick/gutts": "^0.1.0",
26
27
  "esbuild": "^0.25.0",
27
28
  "p-queue": "^10.0.0",
28
29
  "protobufjs": "^8.7.1",