@ultrst-armada/krnl 1.0.1 → 1.0.3
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 +67 -65
- package/package.json +13 -9
- package/packages/cli/dist/bin/krnl.cjs +1535 -9508
- package/packages/cli/dist/bin/krnl.js +55 -1915
- package/packages/cli/dist/chunk-6SHSECXR.js +1628 -0
- package/packages/cli/dist/index.cjs +1244 -7373
- package/packages/cli/dist/index.d.cts +45 -2
- package/packages/cli/dist/index.d.ts +45 -2
- package/packages/cli/dist/index.js +5 -20
- package/packages/cli/package.json +17 -10
- package/packages/core/dist/index.cjs +3039 -141
- package/packages/core/dist/index.d.cts +633 -27
- package/packages/core/dist/index.d.ts +633 -27
- package/packages/core/dist/index.js +3028 -139
- package/packages/core/package.json +15 -7
- package/packages/create-krnl/dist/index.cjs +322 -316
- package/packages/create-krnl/dist/index.js +322 -316
- package/packages/create-krnl/package.json +5 -3
- package/packages/eslint-plugin/dist/index.cjs +17 -55
- package/packages/eslint-plugin/dist/index.d.cts +8 -43
- package/packages/eslint-plugin/dist/index.d.ts +8 -43
- package/packages/eslint-plugin/dist/index.js +17 -55
- package/packages/eslint-plugin/package.json +5 -4
- package/packages/validate/dist/index.cjs +692 -361
- package/packages/validate/dist/index.d.cts +12 -14
- package/packages/validate/dist/index.d.ts +12 -14
- package/packages/validate/dist/index.js +692 -361
- package/packages/validate/package.json +14 -7
- package/packages/cli/dist/K_ENT_Entity-PQ5MURQY-ZG6FZXXX.js +0 -13
- package/packages/cli/dist/K_LIB_Krnl_Aiko_Client-OPZAVZCW-K4CRQYA5.js +0 -8
- package/packages/cli/dist/K_LIB_Krnl_Ep_Tools-ROOE2TQF-LNPXZYOE.js +0 -110
- package/packages/cli/dist/K_LIB_Krnl_Frontend_Builder-2ZDUH6PF-3ALZPNX4.js +0 -11
- package/packages/cli/dist/K_LIB_Krnl_Frontend_Generator-UYNRNX2X-PJTICYSW.js +0 -11
- package/packages/cli/dist/K_LIB_Krnl_Registry_Client-NXV6D2QW-M5TYU55O.js +0 -8
- package/packages/cli/dist/K_LIB_Krnl_SubApp_Engine-7HR5HWW2-H6STOXRK.js +0 -20
- package/packages/cli/dist/K_LIB_Krnl_SubApp_Registry-7XYGDKJK-XPJXSF7D.js +0 -19
- package/packages/cli/dist/K_LIB_Krnl_SubApp_Worker_Host-CQVTGGG7-CUYGTWOW.js +0 -7
- package/packages/cli/dist/K_LIB_Krnl_System_App_Adapter-M6FJKLGU-VR6T4N6J.js +0 -17
- package/packages/cli/dist/K_LIB_Krnl_System_Base_Functionality_APIs-ZZUZ6ZG5-RLJ4QWDP.js +0 -58
- package/packages/cli/dist/K_LIB_Krnl_System_Magnetic_Loader-XBQO2KXF-BOQGUASC.js +0 -22
- package/packages/cli/dist/K_LIB_Krnl_System_Unified_Http_Adapter-RCEGP3OG-XJI7KIT5.js +0 -8
- package/packages/cli/dist/K_LIB_Krnl_Telemetry-77FRZ3KV-K5VCWAFW.js +0 -9
- package/packages/cli/dist/chunk-3TRM6CYL.js +0 -152
- package/packages/cli/dist/chunk-5JDK35TG.js +0 -3872
- package/packages/cli/dist/chunk-63PTK33I.js +0 -997
- package/packages/cli/dist/chunk-6NIKAMUZ.js +0 -82
- package/packages/cli/dist/chunk-BOXWWXQG.js +0 -400
- package/packages/cli/dist/chunk-EEKLK7QJ.js +0 -565
- package/packages/cli/dist/chunk-EG7T2IAD.js +0 -107
- package/packages/cli/dist/chunk-F5EHXE2O.js +0 -1036
- package/packages/cli/dist/chunk-F65ANSQG.js +0 -269
- package/packages/cli/dist/chunk-FDNCADFE.js +0 -71
- package/packages/cli/dist/chunk-GDLRMDAN.js +0 -127
- package/packages/cli/dist/chunk-HWMTCMOS.js +0 -656
- package/packages/cli/dist/chunk-I74QIQOD.js +0 -5536
- package/packages/cli/dist/chunk-JTLSTO25.js +0 -71
- package/packages/cli/dist/chunk-JULBBJ27.js +0 -1033
- package/packages/cli/dist/chunk-OHVMVRBP.js +0 -117
- package/packages/cli/dist/chunk-P2PCLEKX.js +0 -666
- package/packages/cli/dist/chunk-PJQIUOX2.js +0 -7767
- package/packages/cli/dist/chunk-PPOF3DJW.js +0 -471
- package/packages/cli/dist/chunk-Q45257P6.js +0 -173
- package/packages/cli/dist/chunk-QNROWGBI.js +0 -1036
- package/packages/cli/dist/chunk-RJNYUXZD.js +0 -977
- package/packages/cli/dist/chunk-SRTOPJ5W.js +0 -104
- package/packages/cli/dist/chunk-TCEX3MPS.js +0 -702
- package/packages/cli/dist/chunk-TNOAJO2J.js +0 -675
- package/packages/cli/dist/chunk-UR2SUCSF.js +0 -701
- package/packages/cli/dist/chunk-X5LOIFM7.js +0 -68
- package/packages/cli/dist/chunk-XIRFOO3H.js +0 -589
- package/packages/cli/dist/chunk-ZAAV3JXQ.js +0 -809
- package/packages/core/dist/K_ENT_Entity-4MB7CU4A.js +0 -12
- package/packages/core/dist/K_ENT_Entity-DEJGIDGH.js +0 -12
- package/packages/core/dist/K_ENT_Entity-FXZO5UZ2.js +0 -12
- package/packages/core/dist/K_ENT_Entity-HDSCXC5F.js +0 -12
- package/packages/core/dist/K_ENT_Entity-JILABHLW.js +0 -12
- package/packages/core/dist/K_ENT_Entity-PQ5MURQY.js +0 -13
- package/packages/core/dist/K_ENT_Entity-ROAKDIHW.js +0 -12
- package/packages/core/dist/K_ENT_Entity-TBVFSKDV.js +0 -12
- package/packages/core/dist/K_ENT_Entity-ZFLKG3JO.js +0 -12
- package/packages/core/dist/K_LIB_Krnl_Aiko_Client-OPZAVZCW.js +0 -8
- package/packages/core/dist/K_LIB_Krnl_Ep_Tools-ROOE2TQF.js +0 -110
- package/packages/core/dist/K_LIB_Krnl_Frontend_Builder-2ZDUH6PF.js +0 -9
- package/packages/core/dist/K_LIB_Krnl_Frontend_Generator-UYNRNX2X.js +0 -9
- package/packages/core/dist/K_LIB_Krnl_Registry_Client-NXV6D2QW.js +0 -8
- package/packages/core/dist/K_LIB_Krnl_SubApp_Engine-7HR5HWW2.js +0 -20
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-4C6GBQAG.js +0 -18
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-6V23A6F6.js +0 -18
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-7XYGDKJK.js +0 -19
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-DYLLC5G2.js +0 -18
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-F4FOFAUP.js +0 -18
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-FBOXXMI3.js +0 -18
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-Q73BWLNP.js +0 -18
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-QM2C4MVA.js +0 -18
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-QUGI6SMP.js +0 -18
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-RGMTBHNP.js +0 -18
- package/packages/core/dist/K_LIB_Krnl_SubApp_Registry-RWR7UNDW.js +0 -18
- package/packages/core/dist/K_LIB_Krnl_SubApp_Worker_Host-CQVTGGG7.js +0 -7
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-32MFJJ5Z.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-4J4CEWRY.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-A366YHF2.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-LK4LYJHI.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-M6FJKLGU.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-NW3K63II.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-QDHTI5ZV.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-VHCT6VIW.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-WBRKF24R.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-XKYQYT6Q.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_App_Adapter-Z2PWZYDZ.js +0 -17
- package/packages/core/dist/K_LIB_Krnl_System_Base_Functionality_APIs-ZZUZ6ZG5.js +0 -58
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-2EZU7QF4.js +0 -21
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-6G3AQNAV.js +0 -21
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-B2NZMQUG.js +0 -21
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-C2RABMZP.js +0 -21
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-HHE3NZ4F.js +0 -21
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-LHFGR6WK.js +0 -21
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-M74BLM3N.js +0 -21
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-PT6ZA6EA.js +0 -21
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-SP52V3CX.js +0 -21
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-XBQO2KXF.js +0 -22
- package/packages/core/dist/K_LIB_Krnl_System_Magnetic_Loader-YNSEUHJJ.js +0 -21
- package/packages/core/dist/K_LIB_Krnl_System_Unified_Http_Adapter-M6SBHIVA.js +0 -8
- package/packages/core/dist/K_LIB_Krnl_System_Unified_Http_Adapter-RCEGP3OG.js +0 -8
- package/packages/core/dist/K_LIB_Krnl_Telemetry-77FRZ3KV.js +0 -9
- package/packages/core/dist/chunk-33L2J7V7.js +0 -82
- package/packages/core/dist/chunk-3ES4K2ZP.js +0 -817
- package/packages/core/dist/chunk-3SMHVVLL.js +0 -82
- package/packages/core/dist/chunk-3UEZ7JQA.js +0 -4877
- package/packages/core/dist/chunk-3XIE6KBD.js +0 -4877
- package/packages/core/dist/chunk-46ZLCML6.js +0 -107
- package/packages/core/dist/chunk-4UEL3DWJ.js +0 -107
- package/packages/core/dist/chunk-54GWZ5PC.js +0 -82
- package/packages/core/dist/chunk-6QCYRS5L.js +0 -127
- package/packages/core/dist/chunk-6ULMHNXR.js +0 -104
- package/packages/core/dist/chunk-7WUETJEV.js +0 -117
- package/packages/core/dist/chunk-A5KRAYDB.js +0 -107
- package/packages/core/dist/chunk-ANEAZ3PO.js +0 -107
- package/packages/core/dist/chunk-BE76RL6F.js +0 -82
- package/packages/core/dist/chunk-CIARVYDO.js +0 -107
- package/packages/core/dist/chunk-CR2ANE62.js +0 -107
- package/packages/core/dist/chunk-DI27MOR7.js +0 -173
- package/packages/core/dist/chunk-E6RLFHM5.js +0 -596
- package/packages/core/dist/chunk-EELAPMNV.js +0 -4877
- package/packages/core/dist/chunk-ENZ2RQVJ.js +0 -107
- package/packages/core/dist/chunk-F2U6CX4F.js +0 -4877
- package/packages/core/dist/chunk-FKG64OHL.js +0 -82
- package/packages/core/dist/chunk-FYAZJYM5.js +0 -772
- package/packages/core/dist/chunk-G4NP4RDQ.js +0 -82
- package/packages/core/dist/chunk-GADIRLRS.js +0 -473
- package/packages/core/dist/chunk-GR6CSLQJ.js +0 -772
- package/packages/core/dist/chunk-HDS7AT6O.js +0 -772
- package/packages/core/dist/chunk-HIMEZUU2.js +0 -71
- package/packages/core/dist/chunk-IB4UHG5I.js +0 -596
- package/packages/core/dist/chunk-J7ZYNVRS.js +0 -772
- package/packages/core/dist/chunk-JVLZU4K7.js +0 -604
- package/packages/core/dist/chunk-JYXXI7Q3.js +0 -82
- package/packages/core/dist/chunk-K54K2KZW.js +0 -192
- package/packages/core/dist/chunk-K6VHLBNH.js +0 -3316
- package/packages/core/dist/chunk-KCBP7ZYA.js +0 -596
- package/packages/core/dist/chunk-KFQGP6VL.js +0 -33
- package/packages/core/dist/chunk-KIUEUI7K.js +0 -82
- package/packages/core/dist/chunk-LB67NIZP.js +0 -949
- package/packages/core/dist/chunk-LDTYFUNW.js +0 -596
- package/packages/core/dist/chunk-MLVWARD4.js +0 -596
- package/packages/core/dist/chunk-MPYVXHKO.js +0 -2777
- package/packages/core/dist/chunk-MRQ3MITU.js +0 -772
- package/packages/core/dist/chunk-MVUN7I7O.js +0 -107
- package/packages/core/dist/chunk-NDDOIRW7.js +0 -596
- package/packages/core/dist/chunk-O3KDB5MH.js +0 -3330
- package/packages/core/dist/chunk-OEINUDSE.js +0 -400
- package/packages/core/dist/chunk-OPDENPT4.js +0 -4877
- package/packages/core/dist/chunk-P6XEM2LA.js +0 -429
- package/packages/core/dist/chunk-QKMRSQV4.js +0 -82
- package/packages/core/dist/chunk-R6CCWALL.js +0 -4877
- package/packages/core/dist/chunk-RAMMOO73.js +0 -774
- package/packages/core/dist/chunk-S3FTZFG6.js +0 -772
- package/packages/core/dist/chunk-T2ZVN434.js +0 -4877
- package/packages/core/dist/chunk-TFHLDMIA.js +0 -107
- package/packages/core/dist/chunk-TI3QUCIJ.js +0 -107
- package/packages/core/dist/chunk-TR2BAIGI.js +0 -107
- package/packages/core/dist/chunk-UGVVJKC6.js +0 -4877
- package/packages/core/dist/chunk-V2DX7YIU.js +0 -984
- package/packages/core/dist/chunk-W4IHYUYD.js +0 -772
- package/packages/core/dist/chunk-W6WBG5OY.js +0 -4877
- package/packages/core/dist/chunk-WN3M7O7H.js +0 -3312
- package/packages/core/dist/chunk-WR3NCU7U.js +0 -4877
- package/packages/core/dist/chunk-XC6B6L27.js +0 -82
- package/packages/core/dist/chunk-XNSE64ZY.js +0 -3316
- package/packages/core/dist/chunk-XROES2WN.js +0 -634
- package/packages/core/dist/chunk-XSCKNRCZ.js +0 -5020
- package/packages/core/dist/chunk-XVABPAUZ.js +0 -82
- package/packages/core/dist/chunk-YOBCB5C5.js +0 -596
- package/packages/core/dist/chunk-YUK6Q563.js +0 -666
- package/packages/core/dist/chunk-YXGL3ZEU.js +0 -1030
- package/packages/core/dist/chunk-ZINJ5OUX.js +0 -596
- package/packages/core/dist/chunk-ZPFD4BIQ.js +0 -604
- package/packages/core/dist/chunk-ZQZBFG6F.js +0 -4826
- package/packages/core/dist/chunk-ZZFRJGXM.js +0 -4877
- package/packages/create-krnl/dist/K_ENT_Entity-PQ5MURQY-R2OH4VXE.js +0 -14
- package/packages/create-krnl/dist/K_LIB_Krnl_Aiko_Client-OPZAVZCW-AZM5HF4M.js +0 -9
- package/packages/create-krnl/dist/K_LIB_Krnl_Ep_Tools-ROOE2TQF-X5N6SV2S.js +0 -111
- package/packages/create-krnl/dist/K_LIB_Krnl_Frontend_Builder-2ZDUH6PF-5PFHF4JU.js +0 -12
- package/packages/create-krnl/dist/K_LIB_Krnl_Frontend_Generator-UYNRNX2X-ED33OQPH.js +0 -12
- package/packages/create-krnl/dist/K_LIB_Krnl_Registry_Client-NXV6D2QW-YGQLVR4P.js +0 -9
- package/packages/create-krnl/dist/K_LIB_Krnl_SubApp_Engine-7HR5HWW2-VM7CTU2L.js +0 -21
- package/packages/create-krnl/dist/K_LIB_Krnl_SubApp_Registry-7XYGDKJK-Y2GQFJ7I.js +0 -21
- package/packages/create-krnl/dist/K_LIB_Krnl_SubApp_Worker_Host-CQVTGGG7-L3JQWO54.js +0 -8
- package/packages/create-krnl/dist/K_LIB_Krnl_System_App_Adapter-M6FJKLGU-KQARASPR.js +0 -19
- package/packages/create-krnl/dist/K_LIB_Krnl_System_Base_Functionality_APIs-ZZUZ6ZG5-OF3IGLVL.js +0 -59
- package/packages/create-krnl/dist/K_LIB_Krnl_System_Magnetic_Loader-XBQO2KXF-JOLHKOEX.js +0 -24
- package/packages/create-krnl/dist/K_LIB_Krnl_System_Unified_Http_Adapter-RCEGP3OG-L46LSHKQ.js +0 -10
- package/packages/create-krnl/dist/K_LIB_Krnl_Telemetry-77FRZ3KV-4JUPRR3X.js +0 -10
- package/packages/create-krnl/dist/chunk-3TRM6CYL.js +0 -152
- package/packages/create-krnl/dist/chunk-3URCB3QS.js +0 -127
- package/packages/create-krnl/dist/chunk-5JDK35TG.js +0 -3872
- package/packages/create-krnl/dist/chunk-A2XAXDOW.js +0 -812
- package/packages/create-krnl/dist/chunk-AN6TMQHG.js +0 -1033
- package/packages/create-krnl/dist/chunk-BOXWWXQG.js +0 -400
- package/packages/create-krnl/dist/chunk-BPTBREBG.js +0 -38
- package/packages/create-krnl/dist/chunk-FDNCADFE.js +0 -71
- package/packages/create-krnl/dist/chunk-JTLSTO25.js +0 -71
- package/packages/create-krnl/dist/chunk-M3NCUIPL.js +0 -107
- package/packages/create-krnl/dist/chunk-N2EONSOC.js +0 -7769
- package/packages/create-krnl/dist/chunk-OHVMVRBP.js +0 -117
- package/packages/create-krnl/dist/chunk-Q45257P6.js +0 -173
- package/packages/create-krnl/dist/chunk-QGM4M3NI.js +0 -37
- package/packages/create-krnl/dist/chunk-RJNYUXZD.js +0 -977
- package/packages/create-krnl/dist/chunk-SRTOPJ5W.js +0 -104
- package/packages/create-krnl/dist/chunk-UPBIGEC3.js +0 -666
- package/packages/create-krnl/dist/chunk-V2DB7UD7.js +0 -82
- package/packages/create-krnl/dist/chunk-WMHLIUI6.js +0 -3644
- package/packages/create-krnl/dist/chunk-XIRFOO3H.js +0 -589
- package/packages/create-krnl/dist/chunk-Y2CEEVZP.js +0 -5536
- package/packages/create-krnl/dist/main-DXUMPBND.js +0 -2217
- package/packages/create-krnl/dist/wrapper-SDF2VKX3.js +0 -31
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@
|
|
3
|
-
"version": "1.0.
|
|
2
|
+
"name": "@ultrst-armada/krnl-validate",
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Deep AST validation and 4-layer function purity engine for Krnl backend services",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
10
11
|
"import": "./dist/index.js",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
+
"require": "./dist/index.cjs",
|
|
13
|
+
"default": "./dist/index.js"
|
|
12
14
|
}
|
|
13
15
|
},
|
|
14
16
|
"publishConfig": {
|
|
15
|
-
"
|
|
17
|
+
"access": "public",
|
|
18
|
+
"registry": "https://registry.npmjs.org/"
|
|
16
19
|
},
|
|
17
20
|
"scripts": {
|
|
18
|
-
"build": "tsup src/index.ts --dts --format esm,cjs --external ts-morph"
|
|
21
|
+
"build": "tsup src/index.ts --dts --format esm,cjs --external ts-morph --clean",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
19
24
|
},
|
|
20
25
|
"dependencies": {
|
|
21
26
|
"ts-morph": "^25.0.1"
|
|
22
27
|
},
|
|
23
28
|
"devDependencies": {
|
|
24
29
|
"tsup": "^8.4.0",
|
|
25
|
-
"typescript": "^5.7.3"
|
|
26
|
-
|
|
30
|
+
"typescript": "^5.7.3",
|
|
31
|
+
"vitest": "^3.1.0"
|
|
32
|
+
},
|
|
33
|
+
"module": "dist/index.js"
|
|
27
34
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Entity
|
|
3
|
-
} from "./chunk-RJNYUXZD.js";
|
|
4
|
-
import "./chunk-BOXWWXQG.js";
|
|
5
|
-
import "./chunk-FDNCADFE.js";
|
|
6
|
-
import "./chunk-5JDK35TG.js";
|
|
7
|
-
import "./chunk-Q45257P6.js";
|
|
8
|
-
import "./chunk-XIRFOO3H.js";
|
|
9
|
-
import "./chunk-JTLSTO25.js";
|
|
10
|
-
import "./chunk-X5LOIFM7.js";
|
|
11
|
-
export {
|
|
12
|
-
Entity
|
|
13
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import "./chunk-X5LOIFM7.js";
|
|
2
|
-
|
|
3
|
-
// ../core/dist/K_LIB_Krnl_Ep_Tools-ROOE2TQF.js
|
|
4
|
-
var KrnlEpTools = {
|
|
5
|
-
calculator: {
|
|
6
|
-
id: "calculator",
|
|
7
|
-
description: "eval arith-expr(str) \u2192 num. use-when: derive numeric val from schema fields.",
|
|
8
|
-
schema: {
|
|
9
|
-
input: { expression: "str: arith expr. ops: +,-,*,/,(). e.g. '(a+b)*c'" },
|
|
10
|
-
output: "num"
|
|
11
|
-
},
|
|
12
|
-
examples: [
|
|
13
|
-
{ input: { expression: "10 + 5 * 2" }, output: 20 },
|
|
14
|
-
{ input: { expression: "(100-30)/7" }, output: 10 }
|
|
15
|
-
],
|
|
16
|
-
execute: (expression) => {
|
|
17
|
-
const sanitized = expression.replace(/[^0-9+\-*/().\s]/g, "");
|
|
18
|
-
try {
|
|
19
|
-
const result = new Function(`return (${sanitized});`)();
|
|
20
|
-
if (typeof result === "number") return result;
|
|
21
|
-
throw new Error("Result is not a number");
|
|
22
|
-
} catch (e) {
|
|
23
|
-
throw new Error(`Math evaluation failed: ${e.message}`);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
jsonCreator: {
|
|
28
|
-
id: "jsonCreator",
|
|
29
|
-
description: "parse(jsonStr) \u2192 obj | merge(obj,base) \u2192 merged. use-when: validate/build payload.",
|
|
30
|
-
schema: {
|
|
31
|
-
input: { jsonStr: "str: valid JSON", mergeWith: "obj? base to merge into" },
|
|
32
|
-
output: "obj"
|
|
33
|
-
},
|
|
34
|
-
examples: [
|
|
35
|
-
{ input: { jsonStr: '{"a":1}' }, output: { a: 1 } },
|
|
36
|
-
{ input: { jsonStr: '{"b":2}', mergeWith: { a: 1 } }, output: { a: 1, b: 2 } }
|
|
37
|
-
],
|
|
38
|
-
execute: (jsonStr, mergeWith) => {
|
|
39
|
-
try {
|
|
40
|
-
const parsed = JSON.parse(jsonStr);
|
|
41
|
-
if (mergeWith && typeof mergeWith === "object") {
|
|
42
|
-
return { ...mergeWith, ...parsed };
|
|
43
|
-
}
|
|
44
|
-
return parsed;
|
|
45
|
-
} catch (e) {
|
|
46
|
-
throw new Error(`JSON validation/parsing failed: ${e.message}`);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
textFormatter: {
|
|
51
|
-
id: "textFormatter",
|
|
52
|
-
description: "render(template,vars) \u2192 str. use-when: replace placeholders in templates.",
|
|
53
|
-
schema: {
|
|
54
|
-
input: { template: "str w/ {{key}} placeholders", variables: "obj mapping keys \u2192 values" },
|
|
55
|
-
output: "str"
|
|
56
|
-
},
|
|
57
|
-
examples: [
|
|
58
|
-
{ input: { template: "hello {{name}}", variables: { name: "alice" } }, output: "hello alice" }
|
|
59
|
-
],
|
|
60
|
-
execute: (template, variables) => {
|
|
61
|
-
let result = template;
|
|
62
|
-
for (const [key, value] of Object.entries(variables)) {
|
|
63
|
-
result = result.replace(new RegExp(`{{\\s*${key}\\s*}}`, "g"), String(value));
|
|
64
|
-
}
|
|
65
|
-
return result;
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
endpointCaller: {
|
|
69
|
-
id: "endpointCaller",
|
|
70
|
-
description: "call(endpointId,payload) \u2192 res. use-when: invoke sibling endpoint in same system.",
|
|
71
|
-
schema: {
|
|
72
|
-
input: { endpointId: "str: target endpoint", payload: "obj: input matching target schema" },
|
|
73
|
-
output: "any"
|
|
74
|
-
},
|
|
75
|
-
examples: [
|
|
76
|
-
{ input: { endpointId: "StoreKey", payload: { name: "test", value: "val" } }, output: { status: "success" } }
|
|
77
|
-
],
|
|
78
|
-
execute: async (system, endpointId, payload) => {
|
|
79
|
-
if (!system || typeof system.call !== "function") {
|
|
80
|
-
throw new Error("System host entity not available or invalid.");
|
|
81
|
-
}
|
|
82
|
-
return await system.call(endpointId, payload, { unwrap: true });
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
healthChecker: {
|
|
86
|
-
id: "healthChecker",
|
|
87
|
-
description: "ping(peerId) \u2192 status. use-when: verify component/sibling system is alive.",
|
|
88
|
-
schema: {
|
|
89
|
-
input: { peerId: "str: peer system identifier" },
|
|
90
|
-
output: "obj"
|
|
91
|
-
},
|
|
92
|
-
examples: [
|
|
93
|
-
{ input: { peerId: "Aiko" }, output: { status: "alive" } }
|
|
94
|
-
],
|
|
95
|
-
execute: async (system, peerId) => {
|
|
96
|
-
if (!system) throw new Error("System host entity not available.");
|
|
97
|
-
const peer = system.getRemoteEntity ? system.getRemoteEntity(peerId) : null;
|
|
98
|
-
if (peer) {
|
|
99
|
-
return await peer.call("heartbeat", {});
|
|
100
|
-
}
|
|
101
|
-
if (system.localFunctionalities?.has("heartbeat")) {
|
|
102
|
-
return await system.call("heartbeat", {});
|
|
103
|
-
}
|
|
104
|
-
throw new Error(`Peer or heartbeat endpoint not found for: ${peerId}`);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
export {
|
|
109
|
-
KrnlEpTools
|
|
110
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
KrnlFrontendBuilder,
|
|
3
|
-
init_K_LIB_Krnl_Frontend_Builder
|
|
4
|
-
} from "./chunk-GDLRMDAN.js";
|
|
5
|
-
import "./chunk-X5LOIFM7.js";
|
|
6
|
-
|
|
7
|
-
// ../core/dist/K_LIB_Krnl_Frontend_Builder-2ZDUH6PF.js
|
|
8
|
-
init_K_LIB_Krnl_Frontend_Builder();
|
|
9
|
-
export {
|
|
10
|
-
KrnlFrontendBuilder
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
KrnlFrontendGenerator,
|
|
3
|
-
init_K_LIB_Krnl_Frontend_Generator
|
|
4
|
-
} from "./chunk-JULBBJ27.js";
|
|
5
|
-
import "./chunk-X5LOIFM7.js";
|
|
6
|
-
|
|
7
|
-
// ../core/dist/K_LIB_Krnl_Frontend_Generator-UYNRNX2X.js
|
|
8
|
-
init_K_LIB_Krnl_Frontend_Generator();
|
|
9
|
-
export {
|
|
10
|
-
KrnlFrontendGenerator
|
|
11
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DefaultEventRegistrar,
|
|
3
|
-
DefaultOperationRegistrar,
|
|
4
|
-
DefaultServiceContainer,
|
|
5
|
-
KrnlSubAppDiscovery,
|
|
6
|
-
KrnlSubAppLifecycle,
|
|
7
|
-
KrnlSubAppValidator,
|
|
8
|
-
createHttpsAppAdapter
|
|
9
|
-
} from "./chunk-BOXWWXQG.js";
|
|
10
|
-
import "./chunk-JTLSTO25.js";
|
|
11
|
-
import "./chunk-X5LOIFM7.js";
|
|
12
|
-
export {
|
|
13
|
-
DefaultEventRegistrar,
|
|
14
|
-
DefaultOperationRegistrar,
|
|
15
|
-
DefaultServiceContainer,
|
|
16
|
-
KrnlSubAppDiscovery,
|
|
17
|
-
KrnlSubAppLifecycle,
|
|
18
|
-
KrnlSubAppValidator,
|
|
19
|
-
createHttpsAppAdapter
|
|
20
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
KrnlSubAppLoader
|
|
3
|
-
} from "./chunk-6NIKAMUZ.js";
|
|
4
|
-
import "./chunk-P2PCLEKX.js";
|
|
5
|
-
import "./chunk-FDNCADFE.js";
|
|
6
|
-
import "./chunk-PJQIUOX2.js";
|
|
7
|
-
import "./chunk-GDLRMDAN.js";
|
|
8
|
-
import "./chunk-I74QIQOD.js";
|
|
9
|
-
import "./chunk-ZAAV3JXQ.js";
|
|
10
|
-
import "./chunk-5JDK35TG.js";
|
|
11
|
-
import "./chunk-Q45257P6.js";
|
|
12
|
-
import "./chunk-3TRM6CYL.js";
|
|
13
|
-
import "./chunk-XIRFOO3H.js";
|
|
14
|
-
import "./chunk-JTLSTO25.js";
|
|
15
|
-
import "./chunk-JULBBJ27.js";
|
|
16
|
-
import "./chunk-X5LOIFM7.js";
|
|
17
|
-
export {
|
|
18
|
-
KrnlSubAppLoader
|
|
19
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
KrnlNonKrnlAppAdapter
|
|
3
|
-
} from "./chunk-EG7T2IAD.js";
|
|
4
|
-
import "./chunk-PJQIUOX2.js";
|
|
5
|
-
import "./chunk-GDLRMDAN.js";
|
|
6
|
-
import "./chunk-I74QIQOD.js";
|
|
7
|
-
import "./chunk-ZAAV3JXQ.js";
|
|
8
|
-
import "./chunk-5JDK35TG.js";
|
|
9
|
-
import "./chunk-Q45257P6.js";
|
|
10
|
-
import "./chunk-3TRM6CYL.js";
|
|
11
|
-
import "./chunk-XIRFOO3H.js";
|
|
12
|
-
import "./chunk-JTLSTO25.js";
|
|
13
|
-
import "./chunk-JULBBJ27.js";
|
|
14
|
-
import "./chunk-X5LOIFM7.js";
|
|
15
|
-
export {
|
|
16
|
-
KrnlNonKrnlAppAdapter
|
|
17
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
adminCommandApi,
|
|
3
|
-
aiOrchestrationApi,
|
|
4
|
-
buildEndpointDefinition,
|
|
5
|
-
deregisterAppApi,
|
|
6
|
-
discoverPeersApi,
|
|
7
|
-
findFreePortsApi,
|
|
8
|
-
getAikoCatalogApi,
|
|
9
|
-
getEndpointDefinitionsApi,
|
|
10
|
-
getFullDocumentationApi,
|
|
11
|
-
getIngressNetworkTopologyApi,
|
|
12
|
-
getLastActionDocsApi,
|
|
13
|
-
getManifestApi,
|
|
14
|
-
getSiblingNetworkTopologyApi,
|
|
15
|
-
getSubAppTopologyApi,
|
|
16
|
-
getTaskListApi,
|
|
17
|
-
getTelemetryLogApi,
|
|
18
|
-
getUsedPortsApi,
|
|
19
|
-
heartbeatApi,
|
|
20
|
-
heartbeatAppApi,
|
|
21
|
-
listAppsApi,
|
|
22
|
-
lookupAppApi,
|
|
23
|
-
registerAppApi,
|
|
24
|
-
setEndpointDefinitionApi,
|
|
25
|
-
shutdownApi,
|
|
26
|
-
systemCommandsCollectorHandler,
|
|
27
|
-
telemetryApi
|
|
28
|
-
} from "./chunk-I74QIQOD.js";
|
|
29
|
-
import "./chunk-Q45257P6.js";
|
|
30
|
-
import "./chunk-X5LOIFM7.js";
|
|
31
|
-
export {
|
|
32
|
-
adminCommandApi,
|
|
33
|
-
aiOrchestrationApi,
|
|
34
|
-
buildEndpointDefinition,
|
|
35
|
-
deregisterAppApi,
|
|
36
|
-
discoverPeersApi,
|
|
37
|
-
findFreePortsApi,
|
|
38
|
-
getAikoCatalogApi,
|
|
39
|
-
getEndpointDefinitionsApi,
|
|
40
|
-
getFullDocumentationApi,
|
|
41
|
-
getIngressNetworkTopologyApi,
|
|
42
|
-
getLastActionDocsApi,
|
|
43
|
-
getManifestApi,
|
|
44
|
-
getSiblingNetworkTopologyApi,
|
|
45
|
-
getSubAppTopologyApi,
|
|
46
|
-
getTaskListApi,
|
|
47
|
-
getTelemetryLogApi,
|
|
48
|
-
getUsedPortsApi,
|
|
49
|
-
heartbeatApi,
|
|
50
|
-
heartbeatAppApi,
|
|
51
|
-
listAppsApi,
|
|
52
|
-
lookupAppApi,
|
|
53
|
-
registerAppApi,
|
|
54
|
-
setEndpointDefinitionApi,
|
|
55
|
-
shutdownApi,
|
|
56
|
-
systemCommandsCollectorHandler,
|
|
57
|
-
telemetryApi
|
|
58
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
KrnlMagneticLoader,
|
|
3
|
-
magneticStorage,
|
|
4
|
-
subappLocalStorage
|
|
5
|
-
} from "./chunk-P2PCLEKX.js";
|
|
6
|
-
import "./chunk-FDNCADFE.js";
|
|
7
|
-
import "./chunk-PJQIUOX2.js";
|
|
8
|
-
import "./chunk-GDLRMDAN.js";
|
|
9
|
-
import "./chunk-I74QIQOD.js";
|
|
10
|
-
import "./chunk-ZAAV3JXQ.js";
|
|
11
|
-
import "./chunk-5JDK35TG.js";
|
|
12
|
-
import "./chunk-Q45257P6.js";
|
|
13
|
-
import "./chunk-3TRM6CYL.js";
|
|
14
|
-
import "./chunk-XIRFOO3H.js";
|
|
15
|
-
import "./chunk-JTLSTO25.js";
|
|
16
|
-
import "./chunk-JULBBJ27.js";
|
|
17
|
-
import "./chunk-X5LOIFM7.js";
|
|
18
|
-
export {
|
|
19
|
-
KrnlMagneticLoader,
|
|
20
|
-
magneticStorage,
|
|
21
|
-
subappLocalStorage
|
|
22
|
-
};
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
KrnlHTTP
|
|
3
|
-
} from "./chunk-XIRFOO3H.js";
|
|
4
|
-
|
|
5
|
-
// ../core/dist/chunk-GADIRLRS.js
|
|
6
|
-
import { exec, spawn } from "child_process";
|
|
7
|
-
import path3 from "path";
|
|
8
|
-
import fs3 from "fs";
|
|
9
|
-
var KrnlShell = class {
|
|
10
|
-
/**
|
|
11
|
-
* Promisified command execution.
|
|
12
|
-
*/
|
|
13
|
-
static exec(cmd, opts = {}) {
|
|
14
|
-
const timeout = opts.timeout || 3e4;
|
|
15
|
-
return new Promise((resolve, reject) => {
|
|
16
|
-
exec(cmd, { ...opts, timeout }, (error, stdout, stderr) => {
|
|
17
|
-
if (error) {
|
|
18
|
-
reject(new Error(`[KrnlShellError] Command failed: ${cmd}
|
|
19
|
-
Exit Code: ${error.code}
|
|
20
|
-
Stderr: ${String(stderr)}`));
|
|
21
|
-
} else {
|
|
22
|
-
resolve({ stdout: String(stdout), stderr: String(stderr) });
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Streaming command execution.
|
|
29
|
-
*/
|
|
30
|
-
static spawn(cmd, args, opts = {}) {
|
|
31
|
-
const child = spawn(cmd, args, opts);
|
|
32
|
-
const promise = new Promise((resolve, reject) => {
|
|
33
|
-
child.on("close", (code, signal) => {
|
|
34
|
-
resolve({ code, signal });
|
|
35
|
-
});
|
|
36
|
-
child.on("error", (err) => {
|
|
37
|
-
reject(err);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
return {
|
|
41
|
-
pid: child.pid,
|
|
42
|
-
kill: (signal) => child.kill(signal),
|
|
43
|
-
promise
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Defines posix vs win32 specific commands.
|
|
48
|
-
*/
|
|
49
|
-
static platform(routing) {
|
|
50
|
-
return process.platform === "win32" ? routing.win32 : routing.posix;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Resolves the full path of a binary.
|
|
54
|
-
*/
|
|
55
|
-
static which(cmd) {
|
|
56
|
-
const envPath = process.env.PATH || "";
|
|
57
|
-
const paths = envPath.split(path3.delimiter);
|
|
58
|
-
const extensions = process.platform === "win32" ? [".exe", ".cmd", ".bat", ""] : [""];
|
|
59
|
-
for (const p of paths) {
|
|
60
|
-
for (const ext of extensions) {
|
|
61
|
-
const fullPath = path3.join(p, `${cmd}${ext}`);
|
|
62
|
-
try {
|
|
63
|
-
if (fs3.existsSync(fullPath) && fs3.statSync(fullPath).isFile()) {
|
|
64
|
-
return fullPath;
|
|
65
|
-
}
|
|
66
|
-
} catch (e) {
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
var KrnlAikoClient = class _KrnlAikoClient {
|
|
74
|
-
baseUrl;
|
|
75
|
-
lastUsedModelId = null;
|
|
76
|
-
constructor(aikoPort, aikoHost = "localhost") {
|
|
77
|
-
this.baseUrl = `http://${aikoHost}:${aikoPort}`;
|
|
78
|
-
}
|
|
79
|
-
static discover(system) {
|
|
80
|
-
const aikoPeer = system.peers?.get("Aiko");
|
|
81
|
-
if (aikoPeer && aikoPeer.address) {
|
|
82
|
-
let addr = aikoPeer.address;
|
|
83
|
-
if (!addr.startsWith("http")) {
|
|
84
|
-
addr = `http://${addr}`;
|
|
85
|
-
}
|
|
86
|
-
try {
|
|
87
|
-
const url = new URL(addr);
|
|
88
|
-
return new _KrnlAikoClient(Number(url.port || 10095), url.hostname);
|
|
89
|
-
} catch (e) {
|
|
90
|
-
console.error("[KrnlAikoClient] Failed to parse discovered Aiko address:", addr, e);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return null;
|
|
94
|
-
}
|
|
95
|
-
async infer(intelligenceSpec, systemPrompt, userPrompt) {
|
|
96
|
-
const client = KrnlHTTP.createClient(this.baseUrl);
|
|
97
|
-
const result = await client.post("/call/infer", {
|
|
98
|
-
intelligenceSpec,
|
|
99
|
-
systemPrompt,
|
|
100
|
-
userPrompt
|
|
101
|
-
});
|
|
102
|
-
if (result && result.status === "success" && result.data && result.data.status === "success" && result.data.payload && result.data.payload.status === "success" && result.data.payload.response) {
|
|
103
|
-
this.lastUsedModelId = result.data.payload.modelId || null;
|
|
104
|
-
return result.data.payload.response;
|
|
105
|
-
}
|
|
106
|
-
const errMsg = result.status === "success" ? result.data?.payload?.message || result.data?.message : result.message;
|
|
107
|
-
throw new Error(errMsg || "Invalid or empty response from Aiko infer endpoint");
|
|
108
|
-
}
|
|
109
|
-
async downrankModel(modelId) {
|
|
110
|
-
try {
|
|
111
|
-
const client = KrnlHTTP.createClient(this.baseUrl);
|
|
112
|
-
await client.post("/call/downrankModel", { modelId });
|
|
113
|
-
} catch (e) {
|
|
114
|
-
console.error("[KrnlAikoClient] Failed to send downrank request to Aiko:", e.message);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
async fetchCatalog() {
|
|
118
|
-
const client = KrnlHTTP.createClient(this.baseUrl);
|
|
119
|
-
const result = await client.post("/call/SessionManager/AgentProfileManager", {
|
|
120
|
-
action: "list"
|
|
121
|
-
});
|
|
122
|
-
if (result && result.status === "success" && result.data && result.data.status === "success" && result.data.profiles) {
|
|
123
|
-
return result.data.profiles;
|
|
124
|
-
}
|
|
125
|
-
return {
|
|
126
|
-
"endpoint-grade-1": { description: "Nano \u2014 simple CRUD" },
|
|
127
|
-
"endpoint-grade-2": { description: "Mini \u2014 standard ops" },
|
|
128
|
-
"endpoint-grade-3": { description: "Standard \u2014 moderate logic" },
|
|
129
|
-
"endpoint-grade-4": { description: "Large \u2014 complex reasoning" },
|
|
130
|
-
"endpoint-grade-5": { description: "Expert \u2014 escalation handler" },
|
|
131
|
-
"orchestrator-standard": { description: "Standard routing" },
|
|
132
|
-
"orchestrator-pro": { description: "Complex routing + escalation" }
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
async isAlive() {
|
|
136
|
-
try {
|
|
137
|
-
const client = KrnlHTTP.createClient(this.baseUrl);
|
|
138
|
-
const result = await client.post("/call/heartbeat", {});
|
|
139
|
-
return result && result.status === "success";
|
|
140
|
-
} catch (e) {
|
|
141
|
-
return false;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
static getNotRunningMessage() {
|
|
145
|
-
return "Aiko is not running. Please start it with: cd ~/Projects/Javascript/Aiko && node src/Aiko.js";
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
export {
|
|
150
|
-
KrnlShell,
|
|
151
|
-
KrnlAikoClient
|
|
152
|
-
};
|