@futdevpro/ccap 1.1.3545 → 1.1.3557
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/cli/build/_collections/npm-global/npm-global-paths.interface.d.ts +28 -0
- package/cli/build/_collections/npm-global/npm-global-paths.interface.d.ts.map +1 -0
- package/cli/build/_collections/npm-global/npm-global-paths.interface.js +3 -0
- package/cli/build/_collections/npm-global/npm-global-paths.interface.js.map +1 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.d.ts +30 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.d.ts.map +1 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.js +124 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.js.map +1 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.spec.d.ts +8 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.spec.d.ts.map +1 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.spec.js +107 -0
- package/cli/build/_collections/npm-global/npm-global-paths.util.spec.js.map +1 -0
- package/cli/build/_collections/staging/staging-cleanup.util.d.ts +5 -2
- package/cli/build/_collections/staging/staging-cleanup.util.d.ts.map +1 -1
- package/cli/build/_collections/staging/staging-cleanup.util.js +10 -18
- package/cli/build/_collections/staging/staging-cleanup.util.js.map +1 -1
- package/cli/build/_collections/update/update-verify-install.util.d.ts +13 -17
- package/cli/build/_collections/update/update-verify-install.util.d.ts.map +1 -1
- package/cli/build/_collections/update/update-verify-install.util.js +55 -83
- package/cli/build/_collections/update/update-verify-install.util.js.map +1 -1
- package/cli/build/_collections/update/update-verify-install.util.spec.d.ts +3 -0
- package/cli/build/_collections/update/update-verify-install.util.spec.d.ts.map +1 -1
- package/cli/build/_collections/update/update-verify-install.util.spec.js +82 -22
- package/cli/build/_collections/update/update-verify-install.util.spec.js.map +1 -1
- package/cli/build/_collections/update/update-version-check.util.d.ts +6 -4
- package/cli/build/_collections/update/update-version-check.util.d.ts.map +1 -1
- package/cli/build/_collections/update/update-version-check.util.js +10 -20
- package/cli/build/_collections/update/update-version-check.util.js.map +1 -1
- package/client-dist/{agent-instances.module-M37UL5ZS.js → agent-instances.module-NDNG4HC6.js} +2 -2
- package/client-dist/{ca.module-LQG6N5PN.js → ca.module-Y5FJIVDH.js} +2 -2
- package/client-dist/{cc-usage-dashboard.component-26DXWVRC.js → cc-usage-dashboard.component-DAJMNYQD.js} +2 -2
- package/client-dist/{cc.module-UPRIKRHQ.js → cc.module-IHZXPJ3G.js} +2 -2
- package/client-dist/{chunk-PGUTP7BT.js → chunk-2EGN5OIA.js} +2 -2
- package/client-dist/{chunk-2QXYE2FN.js → chunk-2P5XNKSU.js} +2 -2
- package/client-dist/{chunk-IJFDZQDF.js → chunk-2XSAWMFD.js} +2 -2
- package/client-dist/{chunk-ORKQJA72.js → chunk-3EQBM3NI.js} +2 -2
- package/client-dist/chunk-3KUKN53F.js +73 -0
- package/client-dist/chunk-3KUKN53F.js.map +1 -0
- package/client-dist/{chunk-INFA5WNP.js → chunk-3NI6EUGP.js} +2 -2
- package/client-dist/{chunk-BR3NTMK5.js → chunk-5F77NGYL.js} +2 -2
- package/client-dist/{chunk-JVMAUZVZ.js → chunk-5UV722GH.js} +2 -2
- package/client-dist/{chunk-K7HRLFLM.js → chunk-65R5RLWC.js} +2 -2
- package/client-dist/{chunk-OL6YRR73.js → chunk-73EAXEDI.js} +2 -2
- package/client-dist/{chunk-BOKJPFNS.js → chunk-7XUJIV75.js} +2 -2
- package/client-dist/{chunk-XWHBNOEF.js → chunk-ALKI4J2W.js} +2 -2
- package/client-dist/{chunk-IAZNXEV5.js → chunk-C7746ZDD.js} +2 -2
- package/client-dist/{chunk-H3QG3XIB.js → chunk-CEXJQIOB.js} +2 -2
- package/client-dist/{chunk-5SRB4WVQ.js → chunk-CVIA6GIV.js} +2 -2
- package/client-dist/{chunk-OVKQVCOI.js → chunk-CVSG4HQU.js} +2 -2
- package/client-dist/{chunk-QXZTZC7X.js → chunk-D4C3OD6J.js} +2 -2
- package/client-dist/{chunk-QNOKNRNK.js → chunk-EAFI4YMD.js} +2 -2
- package/client-dist/{chunk-JH7JGPFQ.js → chunk-EGAUOFDI.js} +2 -2
- package/client-dist/{chunk-PZQA4FCL.js → chunk-EHT2HQDT.js} +2 -2
- package/client-dist/{chunk-G6TB4WUF.js → chunk-ER7KIQXW.js} +2 -2
- package/client-dist/{chunk-EFN7DGQP.js → chunk-EZ2OC4CA.js} +2 -2
- package/client-dist/{chunk-RY33S66J.js → chunk-F3NE5SNS.js} +2 -2
- package/client-dist/{chunk-ZKLQIMQZ.js → chunk-FCYMPE2S.js} +2 -2
- package/client-dist/{chunk-KHPHT7M2.js → chunk-FHGZ3DH7.js} +2 -2
- package/client-dist/{chunk-NGKAIBKH.js → chunk-FHOK7MOR.js} +2 -2
- package/client-dist/{chunk-5AVCLDUF.js → chunk-GLY7XIEO.js} +2 -2
- package/client-dist/{chunk-5AVCLDUF.js.map → chunk-GLY7XIEO.js.map} +1 -1
- package/client-dist/{chunk-VCKPIPJZ.js → chunk-GWT4NLC6.js} +2 -2
- package/client-dist/{chunk-DEUH7G5Q.js → chunk-HBDXPQIC.js} +2 -2
- package/client-dist/{chunk-F45D4UGB.js → chunk-HIRPZSS5.js} +2 -2
- package/client-dist/{chunk-YHYAAVDM.js → chunk-HO6SWXO3.js} +2 -2
- package/client-dist/{chunk-ZOJX6LQ2.js → chunk-I5DLHGUT.js} +2 -2
- package/client-dist/{chunk-KNMJ3JEH.js → chunk-IB5B5H24.js} +2 -2
- package/client-dist/{chunk-LRNXI5PI.js → chunk-IMILT6U5.js} +2 -2
- package/client-dist/{chunk-XN7YOYCH.js → chunk-IN2UAFFX.js} +2 -2
- package/client-dist/{chunk-BYE5D2MY.js → chunk-IRITCLVX.js} +2 -2
- package/client-dist/{chunk-YOYVBN2F.js → chunk-J66SGQQK.js} +2 -2
- package/client-dist/{chunk-PBFFGCZP.js → chunk-KRSUKF3L.js} +2 -2
- package/client-dist/{chunk-BQI6NBXW.js → chunk-MN6YUX6R.js} +2 -2
- package/client-dist/{chunk-DN67NEP3.js → chunk-O2QGLI7P.js} +2 -2
- package/client-dist/{chunk-OFWL36K2.js → chunk-ODQXZPME.js} +2 -2
- package/client-dist/{chunk-GV2Y7K5T.js → chunk-PB5GJJMR.js} +2 -2
- package/client-dist/{chunk-QFI5KDQS.js → chunk-QBRVPAZB.js} +2 -2
- package/client-dist/{chunk-Y7WEET42.js → chunk-QZVMUDW7.js} +2 -2
- package/client-dist/{chunk-UIZMS7RF.js → chunk-R77S4JY5.js} +2 -2
- package/client-dist/{chunk-ZYNLISTI.js → chunk-RNENIOVE.js} +2 -2
- package/client-dist/{chunk-PMMQZ476.js → chunk-TGBNDSOS.js} +2 -2
- package/client-dist/{chunk-U7KCQYK3.js → chunk-UUJ5VF4E.js} +2 -2
- package/client-dist/{chunk-IPJWDV7N.js → chunk-UV7YDW6X.js} +2 -2
- package/client-dist/{chunk-LLMVHG5S.js → chunk-UXTS2HWD.js} +2 -2
- package/client-dist/{chunk-VHAC2WS6.js → chunk-VSY6ABSB.js} +2 -2
- package/client-dist/{chunk-C527FWS7.js → chunk-WB44FME2.js} +2 -2
- package/client-dist/{chunk-QEMMWIWJ.js → chunk-WHJDIPTM.js} +2 -2
- package/client-dist/{chunk-A747EWKG.js → chunk-YBKSPRVS.js} +2 -2
- package/client-dist/{chunk-N7CMLQRV.js → chunk-YD7R724R.js} +2 -2
- package/client-dist/{chunk-UHFX32HG.js → chunk-YD7T74SA.js} +2 -2
- package/client-dist/{chunk-NL6KS2PG.js → chunk-YTJ626F2.js} +2 -2
- package/client-dist/{consultant.module-5O4QS6MV.js → consultant.module-OCAX7KQT.js} +2 -2
- package/client-dist/{crd.module-JDDURK3D.js → crd.module-LO6GCSNU.js} +2 -2
- package/client-dist/{dashboard.module-CPX4AHDB.js → dashboard.module-SPGBUCMD.js} +2 -2
- package/client-dist/{do.module-GPVMSSUT.js → do.module-KALYZEB6.js} +2 -2
- package/client-dist/{document-library.module-FC5QOT5U.js → document-library.module-HX5BXVZ2.js} +2 -2
- package/client-dist/{embedding-eval.module-4E3DEQE2.js → embedding-eval.module-BZ7QMCT5.js} +2 -2
- package/client-dist/{embedding-registry.module-EVJW6GDG.js → embedding-registry.module-4KH7QGE5.js} +2 -2
- package/client-dist/{err.module-QCEQ4XHL.js → err.module-M4E27OWR.js} +2 -2
- package/client-dist/{feedback.module-7OY7EZAS.js → feedback.module-E7FYACM4.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-WCA4GRIQ.js → host-runtime-mcp.module-AV3EO5I3.js} +2 -2
- package/client-dist/index.html +1 -1
- package/client-dist/{live-dev-pipeline.module-CWOXURFE.js → live-dev-pipeline.module-EAH5255G.js} +2 -2
- package/client-dist/{logs.module-LZA7HKW2.js → logs.module-KONMW55W.js} +2 -2
- package/client-dist/main-4IV3NJMV.js +7 -0
- package/client-dist/main-4IV3NJMV.js.map +7 -0
- package/client-dist/{master-control-remote-poc.module-ZXTIM7U2.js → master-control-remote-poc.module-3KAKM6EL.js} +2 -2
- package/client-dist/{mobile-app.module-GYANFQRM.js → mobile-app.module-C7IMUTOE.js} +2 -2
- package/client-dist/{model-registry.module-GFN6PSBG.js → model-registry.module-A35YFVEE.js} +2 -2
- package/client-dist/{oc.module-FLPI4WQK.js → oc.module-XT7VDCSU.js} +2 -2
- package/client-dist/{orc.module-GF3YPUTO.js → orc.module-4YGRTRV6.js} +2 -2
- package/client-dist/{project-management.module-JCP3QYMC.js → project-management.module-LI3L4WCD.js} +2 -2
- package/client-dist/project-source-routed.module-CJB4YJND.js +2 -0
- package/client-dist/{scheduler.module-SRO6H5K6.js → scheduler.module-HEG5JCVO.js} +2 -2
- package/client-dist/{session.module-VQ7PBBDQ.js → session.module-DEIGFE2V.js} +2 -2
- package/client-dist/{set.module-P76APIOK.js → set.module-DSD6PIYI.js} +2 -2
- package/client-dist/{setup.module-VTMU43WO.js → setup.module-WDIRWV32.js} +2 -2
- package/client-dist/{terminals.module-AAU3GPWE.js → terminals.module-4KEH5NED.js} +2 -2
- package/client-dist/{voice-notes-poc.module-IGR2R6XD.js → voice-notes-poc.module-UWGARHN5.js} +2 -2
- package/client-dist/{wfs.module-J34NQGDG.js → wfs.module-XAEMCUIF.js} +2 -2
- package/package.json +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_collections/utils/elevenlabs-tts.util.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_collections/utils/elevenlabs-tts.util.js +17 -0
- package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_collections/utils/elevenlabs-tts.util.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/code-search/_collections/consts/code-search-tool-schema.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/code-search/_collections/consts/code-search-tool-schema.const.js +3 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/code-search/_collections/consts/code-search-tool-schema.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/environment-readiness/_collections/consts/environment-readiness-tool-definition.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/environment-readiness/_collections/consts/environment-readiness-tool-definition.const.js +3 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/environment-readiness/_collections/consts/environment-readiness-tool-definition.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/exec/_collections/consts/exec-tool-usage-rules.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/exec/_collections/consts/exec-tool-usage-rules.const.js +5 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/exec/_collections/consts/exec-tool-usage-rules.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-explore/_collections/consts/ffe-explore-tool-usage-rules.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-explore/_collections/consts/ffe-explore-tool-usage-rules.const.js +6 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-explore/_collections/consts/ffe-explore-tool-usage-rules.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-handling/_collections/consts/fh-handling-tool-usage-rules.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-handling/_collections/consts/fh-handling-tool-usage-rules.const.js +6 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-handling/_collections/consts/fh-handling-tool-usage-rules.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-usage-rules.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-usage-rules.const.js +6 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-usage-rules.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.js +3 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.js +14 -12
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.spec.js +19 -15
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/self/_collections/consts/self-tool-definition.const.spec.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.js +20 -1
- package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.spec.js +89 -0
- package/server/build/src/_modules/external-sessions/_modules/ext-message/_collections/utils/cc-assembly.util.spec.js.map +1 -1
- package/client-dist/chunk-SMSOT7W7.js +0 -73
- package/client-dist/chunk-SMSOT7W7.js.map +0 -1
- package/client-dist/main-7TNGY6HW.js +0 -7
- package/client-dist/main-7TNGY6HW.js.map +0 -7
- package/client-dist/project-source-routed.module-H7SKWQ5J.js +0 -2
- /package/client-dist/{agent-instances.module-M37UL5ZS.js.map → agent-instances.module-NDNG4HC6.js.map} +0 -0
- /package/client-dist/{ca.module-LQG6N5PN.js.map → ca.module-Y5FJIVDH.js.map} +0 -0
- /package/client-dist/{cc-usage-dashboard.component-26DXWVRC.js.map → cc-usage-dashboard.component-DAJMNYQD.js.map} +0 -0
- /package/client-dist/{cc.module-UPRIKRHQ.js.map → cc.module-IHZXPJ3G.js.map} +0 -0
- /package/client-dist/{chunk-PGUTP7BT.js.map → chunk-2EGN5OIA.js.map} +0 -0
- /package/client-dist/{chunk-2QXYE2FN.js.map → chunk-2P5XNKSU.js.map} +0 -0
- /package/client-dist/{chunk-IJFDZQDF.js.map → chunk-2XSAWMFD.js.map} +0 -0
- /package/client-dist/{chunk-ORKQJA72.js.map → chunk-3EQBM3NI.js.map} +0 -0
- /package/client-dist/{chunk-INFA5WNP.js.map → chunk-3NI6EUGP.js.map} +0 -0
- /package/client-dist/{chunk-BR3NTMK5.js.map → chunk-5F77NGYL.js.map} +0 -0
- /package/client-dist/{chunk-JVMAUZVZ.js.map → chunk-5UV722GH.js.map} +0 -0
- /package/client-dist/{chunk-K7HRLFLM.js.map → chunk-65R5RLWC.js.map} +0 -0
- /package/client-dist/{chunk-OL6YRR73.js.map → chunk-73EAXEDI.js.map} +0 -0
- /package/client-dist/{chunk-BOKJPFNS.js.map → chunk-7XUJIV75.js.map} +0 -0
- /package/client-dist/{chunk-XWHBNOEF.js.map → chunk-ALKI4J2W.js.map} +0 -0
- /package/client-dist/{chunk-IAZNXEV5.js.map → chunk-C7746ZDD.js.map} +0 -0
- /package/client-dist/{chunk-H3QG3XIB.js.map → chunk-CEXJQIOB.js.map} +0 -0
- /package/client-dist/{chunk-5SRB4WVQ.js.map → chunk-CVIA6GIV.js.map} +0 -0
- /package/client-dist/{chunk-OVKQVCOI.js.map → chunk-CVSG4HQU.js.map} +0 -0
- /package/client-dist/{chunk-QXZTZC7X.js.map → chunk-D4C3OD6J.js.map} +0 -0
- /package/client-dist/{chunk-QNOKNRNK.js.map → chunk-EAFI4YMD.js.map} +0 -0
- /package/client-dist/{chunk-JH7JGPFQ.js.map → chunk-EGAUOFDI.js.map} +0 -0
- /package/client-dist/{chunk-PZQA4FCL.js.map → chunk-EHT2HQDT.js.map} +0 -0
- /package/client-dist/{chunk-G6TB4WUF.js.map → chunk-ER7KIQXW.js.map} +0 -0
- /package/client-dist/{chunk-EFN7DGQP.js.map → chunk-EZ2OC4CA.js.map} +0 -0
- /package/client-dist/{chunk-RY33S66J.js.map → chunk-F3NE5SNS.js.map} +0 -0
- /package/client-dist/{chunk-ZKLQIMQZ.js.map → chunk-FCYMPE2S.js.map} +0 -0
- /package/client-dist/{chunk-KHPHT7M2.js.map → chunk-FHGZ3DH7.js.map} +0 -0
- /package/client-dist/{chunk-NGKAIBKH.js.map → chunk-FHOK7MOR.js.map} +0 -0
- /package/client-dist/{chunk-VCKPIPJZ.js.map → chunk-GWT4NLC6.js.map} +0 -0
- /package/client-dist/{chunk-DEUH7G5Q.js.map → chunk-HBDXPQIC.js.map} +0 -0
- /package/client-dist/{chunk-F45D4UGB.js.map → chunk-HIRPZSS5.js.map} +0 -0
- /package/client-dist/{chunk-YHYAAVDM.js.map → chunk-HO6SWXO3.js.map} +0 -0
- /package/client-dist/{chunk-ZOJX6LQ2.js.map → chunk-I5DLHGUT.js.map} +0 -0
- /package/client-dist/{chunk-KNMJ3JEH.js.map → chunk-IB5B5H24.js.map} +0 -0
- /package/client-dist/{chunk-LRNXI5PI.js.map → chunk-IMILT6U5.js.map} +0 -0
- /package/client-dist/{chunk-XN7YOYCH.js.map → chunk-IN2UAFFX.js.map} +0 -0
- /package/client-dist/{chunk-BYE5D2MY.js.map → chunk-IRITCLVX.js.map} +0 -0
- /package/client-dist/{chunk-YOYVBN2F.js.map → chunk-J66SGQQK.js.map} +0 -0
- /package/client-dist/{chunk-PBFFGCZP.js.map → chunk-KRSUKF3L.js.map} +0 -0
- /package/client-dist/{chunk-BQI6NBXW.js.map → chunk-MN6YUX6R.js.map} +0 -0
- /package/client-dist/{chunk-DN67NEP3.js.map → chunk-O2QGLI7P.js.map} +0 -0
- /package/client-dist/{chunk-OFWL36K2.js.map → chunk-ODQXZPME.js.map} +0 -0
- /package/client-dist/{chunk-GV2Y7K5T.js.map → chunk-PB5GJJMR.js.map} +0 -0
- /package/client-dist/{chunk-QFI5KDQS.js.map → chunk-QBRVPAZB.js.map} +0 -0
- /package/client-dist/{chunk-Y7WEET42.js.map → chunk-QZVMUDW7.js.map} +0 -0
- /package/client-dist/{chunk-UIZMS7RF.js.map → chunk-R77S4JY5.js.map} +0 -0
- /package/client-dist/{chunk-ZYNLISTI.js.map → chunk-RNENIOVE.js.map} +0 -0
- /package/client-dist/{chunk-PMMQZ476.js.map → chunk-TGBNDSOS.js.map} +0 -0
- /package/client-dist/{chunk-U7KCQYK3.js.map → chunk-UUJ5VF4E.js.map} +0 -0
- /package/client-dist/{chunk-IPJWDV7N.js.map → chunk-UV7YDW6X.js.map} +0 -0
- /package/client-dist/{chunk-LLMVHG5S.js.map → chunk-UXTS2HWD.js.map} +0 -0
- /package/client-dist/{chunk-VHAC2WS6.js.map → chunk-VSY6ABSB.js.map} +0 -0
- /package/client-dist/{chunk-C527FWS7.js.map → chunk-WB44FME2.js.map} +0 -0
- /package/client-dist/{chunk-QEMMWIWJ.js.map → chunk-WHJDIPTM.js.map} +0 -0
- /package/client-dist/{chunk-A747EWKG.js.map → chunk-YBKSPRVS.js.map} +0 -0
- /package/client-dist/{chunk-N7CMLQRV.js.map → chunk-YD7R724R.js.map} +0 -0
- /package/client-dist/{chunk-UHFX32HG.js.map → chunk-YD7T74SA.js.map} +0 -0
- /package/client-dist/{chunk-NL6KS2PG.js.map → chunk-YTJ626F2.js.map} +0 -0
- /package/client-dist/{consultant.module-5O4QS6MV.js.map → consultant.module-OCAX7KQT.js.map} +0 -0
- /package/client-dist/{crd.module-JDDURK3D.js.map → crd.module-LO6GCSNU.js.map} +0 -0
- /package/client-dist/{dashboard.module-CPX4AHDB.js.map → dashboard.module-SPGBUCMD.js.map} +0 -0
- /package/client-dist/{do.module-GPVMSSUT.js.map → do.module-KALYZEB6.js.map} +0 -0
- /package/client-dist/{document-library.module-FC5QOT5U.js.map → document-library.module-HX5BXVZ2.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-4E3DEQE2.js.map → embedding-eval.module-BZ7QMCT5.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-EVJW6GDG.js.map → embedding-registry.module-4KH7QGE5.js.map} +0 -0
- /package/client-dist/{err.module-QCEQ4XHL.js.map → err.module-M4E27OWR.js.map} +0 -0
- /package/client-dist/{feedback.module-7OY7EZAS.js.map → feedback.module-E7FYACM4.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-WCA4GRIQ.js.map → host-runtime-mcp.module-AV3EO5I3.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-CWOXURFE.js.map → live-dev-pipeline.module-EAH5255G.js.map} +0 -0
- /package/client-dist/{logs.module-LZA7HKW2.js.map → logs.module-KONMW55W.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-ZXTIM7U2.js.map → master-control-remote-poc.module-3KAKM6EL.js.map} +0 -0
- /package/client-dist/{mobile-app.module-GYANFQRM.js.map → mobile-app.module-C7IMUTOE.js.map} +0 -0
- /package/client-dist/{model-registry.module-GFN6PSBG.js.map → model-registry.module-A35YFVEE.js.map} +0 -0
- /package/client-dist/{oc.module-FLPI4WQK.js.map → oc.module-XT7VDCSU.js.map} +0 -0
- /package/client-dist/{orc.module-GF3YPUTO.js.map → orc.module-4YGRTRV6.js.map} +0 -0
- /package/client-dist/{project-management.module-JCP3QYMC.js.map → project-management.module-LI3L4WCD.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-H7SKWQ5J.js.map → project-source-routed.module-CJB4YJND.js.map} +0 -0
- /package/client-dist/{scheduler.module-SRO6H5K6.js.map → scheduler.module-HEG5JCVO.js.map} +0 -0
- /package/client-dist/{session.module-VQ7PBBDQ.js.map → session.module-DEIGFE2V.js.map} +0 -0
- /package/client-dist/{set.module-P76APIOK.js.map → set.module-DSD6PIYI.js.map} +0 -0
- /package/client-dist/{setup.module-VTMU43WO.js.map → setup.module-WDIRWV32.js.map} +0 -0
- /package/client-dist/{terminals.module-AAU3GPWE.js.map → terminals.module-4KEH5NED.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-IGR2R6XD.js.map → voice-notes-poc.module-UWGARHN5.js.map} +0 -0
- /package/client-dist/{wfs.module-J34NQGDG.js.map → wfs.module-XAEMCUIF.js.map} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BUG-CLI-VERIFY-WINDOWS-PATH-001 — npm-global path layout detektálás eredménye.
|
|
3
|
+
*
|
|
4
|
+
* Linux/macOS-on: `${prefix}/lib/node_modules/<pkg>/` + `${prefix}/bin/<pkg>`.
|
|
5
|
+
* Windows-on: `${prefix}\node_modules\<pkg>\` + `${prefix}\<pkg>.cmd`.
|
|
6
|
+
*
|
|
7
|
+
* A detektálás megnézi mindkét variánst és visszaadja a létezőt; ha egyik se,
|
|
8
|
+
* a platform-default-tal tér vissza (későbbi mkdir-mentes hibakeresés céljából).
|
|
9
|
+
*/
|
|
10
|
+
export interface CCAP_NpmGlobalLayout_Interface {
|
|
11
|
+
/** Az npm prefix amit detektáltunk (a hívó adta vagy `npm config get prefix`). */
|
|
12
|
+
npmGlobalPrefix: string;
|
|
13
|
+
/**
|
|
14
|
+
* Layout-azonosító:
|
|
15
|
+
* - `unix-lib`: `${prefix}/lib/node_modules/<pkg>/` + `${prefix}/bin/<bin>`
|
|
16
|
+
* - `windows-flat`: `${prefix}\node_modules\<pkg>\` + `${prefix}\<bin>(.cmd|.ps1)`
|
|
17
|
+
*/
|
|
18
|
+
layout: 'unix-lib' | 'windows-flat';
|
|
19
|
+
/** `@futdevpro` scope dir absolútja az aktuális layout-on. */
|
|
20
|
+
scopeDir: string;
|
|
21
|
+
/** `@futdevpro/ccap` package root absolútja az aktuális layout-on. */
|
|
22
|
+
packageDir: string;
|
|
23
|
+
/** Bin shim path az aktuális layout-on (az ELSŐ létező közül). */
|
|
24
|
+
binPath: string;
|
|
25
|
+
/** Az ÖSSZES megpróbált bin candidate (debug-célra). */
|
|
26
|
+
binCandidates: string[];
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=npm-global-paths.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-global-paths.interface.d.ts","sourceRoot":"","sources":["../../../src/_collections/npm-global/npm-global-paths.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,8BAA8B;IAC7C,kFAAkF;IAClF,eAAe,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,MAAM,EAAE,UAAU,GAAG,cAAc,CAAC;IAEpC,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAC;IAEjB,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IAEnB,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;IAEhB,wDAAwD;IACxD,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-global-paths.interface.js","sourceRoot":"","sources":["../../../src/_collections/npm-global/npm-global-paths.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CCAP_NpmGlobalLayout_Interface } from './npm-global-paths.interface';
|
|
2
|
+
/**
|
|
3
|
+
* Platform-aware npm-global path resolver.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CCAP_NpmGlobalPaths_Util {
|
|
6
|
+
/**
|
|
7
|
+
* Az npm globális prefix lekérdezése. `npm config get prefix` synchrón hívás
|
|
8
|
+
* 5s timeout-tal; ha az npm nem elérhető (vagy hibázik), üres stringet ad.
|
|
9
|
+
*/
|
|
10
|
+
static getNpmGlobalPrefix(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Layout detektálás: megpróbálja BOTH a Unix-style (`lib/node_modules/`) és
|
|
13
|
+
* Windows-style (`node_modules/`) layout-ot. Ha bármelyik létezik (a package
|
|
14
|
+
* dir alatt), azt adja vissza. Ha egyik se, a platform-default-tal tér vissza.
|
|
15
|
+
*
|
|
16
|
+
* @param prefixOverride Ha megadva, ezt használja prefix-ként (test seam);
|
|
17
|
+
* különben `getNpmGlobalPrefix()`-szel detektál.
|
|
18
|
+
*/
|
|
19
|
+
static detectLayout(prefixOverride?: string): CCAP_NpmGlobalLayout_Interface;
|
|
20
|
+
/**
|
|
21
|
+
* Convenience: `fs.existsSync` defenzív wrapper (file vagy dir).
|
|
22
|
+
*/
|
|
23
|
+
static dirOrFileExists(p: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Windows VS Linux/macOS detection — utility a recovery-message
|
|
26
|
+
* platform-szelektív parancsoknál.
|
|
27
|
+
*/
|
|
28
|
+
static isWindows(): boolean;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=npm-global-paths.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-global-paths.util.d.ts","sourceRoot":"","sources":["../../../src/_collections/npm-global/npm-global-paths.util.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AA0B9E;;GAEG;AACH,qBAAa,wBAAwB;IAEnC;;;OAGG;IACH,MAAM,CAAC,kBAAkB,IAAI,MAAM;IAYnC;;;;;;;OAOG;IACH,MAAM,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,8BAA8B;IAqD5E;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO;IAQ1C;;;OAGG;IACH,MAAM,CAAC,SAAS,IAAI,OAAO;CAG5B"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CCAP_NpmGlobalPaths_Util = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const child_process_1 = require("child_process");
|
|
6
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
7
|
+
const path = tslib_1.__importStar(require("path"));
|
|
8
|
+
/**
|
|
9
|
+
* BUG-CLI-VERIFY-WINDOWS-PATH-001 (2026-05-11 user-incident) — npm-global
|
|
10
|
+
* path layout SSOT a CLI-ban.
|
|
11
|
+
*
|
|
12
|
+
* Incidens: Windows PowerShell-en a `ccap update` flow `verifyGlobalInstallation`
|
|
13
|
+
* lépése 6 path-t hiányzónak jelölt, MIKÖZBEN az install valójában sikerült és
|
|
14
|
+
* a kliens UI a friss verziót mutatta. Root-cause: a verify util hardcoded
|
|
15
|
+
* Linux/macOS layout-tal számolt (`${prefix}/lib/node_modules/`,
|
|
16
|
+
* `${prefix}/bin/<name>`), de Windows-on npm a flat layout-ot használja
|
|
17
|
+
* (`${prefix}\node_modules\`, `${prefix}\<name>.cmd`).
|
|
18
|
+
*
|
|
19
|
+
* Megoldás: ezen util egyetlen ponton detektálja a layout-ot (probing) és
|
|
20
|
+
* az ÖSSZES többi util (verify, version-check, staging-cleanup, recovery
|
|
21
|
+
* message) ide jön. Pure-static, soha nem dob — minden hibára defenzív
|
|
22
|
+
* fallback (platform-default).
|
|
23
|
+
*/
|
|
24
|
+
/** Az `@futdevpro/ccap` csomag scope + name path-szegmensei. */
|
|
25
|
+
const PACKAGE_SCOPE = '@futdevpro';
|
|
26
|
+
const PACKAGE_NAME = 'ccap';
|
|
27
|
+
/** `npm config get prefix` timeout. */
|
|
28
|
+
const NPM_CONFIG_TIMEOUT_MS = 5000;
|
|
29
|
+
/**
|
|
30
|
+
* Platform-aware npm-global path resolver.
|
|
31
|
+
*/
|
|
32
|
+
class CCAP_NpmGlobalPaths_Util {
|
|
33
|
+
/**
|
|
34
|
+
* Az npm globális prefix lekérdezése. `npm config get prefix` synchrón hívás
|
|
35
|
+
* 5s timeout-tal; ha az npm nem elérhető (vagy hibázik), üres stringet ad.
|
|
36
|
+
*/
|
|
37
|
+
static getNpmGlobalPrefix() {
|
|
38
|
+
try {
|
|
39
|
+
return (0, child_process_1.execSync)('npm config get prefix', {
|
|
40
|
+
encoding: 'utf-8',
|
|
41
|
+
timeout: NPM_CONFIG_TIMEOUT_MS,
|
|
42
|
+
stdio: ['ignore', 'pipe', 'ignore'],
|
|
43
|
+
}).trim();
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return '';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Layout detektálás: megpróbálja BOTH a Unix-style (`lib/node_modules/`) és
|
|
51
|
+
* Windows-style (`node_modules/`) layout-ot. Ha bármelyik létezik (a package
|
|
52
|
+
* dir alatt), azt adja vissza. Ha egyik se, a platform-default-tal tér vissza.
|
|
53
|
+
*
|
|
54
|
+
* @param prefixOverride Ha megadva, ezt használja prefix-ként (test seam);
|
|
55
|
+
* különben `getNpmGlobalPrefix()`-szel detektál.
|
|
56
|
+
*/
|
|
57
|
+
static detectLayout(prefixOverride) {
|
|
58
|
+
const prefix = prefixOverride ?? CCAP_NpmGlobalPaths_Util.getNpmGlobalPrefix();
|
|
59
|
+
// Két candidate layout
|
|
60
|
+
const unixPackageDir = path.join(prefix, 'lib', 'node_modules', PACKAGE_SCOPE, PACKAGE_NAME);
|
|
61
|
+
const winPackageDir = path.join(prefix, 'node_modules', PACKAGE_SCOPE, PACKAGE_NAME);
|
|
62
|
+
let chosenLayout;
|
|
63
|
+
if (CCAP_NpmGlobalPaths_Util.dirOrFileExists(unixPackageDir)) {
|
|
64
|
+
chosenLayout = 'unix-lib';
|
|
65
|
+
}
|
|
66
|
+
else if (CCAP_NpmGlobalPaths_Util.dirOrFileExists(winPackageDir)) {
|
|
67
|
+
chosenLayout = 'windows-flat';
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
// Egyik sincs (cold-start előtt vagy törött install) — platform-default
|
|
71
|
+
chosenLayout = process.platform === 'win32' ? 'windows-flat' : 'unix-lib';
|
|
72
|
+
}
|
|
73
|
+
const scopeDir = chosenLayout === 'unix-lib'
|
|
74
|
+
? path.join(prefix, 'lib', 'node_modules', PACKAGE_SCOPE)
|
|
75
|
+
: path.join(prefix, 'node_modules', PACKAGE_SCOPE);
|
|
76
|
+
const packageDir = path.join(scopeDir, PACKAGE_NAME);
|
|
77
|
+
// Bin candidates (az ELSŐ létezőt adjuk vissza, de mindet megtartjuk debug-célra)
|
|
78
|
+
const binCandidates = chosenLayout === 'unix-lib'
|
|
79
|
+
? [
|
|
80
|
+
// Unix-lib layout: ${prefix}/bin/<name>
|
|
81
|
+
path.join(prefix, 'bin', PACKAGE_NAME),
|
|
82
|
+
// Néhány telepítés .cmd / .ps1-t is generál bin-ben (cross-platform npm)
|
|
83
|
+
path.join(prefix, 'bin', `${PACKAGE_NAME}.cmd`),
|
|
84
|
+
path.join(prefix, 'bin', `${PACKAGE_NAME}.ps1`),
|
|
85
|
+
]
|
|
86
|
+
: [
|
|
87
|
+
// Windows-flat layout: ${prefix}\<name>(.cmd|.ps1|.exe)
|
|
88
|
+
path.join(prefix, `${PACKAGE_NAME}.cmd`),
|
|
89
|
+
path.join(prefix, `${PACKAGE_NAME}.ps1`),
|
|
90
|
+
path.join(prefix, PACKAGE_NAME),
|
|
91
|
+
path.join(prefix, `${PACKAGE_NAME}.exe`),
|
|
92
|
+
];
|
|
93
|
+
const firstExistingBin = binCandidates.find((p) => CCAP_NpmGlobalPaths_Util.dirOrFileExists(p));
|
|
94
|
+
const binPath = firstExistingBin ?? binCandidates[0];
|
|
95
|
+
return {
|
|
96
|
+
npmGlobalPrefix: prefix,
|
|
97
|
+
layout: chosenLayout,
|
|
98
|
+
scopeDir: scopeDir,
|
|
99
|
+
packageDir: packageDir,
|
|
100
|
+
binPath: binPath,
|
|
101
|
+
binCandidates: binCandidates,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Convenience: `fs.existsSync` defenzív wrapper (file vagy dir).
|
|
106
|
+
*/
|
|
107
|
+
static dirOrFileExists(p) {
|
|
108
|
+
try {
|
|
109
|
+
return fs.existsSync(p);
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Windows VS Linux/macOS detection — utility a recovery-message
|
|
117
|
+
* platform-szelektív parancsoknál.
|
|
118
|
+
*/
|
|
119
|
+
static isWindows() {
|
|
120
|
+
return process.platform === 'win32';
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.CCAP_NpmGlobalPaths_Util = CCAP_NpmGlobalPaths_Util;
|
|
124
|
+
//# sourceMappingURL=npm-global-paths.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-global-paths.util.js","sourceRoot":"","sources":["../../../src/_collections/npm-global/npm-global-paths.util.ts"],"names":[],"mappings":";;;;AAAA,iDAAyC;AACzC,+CAAyB;AACzB,mDAA6B;AAI7B;;;;;;;;;;;;;;;GAeG;AAEH,gEAAgE;AAChE,MAAM,aAAa,GAAW,YAAY,CAAC;AAC3C,MAAM,YAAY,GAAW,MAAM,CAAC;AAEpC,uCAAuC;AACvC,MAAM,qBAAqB,GAAW,IAAI,CAAC;AAE3C;;GAEG;AACH,MAAa,wBAAwB;IAEnC;;;OAGG;IACH,MAAM,CAAC,kBAAkB;QACvB,IAAI,CAAC;YACH,OAAO,IAAA,wBAAQ,EAAC,uBAAuB,EAAE;gBACvC,QAAQ,EAAE,OAAO;gBACjB,OAAO,EAAE,qBAAqB;gBAC9B,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;aACpC,CAAC,CAAC,IAAI,EAAE,CAAC;QACZ,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,YAAY,CAAC,cAAuB;QACzC,MAAM,MAAM,GAAW,cAAc,IAAI,wBAAwB,CAAC,kBAAkB,EAAE,CAAC;QAEvF,uBAAuB;QACvB,MAAM,cAAc,GAAW,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,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AY,MAAM,CAAC;gBACxC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,YAAY,MAAM,CAAC;gBACxC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC;gBAC/B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,YAAY,MAAM,CAAC;aACzC,CAAC;QAEJ,MAAM,gBAAgB,GAAuB,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAW,EAAE,CAC7E,wBAAwB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/C,MAAM,OAAO,GAAW,gBAAgB,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;QAE7D,OAAO;YACL,eAAe,EAAE,MAAM;YACvB,MAAM,EAAE,YAAY;YACpB,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,UAAU;YACtB,OAAO,EAAE,OAAO;YAChB,aAAa,EAAE,aAAa;SAC7B,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,CAAS;QAC9B,IAAI,CAAC;YACH,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC1B,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,SAAS;QACd,OAAO,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC;IACtC,CAAC;CACF;AAjGD,4DAiGC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BUG-CLI-VERIFY-WINDOWS-PATH-001 — `CCAP_NpmGlobalPaths_Util.detectLayout`
|
|
3
|
+
* unit-tesztek. Temp prefix-dir-rel szimuláljuk a Unix-style és Windows-flat
|
|
4
|
+
* layout-okat — `process.platform` NEM mock-olunk (a fallback ágban a
|
|
5
|
+
* platform-default érvényesül, ami a CI-en Linux).
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=npm-global-paths.util.spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-global-paths.util.spec.d.ts","sourceRoot":"","sources":["../../../src/_collections/npm-global/npm-global-paths.util.spec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* BUG-CLI-VERIFY-WINDOWS-PATH-001 — `CCAP_NpmGlobalPaths_Util.detectLayout`
|
|
4
|
+
* unit-tesztek. Temp prefix-dir-rel szimuláljuk a Unix-style és Windows-flat
|
|
5
|
+
* layout-okat — `process.platform` NEM mock-olunk (a fallback ágban a
|
|
6
|
+
* platform-default érvényesül, ami a CI-en Linux).
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const tslib_1 = require("tslib");
|
|
10
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
11
|
+
const os = tslib_1.__importStar(require("os"));
|
|
12
|
+
const path = tslib_1.__importStar(require("path"));
|
|
13
|
+
const npm_global_paths_util_1 = require("./npm-global-paths.util");
|
|
14
|
+
describe('CCAP_NpmGlobalPaths_Util.detectLayout', () => {
|
|
15
|
+
let tempPrefix;
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
tempPrefix = fs.mkdtempSync(path.join(os.tmpdir(), 'ccap-npm-paths-spec-'));
|
|
18
|
+
});
|
|
19
|
+
afterEach(() => {
|
|
20
|
+
fs.rmSync(tempPrefix, { recursive: true, force: true });
|
|
21
|
+
});
|
|
22
|
+
it('| Unix-lib layout (`lib/node_modules/@futdevpro/ccap` exists) → unix-lib chosen', () => {
|
|
23
|
+
const pkgDir = path.join(tempPrefix, 'lib', 'node_modules', '@futdevpro', 'ccap');
|
|
24
|
+
fs.mkdirSync(pkgDir, { recursive: true });
|
|
25
|
+
const layout = npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.detectLayout(tempPrefix);
|
|
26
|
+
expect(layout.layout).toBe('unix-lib');
|
|
27
|
+
expect(layout.packageDir).toBe(pkgDir);
|
|
28
|
+
expect(layout.scopeDir).toBe(path.join(tempPrefix, 'lib', 'node_modules', '@futdevpro'));
|
|
29
|
+
});
|
|
30
|
+
it('| Windows-flat layout (`node_modules/@futdevpro/ccap` exists) → windows-flat chosen', () => {
|
|
31
|
+
const pkgDir = path.join(tempPrefix, 'node_modules', '@futdevpro', 'ccap');
|
|
32
|
+
fs.mkdirSync(pkgDir, { recursive: true });
|
|
33
|
+
const layout = npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.detectLayout(tempPrefix);
|
|
34
|
+
expect(layout.layout).toBe('windows-flat');
|
|
35
|
+
expect(layout.packageDir).toBe(pkgDir);
|
|
36
|
+
expect(layout.scopeDir).toBe(path.join(tempPrefix, 'node_modules', '@futdevpro'));
|
|
37
|
+
});
|
|
38
|
+
it('| egyik se létezik → platform default (Linux CI-en unix-lib)', () => {
|
|
39
|
+
const layout = npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.detectLayout(tempPrefix);
|
|
40
|
+
expect(['unix-lib', 'windows-flat']).toContain(layout.layout);
|
|
41
|
+
expect(layout.npmGlobalPrefix).toBe(tempPrefix);
|
|
42
|
+
expect(layout.binCandidates.length).toBeGreaterThan(0);
|
|
43
|
+
});
|
|
44
|
+
it('| Unix-lib layout — bin candidates `${prefix}/bin/ccap` először', () => {
|
|
45
|
+
const pkgDir = path.join(tempPrefix, 'lib', 'node_modules', '@futdevpro', 'ccap');
|
|
46
|
+
fs.mkdirSync(pkgDir, { recursive: true });
|
|
47
|
+
const layout = npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.detectLayout(tempPrefix);
|
|
48
|
+
expect(layout.binCandidates[0]).toBe(path.join(tempPrefix, 'bin', 'ccap'));
|
|
49
|
+
expect(layout.binCandidates).toContain(path.join(tempPrefix, 'bin', 'ccap.cmd'));
|
|
50
|
+
});
|
|
51
|
+
it('| Windows-flat layout — bin candidates `${prefix}\\ccap.cmd` először', () => {
|
|
52
|
+
const pkgDir = path.join(tempPrefix, 'node_modules', '@futdevpro', 'ccap');
|
|
53
|
+
fs.mkdirSync(pkgDir, { recursive: true });
|
|
54
|
+
const layout = npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.detectLayout(tempPrefix);
|
|
55
|
+
expect(layout.binCandidates[0]).toBe(path.join(tempPrefix, 'ccap.cmd'));
|
|
56
|
+
expect(layout.binCandidates).toContain(path.join(tempPrefix, 'ccap.ps1'));
|
|
57
|
+
expect(layout.binCandidates).toContain(path.join(tempPrefix, 'ccap'));
|
|
58
|
+
});
|
|
59
|
+
it('| Unix-lib + bin létezik → binPath a létezőre mutat', () => {
|
|
60
|
+
const pkgDir = path.join(tempPrefix, 'lib', 'node_modules', '@futdevpro', 'ccap');
|
|
61
|
+
const binDir = path.join(tempPrefix, 'bin');
|
|
62
|
+
fs.mkdirSync(pkgDir, { recursive: true });
|
|
63
|
+
fs.mkdirSync(binDir, { recursive: true });
|
|
64
|
+
fs.writeFileSync(path.join(binDir, 'ccap'), '#!/usr/bin/env node\n');
|
|
65
|
+
const layout = npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.detectLayout(tempPrefix);
|
|
66
|
+
expect(layout.binPath).toBe(path.join(binDir, 'ccap'));
|
|
67
|
+
});
|
|
68
|
+
it('| Windows-flat + `${prefix}\\ccap.cmd` létezik → binPath a .cmd-re mutat', () => {
|
|
69
|
+
const pkgDir = path.join(tempPrefix, 'node_modules', '@futdevpro', 'ccap');
|
|
70
|
+
fs.mkdirSync(pkgDir, { recursive: true });
|
|
71
|
+
fs.writeFileSync(path.join(tempPrefix, 'ccap.cmd'), '@node ccap.js %*');
|
|
72
|
+
const layout = npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.detectLayout(tempPrefix);
|
|
73
|
+
expect(layout.binPath).toBe(path.join(tempPrefix, 'ccap.cmd'));
|
|
74
|
+
});
|
|
75
|
+
it('| üres prefix → continue with empty paths (defenzív, nem dob)', () => {
|
|
76
|
+
const layout = npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.detectLayout('');
|
|
77
|
+
expect(layout.npmGlobalPrefix).toBe('');
|
|
78
|
+
expect(layout.binCandidates.length).toBeGreaterThan(0);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
describe('CCAP_NpmGlobalPaths_Util.dirOrFileExists', () => {
|
|
82
|
+
let tempDir;
|
|
83
|
+
beforeEach(() => {
|
|
84
|
+
tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ccap-exists-spec-'));
|
|
85
|
+
});
|
|
86
|
+
afterEach(() => {
|
|
87
|
+
fs.rmSync(tempDir, { recursive: true, force: true });
|
|
88
|
+
});
|
|
89
|
+
it('| nem létező path → false', () => {
|
|
90
|
+
expect(npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.dirOrFileExists(path.join(tempDir, 'nope'))).toBeFalse();
|
|
91
|
+
});
|
|
92
|
+
it('| létező dir → true', () => {
|
|
93
|
+
expect(npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.dirOrFileExists(tempDir)).toBeTrue();
|
|
94
|
+
});
|
|
95
|
+
it('| létező fájl → true', () => {
|
|
96
|
+
const f = path.join(tempDir, 'a.txt');
|
|
97
|
+
fs.writeFileSync(f, 'x');
|
|
98
|
+
expect(npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.dirOrFileExists(f)).toBeTrue();
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
describe('CCAP_NpmGlobalPaths_Util.isWindows', () => {
|
|
102
|
+
it('| visszaadja a process.platform=win32 vizsgálatot', () => {
|
|
103
|
+
const expected = process.platform === 'win32';
|
|
104
|
+
expect(npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.isWindows()).toBe(expected);
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
//# sourceMappingURL=npm-global-paths.util.spec.js.map
|
|
@@ -0,0 +1 @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AAC,CAAC;QACzB,MAAM,CAAC,gDAAwB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,oCAAoC,EAAE,GAAS,EAAE;IAExD,EAAE,CAAC,mDAAmD,EAAE,GAAS,EAAE;QACjE,MAAM,QAAQ,GAAY,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC;QACvD,MAAM,CAAC,gDAAwB,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -24,14 +24,17 @@ import { CCAP_StagingCleanupResult_Interface } from './staging-cleanup.interface
|
|
|
24
24
|
*/
|
|
25
25
|
export declare class CCAP_StagingCleanup_Util {
|
|
26
26
|
/**
|
|
27
|
-
* Az npm globális prefix lekérdezése.
|
|
28
|
-
* 5s timeout-tal; ha az npm nem elérhető (vagy hibázik), üres stringet ad.
|
|
27
|
+
* Az npm globális prefix lekérdezése. Reuse: `CCAP_NpmGlobalPaths_Util` SSOT.
|
|
29
28
|
*/
|
|
30
29
|
static getNpmGlobalPrefix(): string;
|
|
31
30
|
/**
|
|
32
31
|
* Az `@futdevpro` scope teljes path-ja az npm-global prefix alatt.
|
|
33
32
|
* Üres prefix → üres string. NEM tovább-validál (a hívó eldönti, hogy
|
|
34
33
|
* létezik-e a path).
|
|
34
|
+
*
|
|
35
|
+
* BUG-CLI-VERIFY-WINDOWS-PATH-001: platform-aware via `detectLayout` —
|
|
36
|
+
* Linux: `${prefix}/lib/node_modules/@futdevpro`,
|
|
37
|
+
* Windows: `${prefix}\node_modules\@futdevpro`.
|
|
35
38
|
*/
|
|
36
39
|
static resolveScopeDir(npmGlobalPrefix: string): string;
|
|
37
40
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staging-cleanup.util.d.ts","sourceRoot":"","sources":["../../../src/_collections/staging/staging-cleanup.util.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;
|
|
1
|
+
{"version":3,"file":"staging-cleanup.util.d.ts","sourceRoot":"","sources":["../../../src/_collections/staging/staging-cleanup.util.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AASH,OAAO,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AAQlF;;GAEG;AACH,qBAAa,wBAAwB;IAEnC;;OAEG;IACH,MAAM,CAAC,kBAAkB,IAAI,MAAM;IAInC;;;;;;;;OAQG;IACH,MAAM,CAAC,eAAe,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM;IASvD;;;;;;;OAOG;IACH,MAAM,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE;IAsBlD;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;IAWzE;;;;OAIG;IACH,MAAM,CAAC,cAAc,IAAI,mCAAmC;CAoD7D"}
|
|
@@ -22,47 +22,39 @@
|
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.CCAP_StagingCleanup_Util = void 0;
|
|
24
24
|
const tslib_1 = require("tslib");
|
|
25
|
-
const child_process_1 = require("child_process");
|
|
26
25
|
const fs = tslib_1.__importStar(require("fs"));
|
|
27
26
|
const path = tslib_1.__importStar(require("path"));
|
|
28
27
|
const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const npm_global_paths_util_1 = require("../npm-global/npm-global-paths.util");
|
|
29
|
+
/** A package név prefix (a staging dir-ek `.<name>-<random>` formátumban léteznek). */
|
|
31
30
|
const PACKAGE_NAME = 'ccap';
|
|
32
31
|
/** Staging filename minta: `.ccap-<random>`. Hidden (.) prefix + package név + dash + random. */
|
|
33
32
|
const STAGING_NAME_PREFIX = `.${PACKAGE_NAME}-`;
|
|
34
|
-
/** `npm config get prefix` timeout. */
|
|
35
|
-
const NPM_CONFIG_TIMEOUT_MS = 5000;
|
|
36
33
|
/**
|
|
37
34
|
* Staging-cleanup helpers a `ccap repair` command-hoz.
|
|
38
35
|
*/
|
|
39
36
|
class CCAP_StagingCleanup_Util {
|
|
40
37
|
/**
|
|
41
|
-
* Az npm globális prefix lekérdezése.
|
|
42
|
-
* 5s timeout-tal; ha az npm nem elérhető (vagy hibázik), üres stringet ad.
|
|
38
|
+
* Az npm globális prefix lekérdezése. Reuse: `CCAP_NpmGlobalPaths_Util` SSOT.
|
|
43
39
|
*/
|
|
44
40
|
static getNpmGlobalPrefix() {
|
|
45
|
-
|
|
46
|
-
return (0, child_process_1.execSync)('npm config get prefix', {
|
|
47
|
-
encoding: 'utf-8',
|
|
48
|
-
timeout: NPM_CONFIG_TIMEOUT_MS,
|
|
49
|
-
stdio: ['ignore', 'pipe', 'ignore'],
|
|
50
|
-
}).trim();
|
|
51
|
-
}
|
|
52
|
-
catch {
|
|
53
|
-
return '';
|
|
54
|
-
}
|
|
41
|
+
return npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.getNpmGlobalPrefix();
|
|
55
42
|
}
|
|
56
43
|
/**
|
|
57
44
|
* Az `@futdevpro` scope teljes path-ja az npm-global prefix alatt.
|
|
58
45
|
* Üres prefix → üres string. NEM tovább-validál (a hívó eldönti, hogy
|
|
59
46
|
* létezik-e a path).
|
|
47
|
+
*
|
|
48
|
+
* BUG-CLI-VERIFY-WINDOWS-PATH-001: platform-aware via `detectLayout` —
|
|
49
|
+
* Linux: `${prefix}/lib/node_modules/@futdevpro`,
|
|
50
|
+
* Windows: `${prefix}\node_modules\@futdevpro`.
|
|
60
51
|
*/
|
|
61
52
|
static resolveScopeDir(npmGlobalPrefix) {
|
|
62
53
|
if (!npmGlobalPrefix) {
|
|
63
54
|
return '';
|
|
64
55
|
}
|
|
65
|
-
|
|
56
|
+
const layout = npm_global_paths_util_1.CCAP_NpmGlobalPaths_Util.detectLayout(npmGlobalPrefix);
|
|
57
|
+
return layout.scopeDir;
|
|
66
58
|
}
|
|
67
59
|
/**
|
|
68
60
|
* A megadott directory-ban listázza a `.ccap-*` mintára illő staging-leftover
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staging-cleanup.util.js","sourceRoot":"","sources":["../../../src/_collections/staging/staging-cleanup.util.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;AAEH
|
|
1
|
+
{"version":3,"file":"staging-cleanup.util.js","sourceRoot":"","sources":["../../../src/_collections/staging/staging-cleanup.util.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;AAEH,+CAAyB;AACzB,mDAA6B;AAE7B,sDAAiD;AAEjD,+EAA+E;AAI/E,uFAAuF;AACvF,MAAM,YAAY,GAAW,MAAM,CAAC;AAEpC,iGAAiG;AACjG,MAAM,mBAAmB,GAAW,IAAI,YAAY,GAAG,CAAC;AAExD;;GAEG;AACH,MAAa,wBAAwB;IAEnC;;OAEG;IACH,MAAM,CAAC,kBAAkB;QACvB,OAAO,gDAAwB,CAAC,kBAAkB,EAAE,CAAC;IACvD,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,eAAe,CAAC,eAAuB;QAC5C,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,MAAM,MAAM,GACV,gDAAwB,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,eAAe,CAAC,QAAgB;QACrC,IAAI,CAAC,QAAQ,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;Y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CAAC,IAAI,CAAC;oBACjB,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,YAAY,CAAC,KAAK,IAAI,SAAS;iBACvC,CAAC,CAAC;gBACH,qBAAQ,CAAC,KAAK,CACZ,4CAA4C,WAAW,YAAY,YAAY,CAAC,KAAK,EAAE,CACxF,CAAC;YACJ,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAjID,4DAiIC"}
|
|
@@ -7,6 +7,13 @@
|
|
|
7
7
|
* a user catch-22-be került: `ccap` nem futott, `ccap repair` se. Csak manuális
|
|
8
8
|
* `rm -rf + npm i -g` mentette ki.
|
|
9
9
|
*
|
|
10
|
+
* BUG-CLI-VERIFY-WINDOWS-PATH-001 (2026-05-11 follow-up): Windows PowerShell-en
|
|
11
|
+
* az eredeti verify hardcoded Linux layout-tal (`${prefix}/lib/node_modules/`)
|
|
12
|
+
* 6 hiányzó path-t jelölt, MIKÖZBEN a Windows-flat layout-on
|
|
13
|
+
* (`${prefix}\node_modules\`) a fájlok ott voltak — a UI-on a friss verzió
|
|
14
|
+
* látszott. Mostantól a platform-aware `CCAP_NpmGlobalPaths_Util.detectLayout`
|
|
15
|
+
* ad SSOT path-okat.
|
|
16
|
+
*
|
|
10
17
|
* Ez a util a `c_ccapUpdate` flow-ban posztoplásra fut, az npm install sikere
|
|
11
18
|
* után. Ellenőrzi a kötelező path-okat (mirror-a a server-oldali
|
|
12
19
|
* `SLF_Self_Util.REQUIRED_INSTALLED_PATHS`-ának), és strukturált eredményt
|
|
@@ -21,29 +28,18 @@ import { CCAP_UpdateVerifyInstallResult_Interface } from './update-verify-instal
|
|
|
21
28
|
* Post-install globális install integritás-verifikáció.
|
|
22
29
|
*/
|
|
23
30
|
export declare class CCAP_UpdateVerifyInstall_Util {
|
|
24
|
-
/**
|
|
25
|
-
* Az npm globális prefix lekérdezése. `npm config get prefix` synchrón hívás
|
|
26
|
-
* 5s timeout-tal; ha az npm nem elérhető, üres stringet ad.
|
|
27
|
-
*/
|
|
28
|
-
static getNpmGlobalPrefix(): string;
|
|
29
|
-
/**
|
|
30
|
-
* Csomag-relatív path absolútja az npm-global prefix alatt.
|
|
31
|
-
*/
|
|
32
|
-
static resolvePackageRoot(npmGlobalPrefix: string): string;
|
|
33
|
-
/**
|
|
34
|
-
* A `${prefix}/bin/ccap` (Linux/macOS) VAGY `${prefix}/bin/ccap.cmd` (Windows)
|
|
35
|
-
* létezésének ellenőrzése. Bármelyik elég.
|
|
36
|
-
*/
|
|
37
|
-
static checkBinExists(npmGlobalPrefix: string): boolean;
|
|
38
31
|
/**
|
|
39
32
|
* Teljes integritás-check. Ha `prefixOverride` van, azt használja
|
|
40
|
-
* (tesztelhetőségi seam); különben `
|
|
33
|
+
* (tesztelhetőségi seam); különben `CCAP_NpmGlobalPaths_Util.detectLayout`
|
|
34
|
+
* detektál.
|
|
41
35
|
*/
|
|
42
36
|
static verify(prefixOverride?: string): CCAP_UpdateVerifyInstallResult_Interface;
|
|
43
37
|
/**
|
|
44
38
|
* User-readable recovery-instrukció string a hibaüzenethez. A pontos
|
|
45
|
-
*
|
|
46
|
-
*
|
|
39
|
+
* delete-parancsokat tartalmazza, hogy a user copy-paste-elhesse — a `ccap`
|
|
40
|
+
* binary elvesztése esetén ez az egyetlen megmenekülési mód. Platform-aware:
|
|
41
|
+
* Windows PowerShell-en `Remove-Item -Recurse -Force`-ot ad, Linux/macOS-on
|
|
42
|
+
* `rm -rf`-et.
|
|
47
43
|
*/
|
|
48
44
|
static buildRecoveryInstructions(result: CCAP_UpdateVerifyInstallResult_Interface): string;
|
|
49
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-verify-install.util.d.ts","sourceRoot":"","sources":["../../../src/_collections/update/update-verify-install.util.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"update-verify-install.util.d.ts","sourceRoot":"","sources":["../../../src/_collections/update/update-verify-install.util.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,OAAO,EAAE,wCAAwC,EAAE,MAAM,mCAAmC,CAAC;AAe7F;;GAEG;AACH,qBAAa,6BAA6B;IAExC;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,wCAAwC;IA+ChF;;;;;;OAMG;IACH,MAAM,CAAC,yBAAyB,CAAC,MAAM,EAAE,wCAAwC,GAAG,MAAM;CAkD3F"}
|