@microsoft/managed-apps-cli 0.20.0 → 0.21.0
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/THIRD-PARTY-NOTICES.txt +9549 -0
- package/dist/AddConnector-4AMM746J.js +41 -0
- package/dist/AuthStatus-ZZIP3LBD.js +11 -0
- package/dist/AuthSwitch-HK7JU2FR.js +13 -0
- package/dist/Bin.js +8 -3
- package/dist/BuildMaafApp-MOTZOLJZ.js +11 -0
- package/dist/Cli-6CCXMCPX.js +54 -0
- package/dist/CreateMaafApp-TUO72CW7.js +20 -0
- package/dist/DeleteMaafApp-MZVGIAX3.js +11 -0
- package/dist/DeployMaafApp-KXATM3E3.js +14 -0
- package/dist/Dev-SHIA5S7X.js +14 -0
- package/dist/EnvironmentVariableAuthenticationProvider-5YTMRAE4.js +11 -0
- package/dist/GetMaafApp-ELB5KMHW.js +11 -0
- package/dist/GetMaafBuildStatus-3W7LI5TJ.js +11 -0
- package/dist/GetSettings-NM6H2U5F.js +11 -0
- package/dist/Init-CH5DUQWA.js +11 -0
- package/dist/ListConnectorActions-7SIFGPYR.js +11 -0
- package/dist/ListConnectors-TRKIWRVQ.js +11 -0
- package/dist/ListMaafApps-RT3PGZSJ.js +11 -0
- package/dist/Login-HG5S7LBC.js +11 -0
- package/dist/Logout-BUPHLOAH.js +11 -0
- package/dist/MockFetch-4CYTSNJ7.js +13 -0
- package/dist/NoOpAuthenticationProvider-DX3XNXF5.js +11 -0
- package/dist/NodeMsalAuthenticationProvider-HTH3V3G2.js +17 -0
- package/dist/Pack-AHKC2MYF.js +8 -0
- package/dist/PlayMaafApp-LWKJU2IN.js +12 -0
- package/dist/RefreshDataSource-ZFZJXJ5L.js +11 -0
- package/dist/RefreshGitAuth-5A3SX2HC.js +11 -0
- package/dist/RemoveDataSource-57JJLK5I.js +14 -0
- package/dist/ServicePrincipalAuthenticationProvider-SVKDZG6X.js +11 -0
- package/dist/SetSetting-RB3F7IXG.js +11 -0
- package/dist/ShareLinkCreate-7BCDPWY6.js +11 -0
- package/dist/ShareLinkList-4BI3WMNN.js +11 -0
- package/dist/ShareLinkRevoke-EEJVCRCY.js +11 -0
- package/dist/ShareList-LJDAEGI3.js +11 -0
- package/dist/ShareMaafApp-QFRXLYUD.js +11 -0
- package/dist/ShowMaafApp-3KK6NUG2.js +11 -0
- package/dist/TelemetrySettings-A474HALH.js +11 -0
- package/dist/UnshareMaafApp-423RNXCN.js +11 -0
- package/dist/acorn-CYBWGE5M.js +23 -0
- package/dist/angular-Q62TJP23.js +11 -0
- package/dist/babel-AOXBHIIS.js +22 -0
- package/dist/chunk-3BRAT6NP.js +11 -0
- package/dist/chunk-3YRE4IQ3.js +132 -0
- package/dist/chunk-5AUOEXAR.js +50 -0
- package/dist/chunk-6FFQN2SO.js +13 -0
- package/dist/chunk-6MXOK2LG.js +11 -0
- package/dist/chunk-7NXJAIJX.js +11 -0
- package/dist/chunk-DREO7EYO.js +20 -0
- package/dist/chunk-EV3TTTOT.js +8 -0
- package/dist/chunk-G33Q5FWT.js +42325 -0
- package/dist/chunk-HBLO3WDD.js +13 -0
- package/dist/chunk-MFPX2RFH.js +11 -0
- package/dist/chunk-NP2KJOYC.js +12 -0
- package/dist/chunk-OL6CTXQR.js +11 -0
- package/dist/chunk-PVAIJSAI.js +11 -0
- package/dist/chunk-QAFCXGBD.js +11 -0
- package/dist/chunk-QSB5P4RM.js +38 -0
- package/dist/chunk-RBG2H562.js +11 -0
- package/dist/chunk-S5HEU7XK.js +11 -0
- package/dist/chunk-TYRVM4PP.js +8 -0
- package/dist/chunk-U36HMOQW.js +77 -0
- package/dist/chunk-UBTSW22U.js +11 -0
- package/dist/chunk-USRRI5H4.js +11 -0
- package/dist/chunk-UT667QSU.js +8 -0
- package/dist/chunk-VFSTQAZ2.js +12 -0
- package/dist/chunk-VNEZZ3RI.js +11 -0
- package/dist/chunk-W7EWOZPO.js +104 -0
- package/dist/chunk-Y5AMO72S.js +10 -0
- package/dist/chunk-YIKNM523.js +15 -0
- package/dist/chunk-YMXXWGRV.js +11 -0
- package/dist/estree-HPTPQIMZ.js +51 -0
- package/dist/flow-B6JUMONE.js +27 -0
- package/dist/glimmer-36KZ3DJ5.js +44 -0
- package/dist/graphql-E6CIFZFV.js +35 -0
- package/dist/html-BUTTPQE6.js +32 -0
- package/dist/markdown-K2C5OZHT.js +69 -0
- package/dist/meriyah-27UE2OSX.js +12 -0
- package/dist/postcss-QUHZLBB7.js +68 -0
- package/dist/typescript-G2G6TDZF.js +28 -0
- package/dist/yaml-W5P5CGFK.js +166 -0
- package/package.json +21 -16
- package/dist/ArgumentProvider.d.ts +0 -144
- package/dist/ArgumentProvider.d.ts.map +0 -1
- package/dist/ArgumentProvider.js +0 -493
- package/dist/ArgumentProvider.js.map +0 -1
- package/dist/Authentication/ActiveAccountStore.d.ts +0 -24
- package/dist/Authentication/ActiveAccountStore.d.ts.map +0 -1
- package/dist/Authentication/ActiveAccountStore.js +0 -54
- package/dist/Authentication/ActiveAccountStore.js.map +0 -1
- package/dist/Authentication/EnvironmentVariableAuthenticationProvider.d.ts +0 -26
- package/dist/Authentication/EnvironmentVariableAuthenticationProvider.d.ts.map +0 -1
- package/dist/Authentication/EnvironmentVariableAuthenticationProvider.js +0 -31
- package/dist/Authentication/EnvironmentVariableAuthenticationProvider.js.map +0 -1
- package/dist/Authentication/NoOpAuthenticationProvider.d.ts +0 -25
- package/dist/Authentication/NoOpAuthenticationProvider.d.ts.map +0 -1
- package/dist/Authentication/NoOpAuthenticationProvider.js +0 -31
- package/dist/Authentication/NoOpAuthenticationProvider.js.map +0 -1
- package/dist/Authentication/NodeMsalAuthenticationProvider.d.ts +0 -103
- package/dist/Authentication/NodeMsalAuthenticationProvider.d.ts.map +0 -1
- package/dist/Authentication/NodeMsalAuthenticationProvider.js +0 -391
- package/dist/Authentication/NodeMsalAuthenticationProvider.js.map +0 -1
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.d.ts +0 -23
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.d.ts.map +0 -1
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.js +0 -60
- package/dist/Authentication/ServicePrincipalAuthenticationProvider.js.map +0 -1
- package/dist/Bin.d.ts +0 -6
- package/dist/Bin.d.ts.map +0 -1
- package/dist/Bin.js.map +0 -1
- package/dist/Cli.d.ts +0 -2
- package/dist/Cli.d.ts.map +0 -1
- package/dist/Cli.js +0 -207
- package/dist/Cli.js.map +0 -1
- package/dist/CliSettings.d.ts +0 -17
- package/dist/CliSettings.d.ts.map +0 -1
- package/dist/CliSettings.js +0 -103
- package/dist/CliSettings.js.map +0 -1
- package/dist/CliUtils.d.ts +0 -108
- package/dist/CliUtils.d.ts.map +0 -1
- package/dist/CliUtils.js +0 -217
- package/dist/CliUtils.js.map +0 -1
- package/dist/Constants/CliConstants.d.ts +0 -6
- package/dist/Constants/CliConstants.d.ts.map +0 -1
- package/dist/Constants/CliConstants.js +0 -6
- package/dist/Constants/CliConstants.js.map +0 -1
- package/dist/Constants/CommandRegistry.d.ts +0 -22
- package/dist/Constants/CommandRegistry.d.ts.map +0 -1
- package/dist/Constants/CommandRegistry.js +0 -245
- package/dist/Constants/CommandRegistry.js.map +0 -1
- package/dist/Constants/HelpStrings.d.ts +0 -432
- package/dist/Constants/HelpStrings.d.ts.map +0 -1
- package/dist/Constants/HelpStrings.js +0 -623
- package/dist/Constants/HelpStrings.js.map +0 -1
- package/dist/Constants.d.ts +0 -18
- package/dist/Constants.d.ts.map +0 -1
- package/dist/Constants.js +0 -41
- package/dist/Constants.js.map +0 -1
- package/dist/Errors/CliError.d.ts +0 -5
- package/dist/Errors/CliError.d.ts.map +0 -1
- package/dist/Errors/CliError.js +0 -7
- package/dist/Errors/CliError.js.map +0 -1
- package/dist/Errors/GitHubErrorMap.d.ts +0 -68
- package/dist/Errors/GitHubErrorMap.d.ts.map +0 -1
- package/dist/Errors/GitHubErrorMap.js +0 -238
- package/dist/Errors/GitHubErrorMap.js.map +0 -1
- package/dist/FS/CliFs.d.ts +0 -41
- package/dist/FS/CliFs.d.ts.map +0 -1
- package/dist/FS/CliFs.js +0 -136
- package/dist/FS/CliFs.js.map +0 -1
- package/dist/HttpClient/CliHttpClient.d.ts +0 -43
- package/dist/HttpClient/CliHttpClient.d.ts.map +0 -1
- package/dist/HttpClient/CliHttpClient.js +0 -320
- package/dist/HttpClient/CliHttpClient.js.map +0 -1
- package/dist/HttpClient/HttpForward.d.ts +0 -9
- package/dist/HttpClient/HttpForward.d.ts.map +0 -1
- package/dist/HttpClient/HttpForward.js +0 -56
- package/dist/HttpClient/HttpForward.js.map +0 -1
- package/dist/Logger/BufferedTelemetryWriter.d.ts +0 -20
- package/dist/Logger/BufferedTelemetryWriter.d.ts.map +0 -1
- package/dist/Logger/BufferedTelemetryWriter.js +0 -163
- package/dist/Logger/BufferedTelemetryWriter.js.map +0 -1
- package/dist/Logger/CliLogger.d.ts +0 -59
- package/dist/Logger/CliLogger.d.ts.map +0 -1
- package/dist/Logger/CliLogger.js +0 -364
- package/dist/Logger/CliLogger.js.map +0 -1
- package/dist/Logger/ConsoleWriter.d.ts +0 -23
- package/dist/Logger/ConsoleWriter.d.ts.map +0 -1
- package/dist/Logger/ConsoleWriter.js +0 -66
- package/dist/Logger/ConsoleWriter.js.map +0 -1
- package/dist/Logger/Constants.d.ts +0 -6
- package/dist/Logger/Constants.d.ts.map +0 -1
- package/dist/Logger/Constants.js +0 -15
- package/dist/Logger/Constants.js.map +0 -1
- package/dist/Logger/LoggerSettings.d.ts +0 -18
- package/dist/Logger/LoggerSettings.d.ts.map +0 -1
- package/dist/Logger/LoggerSettings.js +0 -78
- package/dist/Logger/LoggerSettings.js.map +0 -1
- package/dist/Logger/OneDSWriter.d.ts +0 -26
- package/dist/Logger/OneDSWriter.d.ts.map +0 -1
- package/dist/Logger/OneDSWriter.js +0 -211
- package/dist/Logger/OneDSWriter.js.map +0 -1
- package/dist/Logger/Scrubber/ScrubCustomDimensions.d.ts +0 -5
- package/dist/Logger/Scrubber/ScrubCustomDimensions.d.ts.map +0 -1
- package/dist/Logger/Scrubber/ScrubCustomDimensions.js +0 -46
- package/dist/Logger/Scrubber/ScrubCustomDimensions.js.map +0 -1
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.d.ts +0 -27
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.d.ts.map +0 -1
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.js +0 -168
- package/dist/Logger/Scrubber/ScrubCustomDimensionsConfig.js.map +0 -1
- package/dist/Logger/Scrubber/ScrubUtils.d.ts +0 -8
- package/dist/Logger/Scrubber/ScrubUtils.d.ts.map +0 -1
- package/dist/Logger/Scrubber/ScrubUtils.js +0 -34
- package/dist/Logger/Scrubber/ScrubUtils.js.map +0 -1
- package/dist/Middletier/FunctionsBundler.d.ts +0 -17
- package/dist/Middletier/FunctionsBundler.d.ts.map +0 -1
- package/dist/Middletier/FunctionsBundler.js +0 -169
- package/dist/Middletier/FunctionsBundler.js.map +0 -1
- package/dist/Middletier/PackFunctions.d.ts +0 -53
- package/dist/Middletier/PackFunctions.d.ts.map +0 -1
- package/dist/Middletier/PackFunctions.js +0 -123
- package/dist/Middletier/PackFunctions.js.map +0 -1
- package/dist/Testing/MockFetch.d.ts +0 -23
- package/dist/Testing/MockFetch.d.ts.map +0 -1
- package/dist/Testing/MockFetch.js +0 -177
- package/dist/Testing/MockFetch.js.map +0 -1
- package/dist/Testing/MockRoutes.d.ts +0 -34
- package/dist/Testing/MockRoutes.d.ts.map +0 -1
- package/dist/Testing/MockRoutes.js +0 -226
- package/dist/Testing/MockRoutes.js.map +0 -1
- package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/commondataserviceforapps.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/commondataserviceforapps.js +0 -25
- package/dist/Testing/fixtures/connectors/commondataserviceforapps.js.map +0 -1
- package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/dataverseContactEntity.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/dataverseContactEntity.js +0 -55
- package/dist/Testing/fixtures/connectors/dataverseContactEntity.js.map +0 -1
- package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/excelonlinebusiness.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/excelonlinebusiness.js +0 -1970
- package/dist/Testing/fixtures/connectors/excelonlinebusiness.js.map +0 -1
- package/dist/Testing/fixtures/connectors/kusto.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/kusto.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/kusto.js +0 -1333
- package/dist/Testing/fixtures/connectors/kusto.js.map +0 -1
- package/dist/Testing/fixtures/connectors/msnweather.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/msnweather.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/msnweather.js +0 -917
- package/dist/Testing/fixtures/connectors/msnweather.js.map +0 -1
- package/dist/Testing/fixtures/connectors/office365groups.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/office365groups.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/office365groups.js +0 -2144
- package/dist/Testing/fixtures/connectors/office365groups.js.map +0 -1
- package/dist/Testing/fixtures/connectors/office365users.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/office365users.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/office365users.js +0 -1969
- package/dist/Testing/fixtures/connectors/office365users.js.map +0 -1
- package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/onedriveforbusiness.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/onedriveforbusiness.js +0 -4873
- package/dist/Testing/fixtures/connectors/onedriveforbusiness.js.map +0 -1
- package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/powerappsforappmakers.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/powerappsforappmakers.js +0 -4682
- package/dist/Testing/fixtures/connectors/powerappsforappmakers.js.map +0 -1
- package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js +0 -1078
- package/dist/Testing/fixtures/connectors/sharepointTestListMetadata.js.map +0 -1
- package/dist/Testing/fixtures/connectors/sharepointonline.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/sharepointonline.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/sharepointonline.js +0 -28
- package/dist/Testing/fixtures/connectors/sharepointonline.js.map +0 -1
- package/dist/Testing/fixtures/connectors/teams.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/teams.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/teams.js +0 -9987
- package/dist/Testing/fixtures/connectors/teams.js.map +0 -1
- package/dist/Testing/fixtures/connectors/translatorv2.d.ts +0 -6
- package/dist/Testing/fixtures/connectors/translatorv2.d.ts.map +0 -1
- package/dist/Testing/fixtures/connectors/translatorv2.js +0 -307
- package/dist/Testing/fixtures/connectors/translatorv2.js.map +0 -1
- package/dist/Testing/fixtures/index.d.ts +0 -23
- package/dist/Testing/fixtures/index.d.ts.map +0 -1
- package/dist/Testing/fixtures/index.js +0 -96
- package/dist/Testing/fixtures/index.js.map +0 -1
- package/dist/Types/Argument.types.d.ts +0 -28
- package/dist/Types/Argument.types.d.ts.map +0 -1
- package/dist/Types/Argument.types.js +0 -5
- package/dist/Types/Argument.types.js.map +0 -1
- package/dist/Types/Cli.types.d.ts +0 -82
- package/dist/Types/Cli.types.d.ts.map +0 -1
- package/dist/Types/Cli.types.js +0 -5
- package/dist/Types/Cli.types.js.map +0 -1
- package/dist/Types/Command.types.d.ts +0 -69
- package/dist/Types/Command.types.d.ts.map +0 -1
- package/dist/Types/Command.types.js +0 -20
- package/dist/Types/Command.types.js.map +0 -1
- package/dist/Types/Datasource.types.d.ts +0 -30
- package/dist/Types/Datasource.types.d.ts.map +0 -1
- package/dist/Types/Datasource.types.js +0 -5
- package/dist/Types/Datasource.types.js.map +0 -1
- package/dist/Types/LoggerTypes.types.d.ts +0 -18
- package/dist/Types/LoggerTypes.types.d.ts.map +0 -1
- package/dist/Types/LoggerTypes.types.js +0 -5
- package/dist/Types/LoggerTypes.types.js.map +0 -1
- package/dist/Utils/BuildPolling.d.ts +0 -43
- package/dist/Utils/BuildPolling.d.ts.map +0 -1
- package/dist/Utils/BuildPolling.js +0 -139
- package/dist/Utils/BuildPolling.js.map +0 -1
- package/dist/Utils/BuildVerbDescriptionTable.d.ts +0 -29
- package/dist/Utils/BuildVerbDescriptionTable.d.ts.map +0 -1
- package/dist/Utils/BuildVerbDescriptionTable.js +0 -147
- package/dist/Utils/BuildVerbDescriptionTable.js.map +0 -1
- package/dist/Utils/CoerceCliVersion.d.ts +0 -27
- package/dist/Utils/CoerceCliVersion.d.ts.map +0 -1
- package/dist/Utils/CoerceCliVersion.js +0 -67
- package/dist/Utils/CoerceCliVersion.js.map +0 -1
- package/dist/Utils/ConnectorIds.d.ts +0 -12
- package/dist/Utils/ConnectorIds.d.ts.map +0 -1
- package/dist/Utils/ConnectorIds.js +0 -20
- package/dist/Utils/ConnectorIds.js.map +0 -1
- package/dist/Utils/ConsoleOutput.d.ts +0 -86
- package/dist/Utils/ConsoleOutput.d.ts.map +0 -1
- package/dist/Utils/ConsoleOutput.js +0 -162
- package/dist/Utils/ConsoleOutput.js.map +0 -1
- package/dist/Utils/DcfRecovery.d.ts +0 -84
- package/dist/Utils/DcfRecovery.d.ts.map +0 -1
- package/dist/Utils/DcfRecovery.js +0 -246
- package/dist/Utils/DcfRecovery.js.map +0 -1
- package/dist/Utils/DetectPackageManager.d.ts +0 -9
- package/dist/Utils/DetectPackageManager.d.ts.map +0 -1
- package/dist/Utils/DetectPackageManager.js +0 -24
- package/dist/Utils/DetectPackageManager.js.map +0 -1
- package/dist/Utils/DownloadTemplate.d.ts +0 -45
- package/dist/Utils/DownloadTemplate.d.ts.map +0 -1
- package/dist/Utils/DownloadTemplate.js +0 -161
- package/dist/Utils/DownloadTemplate.js.map +0 -1
- package/dist/Utils/EnhanceNetworkError.d.ts +0 -14
- package/dist/Utils/EnhanceNetworkError.d.ts.map +0 -1
- package/dist/Utils/EnhanceNetworkError.js +0 -61
- package/dist/Utils/EnhanceNetworkError.js.map +0 -1
- package/dist/Utils/EnvVars.d.ts +0 -17
- package/dist/Utils/EnvVars.d.ts.map +0 -1
- package/dist/Utils/EnvVars.js +0 -38
- package/dist/Utils/EnvVars.js.map +0 -1
- package/dist/Utils/EnvironmentRoutingUtils.d.ts +0 -81
- package/dist/Utils/EnvironmentRoutingUtils.d.ts.map +0 -1
- package/dist/Utils/EnvironmentRoutingUtils.js +0 -204
- package/dist/Utils/EnvironmentRoutingUtils.js.map +0 -1
- package/dist/Utils/FindAvailablePort.d.ts +0 -39
- package/dist/Utils/FindAvailablePort.d.ts.map +0 -1
- package/dist/Utils/FindAvailablePort.js +0 -105
- package/dist/Utils/FindAvailablePort.js.map +0 -1
- package/dist/Utils/GitCredentialConfig.d.ts +0 -12
- package/dist/Utils/GitCredentialConfig.d.ts.map +0 -1
- package/dist/Utils/GitCredentialConfig.js +0 -32
- package/dist/Utils/GitCredentialConfig.js.map +0 -1
- package/dist/Utils/GitErrorClassifier.d.ts +0 -40
- package/dist/Utils/GitErrorClassifier.d.ts.map +0 -1
- package/dist/Utils/GitErrorClassifier.js +0 -120
- package/dist/Utils/GitErrorClassifier.js.map +0 -1
- package/dist/Utils/GitHubDcfFlow.d.ts +0 -59
- package/dist/Utils/GitHubDcfFlow.d.ts.map +0 -1
- package/dist/Utils/GitHubDcfFlow.js +0 -165
- package/dist/Utils/GitHubDcfFlow.js.map +0 -1
- package/dist/Utils/GitRunner.d.ts +0 -107
- package/dist/Utils/GitRunner.d.ts.map +0 -1
- package/dist/Utils/GitRunner.js +0 -89
- package/dist/Utils/GitRunner.js.map +0 -1
- package/dist/Utils/GitUtils.d.ts +0 -59
- package/dist/Utils/GitUtils.d.ts.map +0 -1
- package/dist/Utils/GitUtils.js +0 -198
- package/dist/Utils/GitUtils.js.map +0 -1
- package/dist/Utils/GitVersionChecker.d.ts +0 -38
- package/dist/Utils/GitVersionChecker.d.ts.map +0 -1
- package/dist/Utils/GitVersionChecker.js +0 -64
- package/dist/Utils/GitVersionChecker.js.map +0 -1
- package/dist/Utils/HelpBanner.d.ts +0 -11
- package/dist/Utils/HelpBanner.d.ts.map +0 -1
- package/dist/Utils/HelpBanner.js +0 -15
- package/dist/Utils/HelpBanner.js.map +0 -1
- package/dist/Utils/MaafAppConfig.d.ts +0 -24
- package/dist/Utils/MaafAppConfig.d.ts.map +0 -1
- package/dist/Utils/MaafAppConfig.js +0 -38
- package/dist/Utils/MaafAppConfig.js.map +0 -1
- package/dist/Utils/NodeVersionChecker.d.ts +0 -10
- package/dist/Utils/NodeVersionChecker.d.ts.map +0 -1
- package/dist/Utils/NodeVersionChecker.js +0 -21
- package/dist/Utils/NodeVersionChecker.js.map +0 -1
- package/dist/Utils/Paging.d.ts +0 -29
- package/dist/Utils/Paging.d.ts.map +0 -1
- package/dist/Utils/Paging.js +0 -102
- package/dist/Utils/Paging.js.map +0 -1
- package/dist/Utils/PinCli.d.ts +0 -33
- package/dist/Utils/PinCli.d.ts.map +0 -1
- package/dist/Utils/PinCli.js +0 -77
- package/dist/Utils/PinCli.js.map +0 -1
- package/dist/Utils/ReadPackageJson.d.ts +0 -9
- package/dist/Utils/ReadPackageJson.d.ts.map +0 -1
- package/dist/Utils/ReadPackageJson.js +0 -13
- package/dist/Utils/ReadPackageJson.js.map +0 -1
- package/dist/Utils/RepoDetails.d.ts +0 -29
- package/dist/Utils/RepoDetails.d.ts.map +0 -1
- package/dist/Utils/RepoDetails.js +0 -37
- package/dist/Utils/RepoDetails.js.map +0 -1
- package/dist/Utils/RepoOption.d.ts +0 -42
- package/dist/Utils/RepoOption.d.ts.map +0 -1
- package/dist/Utils/RepoOption.js +0 -63
- package/dist/Utils/RepoOption.js.map +0 -1
- package/dist/Utils/RepoUrl.d.ts +0 -18
- package/dist/Utils/RepoUrl.d.ts.map +0 -1
- package/dist/Utils/RepoUrl.js +0 -6
- package/dist/Utils/RepoUrl.js.map +0 -1
- package/dist/Utils/ResolveCommand.d.ts +0 -62
- package/dist/Utils/ResolveCommand.d.ts.map +0 -1
- package/dist/Utils/ResolveCommand.js +0 -141
- package/dist/Utils/ResolveCommand.js.map +0 -1
- package/dist/Utils/RunCommand.d.ts +0 -33
- package/dist/Utils/RunCommand.d.ts.map +0 -1
- package/dist/Utils/RunCommand.js +0 -83
- package/dist/Utils/RunCommand.js.map +0 -1
- package/dist/Utils/ShareAccessRouting.d.ts +0 -78
- package/dist/Utils/ShareAccessRouting.d.ts.map +0 -1
- package/dist/Utils/ShareAccessRouting.js +0 -93
- package/dist/Utils/ShareAccessRouting.js.map +0 -1
- package/dist/Utils/Spinner.d.ts +0 -23
- package/dist/Utils/Spinner.d.ts.map +0 -1
- package/dist/Utils/Spinner.js +0 -94
- package/dist/Utils/Spinner.js.map +0 -1
- package/dist/Utils/zipBuildArtifact.d.ts +0 -35
- package/dist/Utils/zipBuildArtifact.d.ts.map +0 -1
- package/dist/Utils/zipBuildArtifact.js +0 -100
- package/dist/Utils/zipBuildArtifact.js.map +0 -1
- package/dist/Verbs/AddAction.d.ts +0 -6
- package/dist/Verbs/AddAction.d.ts.map +0 -1
- package/dist/Verbs/AddAction.js +0 -59
- package/dist/Verbs/AddAction.js.map +0 -1
- package/dist/Verbs/AddConnector.d.ts +0 -26
- package/dist/Verbs/AddConnector.d.ts.map +0 -1
- package/dist/Verbs/AddConnector.js +0 -223
- package/dist/Verbs/AddConnector.js.map +0 -1
- package/dist/Verbs/AddConnectorFlows.d.ts +0 -97
- package/dist/Verbs/AddConnectorFlows.d.ts.map +0 -1
- package/dist/Verbs/AddConnectorFlows.js +0 -298
- package/dist/Verbs/AddConnectorFlows.js.map +0 -1
- package/dist/Verbs/AddDataSource.d.ts +0 -18
- package/dist/Verbs/AddDataSource.d.ts.map +0 -1
- package/dist/Verbs/AddDataSource.js +0 -163
- package/dist/Verbs/AddDataSource.js.map +0 -1
- package/dist/Verbs/AddFlow.d.ts +0 -12
- package/dist/Verbs/AddFlow.d.ts.map +0 -1
- package/dist/Verbs/AddFlow.js +0 -63
- package/dist/Verbs/AddFlow.js.map +0 -1
- package/dist/Verbs/AddTable.d.ts +0 -6
- package/dist/Verbs/AddTable.d.ts.map +0 -1
- package/dist/Verbs/AddTable.js +0 -79
- package/dist/Verbs/AddTable.js.map +0 -1
- package/dist/Verbs/AuthStatus.d.ts +0 -6
- package/dist/Verbs/AuthStatus.d.ts.map +0 -1
- package/dist/Verbs/AuthStatus.js +0 -49
- package/dist/Verbs/AuthStatus.js.map +0 -1
- package/dist/Verbs/AuthSwitch.d.ts +0 -6
- package/dist/Verbs/AuthSwitch.d.ts.map +0 -1
- package/dist/Verbs/AuthSwitch.js +0 -67
- package/dist/Verbs/AuthSwitch.js.map +0 -1
- package/dist/Verbs/BuildMaafApp.d.ts +0 -6
- package/dist/Verbs/BuildMaafApp.d.ts.map +0 -1
- package/dist/Verbs/BuildMaafApp.js +0 -171
- package/dist/Verbs/BuildMaafApp.js.map +0 -1
- package/dist/Verbs/ConnectorHelpers.d.ts +0 -164
- package/dist/Verbs/ConnectorHelpers.d.ts.map +0 -1
- package/dist/Verbs/ConnectorHelpers.js +0 -563
- package/dist/Verbs/ConnectorHelpers.js.map +0 -1
- package/dist/Verbs/CreateMaafApp.d.ts +0 -100
- package/dist/Verbs/CreateMaafApp.d.ts.map +0 -1
- package/dist/Verbs/CreateMaafApp.js +0 -1022
- package/dist/Verbs/CreateMaafApp.js.map +0 -1
- package/dist/Verbs/DeleteMaafApp.d.ts +0 -27
- package/dist/Verbs/DeleteMaafApp.d.ts.map +0 -1
- package/dist/Verbs/DeleteMaafApp.js +0 -114
- package/dist/Verbs/DeleteMaafApp.js.map +0 -1
- package/dist/Verbs/DeployMaafApp.d.ts +0 -6
- package/dist/Verbs/DeployMaafApp.d.ts.map +0 -1
- package/dist/Verbs/DeployMaafApp.js +0 -495
- package/dist/Verbs/DeployMaafApp.js.map +0 -1
- package/dist/Verbs/Dev.d.ts +0 -6
- package/dist/Verbs/Dev.d.ts.map +0 -1
- package/dist/Verbs/Dev.js +0 -276
- package/dist/Verbs/Dev.js.map +0 -1
- package/dist/Verbs/FindDataverseApi.d.ts +0 -12
- package/dist/Verbs/FindDataverseApi.d.ts.map +0 -1
- package/dist/Verbs/FindDataverseApi.js +0 -87
- package/dist/Verbs/FindDataverseApi.js.map +0 -1
- package/dist/Verbs/GetMaafApp.d.ts +0 -6
- package/dist/Verbs/GetMaafApp.d.ts.map +0 -1
- package/dist/Verbs/GetMaafApp.js +0 -80
- package/dist/Verbs/GetMaafApp.js.map +0 -1
- package/dist/Verbs/GetMaafBuildStatus.d.ts +0 -6
- package/dist/Verbs/GetMaafBuildStatus.d.ts.map +0 -1
- package/dist/Verbs/GetMaafBuildStatus.js +0 -132
- package/dist/Verbs/GetMaafBuildStatus.js.map +0 -1
- package/dist/Verbs/GetSettings.d.ts +0 -12
- package/dist/Verbs/GetSettings.d.ts.map +0 -1
- package/dist/Verbs/GetSettings.js +0 -39
- package/dist/Verbs/GetSettings.js.map +0 -1
- package/dist/Verbs/Init.d.ts +0 -6
- package/dist/Verbs/Init.d.ts.map +0 -1
- package/dist/Verbs/Init.js +0 -453
- package/dist/Verbs/Init.js.map +0 -1
- package/dist/Verbs/ListConnectionReferences.d.ts +0 -6
- package/dist/Verbs/ListConnectionReferences.d.ts.map +0 -1
- package/dist/Verbs/ListConnectionReferences.js +0 -56
- package/dist/Verbs/ListConnectionReferences.js.map +0 -1
- package/dist/Verbs/ListConnectorActions.d.ts +0 -6
- package/dist/Verbs/ListConnectorActions.d.ts.map +0 -1
- package/dist/Verbs/ListConnectorActions.js +0 -94
- package/dist/Verbs/ListConnectorActions.js.map +0 -1
- package/dist/Verbs/ListConnectors.d.ts +0 -6
- package/dist/Verbs/ListConnectors.d.ts.map +0 -1
- package/dist/Verbs/ListConnectors.js +0 -97
- package/dist/Verbs/ListConnectors.js.map +0 -1
- package/dist/Verbs/ListDatasets.d.ts +0 -6
- package/dist/Verbs/ListDatasets.d.ts.map +0 -1
- package/dist/Verbs/ListDatasets.js +0 -73
- package/dist/Verbs/ListDatasets.js.map +0 -1
- package/dist/Verbs/ListEnvironmentVariables.d.ts +0 -14
- package/dist/Verbs/ListEnvironmentVariables.d.ts.map +0 -1
- package/dist/Verbs/ListEnvironmentVariables.js +0 -52
- package/dist/Verbs/ListEnvironmentVariables.js.map +0 -1
- package/dist/Verbs/ListFlows.d.ts +0 -13
- package/dist/Verbs/ListFlows.d.ts.map +0 -1
- package/dist/Verbs/ListFlows.js +0 -73
- package/dist/Verbs/ListFlows.js.map +0 -1
- package/dist/Verbs/ListMaafApps.d.ts +0 -84
- package/dist/Verbs/ListMaafApps.d.ts.map +0 -1
- package/dist/Verbs/ListMaafApps.js +0 -221
- package/dist/Verbs/ListMaafApps.js.map +0 -1
- package/dist/Verbs/ListSqlStoredProcedures.d.ts +0 -6
- package/dist/Verbs/ListSqlStoredProcedures.d.ts.map +0 -1
- package/dist/Verbs/ListSqlStoredProcedures.js +0 -75
- package/dist/Verbs/ListSqlStoredProcedures.js.map +0 -1
- package/dist/Verbs/ListTables.d.ts +0 -6
- package/dist/Verbs/ListTables.d.ts.map +0 -1
- package/dist/Verbs/ListTables.js +0 -85
- package/dist/Verbs/ListTables.js.map +0 -1
- package/dist/Verbs/Login.d.ts +0 -6
- package/dist/Verbs/Login.d.ts.map +0 -1
- package/dist/Verbs/Login.js +0 -39
- package/dist/Verbs/Login.js.map +0 -1
- package/dist/Verbs/Logout.d.ts +0 -6
- package/dist/Verbs/Logout.d.ts.map +0 -1
- package/dist/Verbs/Logout.js +0 -34
- package/dist/Verbs/Logout.js.map +0 -1
- package/dist/Verbs/MaafAppPermissions.d.ts +0 -40
- package/dist/Verbs/MaafAppPermissions.d.ts.map +0 -1
- package/dist/Verbs/MaafAppPermissions.js +0 -651
- package/dist/Verbs/MaafAppPermissions.js.map +0 -1
- package/dist/Verbs/Pack.d.ts +0 -71
- package/dist/Verbs/Pack.d.ts.map +0 -1
- package/dist/Verbs/Pack.js +0 -370
- package/dist/Verbs/Pack.js.map +0 -1
- package/dist/Verbs/PlayMaafApp.d.ts +0 -22
- package/dist/Verbs/PlayMaafApp.d.ts.map +0 -1
- package/dist/Verbs/PlayMaafApp.js +0 -147
- package/dist/Verbs/PlayMaafApp.js.map +0 -1
- package/dist/Verbs/RefreshDataSource.d.ts +0 -21
- package/dist/Verbs/RefreshDataSource.d.ts.map +0 -1
- package/dist/Verbs/RefreshDataSource.js +0 -89
- package/dist/Verbs/RefreshDataSource.js.map +0 -1
- package/dist/Verbs/RefreshGitAuth.d.ts +0 -6
- package/dist/Verbs/RefreshGitAuth.d.ts.map +0 -1
- package/dist/Verbs/RefreshGitAuth.js +0 -155
- package/dist/Verbs/RefreshGitAuth.js.map +0 -1
- package/dist/Verbs/RemoveDataSource.d.ts +0 -6
- package/dist/Verbs/RemoveDataSource.d.ts.map +0 -1
- package/dist/Verbs/RemoveDataSource.js +0 -173
- package/dist/Verbs/RemoveDataSource.js.map +0 -1
- package/dist/Verbs/RemoveFlow.d.ts +0 -12
- package/dist/Verbs/RemoveFlow.d.ts.map +0 -1
- package/dist/Verbs/RemoveFlow.js +0 -95
- package/dist/Verbs/RemoveFlow.js.map +0 -1
- package/dist/Verbs/SetSetting.d.ts +0 -12
- package/dist/Verbs/SetSetting.d.ts.map +0 -1
- package/dist/Verbs/SetSetting.js +0 -133
- package/dist/Verbs/SetSetting.js.map +0 -1
- package/dist/Verbs/ShareLinkCreate.d.ts +0 -23
- package/dist/Verbs/ShareLinkCreate.d.ts.map +0 -1
- package/dist/Verbs/ShareLinkCreate.js +0 -73
- package/dist/Verbs/ShareLinkCreate.js.map +0 -1
- package/dist/Verbs/ShareLinkList.d.ts +0 -16
- package/dist/Verbs/ShareLinkList.d.ts.map +0 -1
- package/dist/Verbs/ShareLinkList.js +0 -84
- package/dist/Verbs/ShareLinkList.js.map +0 -1
- package/dist/Verbs/ShareLinkRevoke.d.ts +0 -22
- package/dist/Verbs/ShareLinkRevoke.d.ts.map +0 -1
- package/dist/Verbs/ShareLinkRevoke.js +0 -137
- package/dist/Verbs/ShareLinkRevoke.js.map +0 -1
- package/dist/Verbs/ShareList.d.ts +0 -10
- package/dist/Verbs/ShareList.d.ts.map +0 -1
- package/dist/Verbs/ShareList.js +0 -254
- package/dist/Verbs/ShareList.js.map +0 -1
- package/dist/Verbs/ShareMaafApp.d.ts +0 -12
- package/dist/Verbs/ShareMaafApp.d.ts.map +0 -1
- package/dist/Verbs/ShareMaafApp.js +0 -14
- package/dist/Verbs/ShareMaafApp.js.map +0 -1
- package/dist/Verbs/ShowMaafApp.d.ts +0 -100
- package/dist/Verbs/ShowMaafApp.d.ts.map +0 -1
- package/dist/Verbs/ShowMaafApp.js +0 -224
- package/dist/Verbs/ShowMaafApp.js.map +0 -1
- package/dist/Verbs/TelemetrySettings.d.ts +0 -8
- package/dist/Verbs/TelemetrySettings.d.ts.map +0 -1
- package/dist/Verbs/TelemetrySettings.js +0 -104
- package/dist/Verbs/TelemetrySettings.js.map +0 -1
- package/dist/Verbs/UnshareMaafApp.d.ts +0 -12
- package/dist/Verbs/UnshareMaafApp.d.ts.map +0 -1
- package/dist/Verbs/UnshareMaafApp.js +0 -14
- package/dist/Verbs/UnshareMaafApp.js.map +0 -1
- package/dist/Verbs/VerbConstants.d.ts +0 -629
- package/dist/Verbs/VerbConstants.d.ts.map +0 -1
- package/dist/Verbs/VerbConstants.js +0 -559
- package/dist/Verbs/VerbConstants.js.map +0 -1
- package/dist/Verbs/index.d.ts +0 -47
- package/dist/Verbs/index.d.ts.map +0 -1
- package/dist/Verbs/index.js +0 -47
- package/dist/Verbs/index.js.map +0 -1
package/dist/Utils/PinCli.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import type { IHttpClient } from '@microsoft/managed-apps-common/services';
|
|
5
|
-
/**
|
|
6
|
-
* Pins the CLI into an app's `package.json` as a `devDependency`, so the app
|
|
7
|
-
* carries a project-local `ms` (resolved by `npx ms` / `pnpm exec` / `bun x` ahead
|
|
8
|
-
* of any globally-installed CLI) and keeps building against a compatible CLI even
|
|
9
|
-
* if the developer's global CLI later moves on.
|
|
10
|
-
*
|
|
11
|
-
* The version to pin comes from `coerceCliVersion` (which uses `httpClient` for the
|
|
12
|
-
* registry lookup on prerelease/dev builds): the exact running version for a
|
|
13
|
-
* published release, or a caret range of the latest published version for a
|
|
14
|
-
* prerelease/dev build. When it can't resolve a publishable version — an
|
|
15
|
-
* unparseable version, or a prerelease with the registry unreachable — the pin is
|
|
16
|
-
* skipped with a warning rather than writing a spec that would `ETARGET` the
|
|
17
|
-
* consumer's `npm install`.
|
|
18
|
-
*
|
|
19
|
-
* Used by `ms app create` (right after the template is scaffolded) and `ms app
|
|
20
|
-
* init` (binding an existing project).
|
|
21
|
-
*
|
|
22
|
-
* Best-effort and non-fatal — the server-side app already exists by the time this
|
|
23
|
-
* runs:
|
|
24
|
-
* - No `package.json` in `appDir` (e.g. a custom `--template` that isn't an npm
|
|
25
|
-
* project) → nothing to pin; return quietly.
|
|
26
|
-
* - Read / parse / write failure → warn (outside `--json` mode) and continue.
|
|
27
|
-
*
|
|
28
|
-
* The entry overwrites any existing CLI `devDependencies` entry, and
|
|
29
|
-
* `devDependencies` is re-sorted alphabetically to match the npm convention so a
|
|
30
|
-
* later `install --save` won't reshuffle the file.
|
|
31
|
-
*/
|
|
32
|
-
export declare function pinCliIntoAppPackageJson(appDir: string, jsonMode: boolean, httpClient: IHttpClient): Promise<void>;
|
|
33
|
-
//# sourceMappingURL=PinCli.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PinCli.d.ts","sourceRoot":"","sources":["../../src/Utils/PinCli.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAQ3E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,WAAW,GACtB,OAAO,CAAC,IAAI,CAAC,CAoDf"}
|
package/dist/Utils/PinCli.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import * as fs from 'fs';
|
|
5
|
-
import * as path from 'path';
|
|
6
|
-
import packageJson from '../../package.json' with { type: 'json' };
|
|
7
|
-
import { coerceCliVersion } from './CoerceCliVersion.js';
|
|
8
|
-
import { printWarning } from './ConsoleOutput.js';
|
|
9
|
-
/**
|
|
10
|
-
* Pins the CLI into an app's `package.json` as a `devDependency`, so the app
|
|
11
|
-
* carries a project-local `ms` (resolved by `npx ms` / `pnpm exec` / `bun x` ahead
|
|
12
|
-
* of any globally-installed CLI) and keeps building against a compatible CLI even
|
|
13
|
-
* if the developer's global CLI later moves on.
|
|
14
|
-
*
|
|
15
|
-
* The version to pin comes from `coerceCliVersion` (which uses `httpClient` for the
|
|
16
|
-
* registry lookup on prerelease/dev builds): the exact running version for a
|
|
17
|
-
* published release, or a caret range of the latest published version for a
|
|
18
|
-
* prerelease/dev build. When it can't resolve a publishable version — an
|
|
19
|
-
* unparseable version, or a prerelease with the registry unreachable — the pin is
|
|
20
|
-
* skipped with a warning rather than writing a spec that would `ETARGET` the
|
|
21
|
-
* consumer's `npm install`.
|
|
22
|
-
*
|
|
23
|
-
* Used by `ms app create` (right after the template is scaffolded) and `ms app
|
|
24
|
-
* init` (binding an existing project).
|
|
25
|
-
*
|
|
26
|
-
* Best-effort and non-fatal — the server-side app already exists by the time this
|
|
27
|
-
* runs:
|
|
28
|
-
* - No `package.json` in `appDir` (e.g. a custom `--template` that isn't an npm
|
|
29
|
-
* project) → nothing to pin; return quietly.
|
|
30
|
-
* - Read / parse / write failure → warn (outside `--json` mode) and continue.
|
|
31
|
-
*
|
|
32
|
-
* The entry overwrites any existing CLI `devDependencies` entry, and
|
|
33
|
-
* `devDependencies` is re-sorted alphabetically to match the npm convention so a
|
|
34
|
-
* later `install --save` won't reshuffle the file.
|
|
35
|
-
*/
|
|
36
|
-
export async function pinCliIntoAppPackageJson(appDir, jsonMode, httpClient) {
|
|
37
|
-
const packageJsonPath = path.join(appDir, 'package.json');
|
|
38
|
-
// existsSync gate keeps the common "not an npm project" case off both the
|
|
39
|
-
// registry lookup and the warning paths below.
|
|
40
|
-
if (!fs.existsSync(packageJsonPath)) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
const pinVersion = await coerceCliVersion(httpClient);
|
|
44
|
-
if (!pinVersion) {
|
|
45
|
-
if (!jsonMode) {
|
|
46
|
-
printWarning(`Skipping the project-local CLI pin: '${packageJson.version}' is not a published ` +
|
|
47
|
-
`release and no published version could be resolved. Install '${packageJson.name}' ` +
|
|
48
|
-
`into the project manually if you want a project-local CLI.`);
|
|
49
|
-
}
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
// A substituted spec (prerelease → latest published) pins a different version
|
|
53
|
-
// than the running CLI; surface that so it isn't a silent swap.
|
|
54
|
-
if (!jsonMode && pinVersion !== packageJson.version) {
|
|
55
|
-
printWarning(`'${packageJson.version}' is a prerelease build; pinning the latest published CLI ` +
|
|
56
|
-
`('${pinVersion}') into the app instead.`);
|
|
57
|
-
}
|
|
58
|
-
try {
|
|
59
|
-
const manifest = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
|
60
|
-
manifest.devDependencies = Object.fromEntries(Object.entries({
|
|
61
|
-
...manifest.devDependencies,
|
|
62
|
-
[packageJson.name]: pinVersion,
|
|
63
|
-
// Explicit 'en' locale keeps the sort order deterministic across hosts
|
|
64
|
-
// (a bare localeCompare follows the machine's default collation).
|
|
65
|
-
}).sort(([a], [b]) => a.localeCompare(b, 'en')));
|
|
66
|
-
// JSON.stringify drops the trailing newline every scaffolder emits; re-add it.
|
|
67
|
-
fs.writeFileSync(packageJsonPath, `${JSON.stringify(manifest, null, 2)}\n`);
|
|
68
|
-
}
|
|
69
|
-
catch (err) {
|
|
70
|
-
if (!jsonMode) {
|
|
71
|
-
printWarning(`Could not pin '${packageJson.name}' into ${packageJsonPath} ` +
|
|
72
|
-
`(${err instanceof Error ? err.message : String(err)}). Add ` +
|
|
73
|
-
`"${packageJson.name}": "${pinVersion}" to devDependencies manually.`);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=PinCli.js.map
|
package/dist/Utils/PinCli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PinCli.js","sourceRoot":"","sources":["../../src/Utils/PinCli.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,WAAW,MAAM,oBAAoB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,MAAc,EACd,QAAiB,EACjB,UAAuB;IAEvB,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC1D,0EAA0E;IAC1E,+CAA+C;IAC/C,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;QACpC,OAAO;IACT,CAAC;IAED,MAAM,UAAU,GAAG,MAAM,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACtD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,YAAY,CACV,wCAAwC,WAAW,CAAC,OAAO,uBAAuB;gBAChF,gEAAgE,WAAW,CAAC,IAAI,IAAI;gBACpF,4DAA4D,CAC/D,CAAC;QACJ,CAAC;QACD,OAAO;IACT,CAAC;IACD,8EAA8E;IAC9E,gEAAgE;IAChE,IAAI,CAAC,QAAQ,IAAI,UAAU,KAAK,WAAW,CAAC,OAAO,EAAE,CAAC;QACpD,YAAY,CACV,IAAI,WAAW,CAAC,OAAO,4DAA4D;YACjF,KAAK,UAAU,0BAA0B,CAC5C,CAAC;IACJ,CAAC;IAED,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAGnE,CAAC;QACF,QAAQ,CAAC,eAAe,GAAG,MAAM,CAAC,WAAW,CAC3C,MAAM,CAAC,OAAO,CAAC;YACb,GAAG,QAAQ,CAAC,eAAe;YAC3B,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,UAAU;YAC9B,uEAAuE;YACvE,kEAAkE;SACnE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAChD,CAAC;QACF,+EAA+E;QAC/E,EAAE,CAAC,aAAa,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9E,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,YAAY,CACV,kBAAkB,WAAW,CAAC,IAAI,UAAU,eAAe,GAAG;gBAC5D,IAAI,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS;gBAC7D,IAAI,WAAW,CAAC,IAAI,OAAO,UAAU,gCAAgC,CACxE,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
export interface PackageJson {
|
|
5
|
-
scripts?: Record<string, string>;
|
|
6
|
-
packageManager?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function readPackageJson(projectRoot: string): PackageJson;
|
|
9
|
-
//# sourceMappingURL=ReadPackageJson.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadPackageJson.d.ts","sourceRoot":"","sources":["../../src/Utils/ReadPackageJson.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,CAMhE"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import * as fs from 'fs';
|
|
5
|
-
import * as path from 'path';
|
|
6
|
-
export function readPackageJson(projectRoot) {
|
|
7
|
-
const pkgPath = path.join(projectRoot, 'package.json');
|
|
8
|
-
if (!fs.existsSync(pkgPath)) {
|
|
9
|
-
return {};
|
|
10
|
-
}
|
|
11
|
-
return JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=ReadPackageJson.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReadPackageJson.js","sourceRoot":"","sources":["../../src/Utils/ReadPackageJson.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAO7B,MAAM,UAAU,eAAe,CAAC,WAAmB;IACjD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IACvD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAgB,CAAC;AACrE,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import type { MaafAppDefinition, ManagedAppRepoType } from '@microsoft/managed-apps-actions';
|
|
5
|
-
/** Display-ready repository classification + clone URL derived from a `MaafAppDefinition`. */
|
|
6
|
-
export type RepoDetails = {
|
|
7
|
-
/**
|
|
8
|
-
* Repository-type label for display. Known {@link ManagedAppRepoType} values
|
|
9
|
-
* are mapped to friendly labels; unknown/forward-compat values pass through
|
|
10
|
-
* as the raw server string (see {@link friendlyRepoType}).
|
|
11
|
-
*/
|
|
12
|
-
repoType?: string;
|
|
13
|
-
/** Git clone URL for the backing repository, when applicable. */
|
|
14
|
-
cloneUrl?: string;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Maps the raw {@link ManagedAppRepoType} enum returned by the server to a
|
|
18
|
-
* human-friendly label for display. Unknown/forward-compat values fall through
|
|
19
|
-
* to the raw string; `undefined` (legacy apps with no source-control metadata)
|
|
20
|
-
* yields `undefined` so callers can omit the line entirely.
|
|
21
|
-
*/
|
|
22
|
-
export declare function friendlyRepoType(repoType: ManagedAppRepoType | undefined): string | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Derives the display-ready {@link RepoDetails} from an app definition. Returns
|
|
25
|
-
* `undefined` when the app exposes no source-control metadata at all (no
|
|
26
|
-
* `repoType` and no `cloneUrl`), so callers can omit the lines entirely.
|
|
27
|
-
*/
|
|
28
|
-
export declare function toRepoDetails(app: Pick<MaafAppDefinition, 'repoType' | 'cloneUrl'>): RepoDetails | undefined;
|
|
29
|
-
//# sourceMappingURL=RepoDetails.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepoDetails.d.ts","sourceRoot":"","sources":["../../src/Utils/RepoDetails.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE7F,8FAA8F;AAC9F,MAAM,MAAM,WAAW,GAAG;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAa7F;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,UAAU,CAAC,GACpD,WAAW,GAAG,SAAS,CAOzB"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Maps the raw {@link ManagedAppRepoType} enum returned by the server to a
|
|
6
|
-
* human-friendly label for display. Unknown/forward-compat values fall through
|
|
7
|
-
* to the raw string; `undefined` (legacy apps with no source-control metadata)
|
|
8
|
-
* yields `undefined` so callers can omit the line entirely.
|
|
9
|
-
*/
|
|
10
|
-
export function friendlyRepoType(repoType) {
|
|
11
|
-
switch (repoType) {
|
|
12
|
-
case undefined:
|
|
13
|
-
return undefined;
|
|
14
|
-
case 'Native':
|
|
15
|
-
return 'Platform-managed Git repository';
|
|
16
|
-
case 'ExternallyProvidedBuild':
|
|
17
|
-
return 'Externally provided build (no source)';
|
|
18
|
-
case 'ExternalGitProviderBound':
|
|
19
|
-
return 'External Git provider';
|
|
20
|
-
default:
|
|
21
|
-
return repoType;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Derives the display-ready {@link RepoDetails} from an app definition. Returns
|
|
26
|
-
* `undefined` when the app exposes no source-control metadata at all (no
|
|
27
|
-
* `repoType` and no `cloneUrl`), so callers can omit the lines entirely.
|
|
28
|
-
*/
|
|
29
|
-
export function toRepoDetails(app) {
|
|
30
|
-
const repoType = friendlyRepoType(app.repoType);
|
|
31
|
-
const cloneUrl = app.cloneUrl ?? undefined;
|
|
32
|
-
if (!repoType && !cloneUrl) {
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
return { repoType, cloneUrl };
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=RepoDetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepoDetails.js","sourceRoot":"","sources":["../../src/Utils/RepoDetails.ts"],"names":[],"mappings":"AAAA;;GAEG;AAgBH;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAAwC;IACvE,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,iCAAiC,CAAC;QAC3C,KAAK,yBAAyB;YAC5B,OAAO,uCAAuC,CAAC;QACjD,KAAK,0BAA0B;YAC7B,OAAO,uBAAuB,CAAC;QACjC;YACE,OAAO,QAAQ,CAAC;IACpB,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,GAAqD;IAErD,MAAM,QAAQ,GAAG,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,SAAS,CAAC;IAC3C,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC3B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;AAChC,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import type { RepoType } from '@microsoft/managed-apps-common/config';
|
|
5
|
-
/**
|
|
6
|
-
* Returns `true` when `value` looks like a GRS repository id (a GUID). Callers use this to
|
|
7
|
-
* overload `--repo` so it accepts either an external repo URL or an existing platform-managed
|
|
8
|
-
* (GRS) repository id. Trims surrounding whitespace before matching.
|
|
9
|
-
*/
|
|
10
|
-
export declare function isGrsRepositoryId(value: string): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Result of parsing the `--repo` flag value.
|
|
13
|
-
*
|
|
14
|
-
* - `native` (default): MAAF auto-provisions a platform-managed git repo, no remote URL.
|
|
15
|
-
* - `none`: source-control-free; no platform-managed repo, no remote URL.
|
|
16
|
-
* - `github`: bound to an external GitHub Enterprise repo at `remoteUrl`.
|
|
17
|
-
*
|
|
18
|
-
* `remoteUrl` is populated only when `repoType === 'github'`. This is a flat
|
|
19
|
-
* interface (not a discriminated union), so `if (repoType === 'github')` does NOT
|
|
20
|
-
* auto-narrow `remoteUrl` to `string`; github-branch use sites assert `remoteUrl!`.
|
|
21
|
-
*/
|
|
22
|
-
export interface RepoSelection {
|
|
23
|
-
repoType: RepoType;
|
|
24
|
-
remoteUrl: string | undefined;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Maps the raw `--repo` flag value to a `(repoType, remoteUrl)` pair.
|
|
28
|
-
* - omitted / empty → `native` (default GRS-backed flow)
|
|
29
|
-
* - `native` (case-insensitive) → `native` (explicit GRS flow; caller skips git detection)
|
|
30
|
-
* - `none` (case-insensitive) → `none` (no GRS, no local setup)
|
|
31
|
-
* - any other non-empty value → `github` (external GHE binding, the trimmed value
|
|
32
|
-
* flows through as `remoteUrl` to the action and the eventual git clone)
|
|
33
|
-
*
|
|
34
|
-
* Runtime invariant: `remoteUrl` is set iff `repoType === 'github'`. Consumers
|
|
35
|
-
* branch on `repoType` and assert `remoteUrl!` at github use sites — see
|
|
36
|
-
* `RepoSelection` for why narrowing is not automatic.
|
|
37
|
-
*
|
|
38
|
-
* Lives in `Utils/` (not `Verbs/CreateMaafApp.ts`) so the lightweight `app init`
|
|
39
|
-
* verb can call it without pulling in `giget`/`child_process` from CreateMaafApp.
|
|
40
|
-
*/
|
|
41
|
-
export declare function parseRepoOption(rawRepoValue: string | undefined): RepoSelection;
|
|
42
|
-
//# sourceMappingURL=RepoOption.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepoOption.d.ts","sourceRoot":"","sources":["../../src/Utils/RepoOption.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AA4BtE;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,CAY/E"}
|
package/dist/Utils/RepoOption.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Sentinel value for `--repo` that selects the no-source-control flow: just create the
|
|
6
|
-
* server-side app record, write `ms.config.json` with `repoType: 'none'`, and skip every
|
|
7
|
-
* local-setup step (git init/clone, template overlay, GCM config) plus the server-side
|
|
8
|
-
* GRS auto-provisioning. Comparison is case-insensitive — `none`, `None`, `NONE` all
|
|
9
|
-
* select this flow. Any other non-empty `--repo` value is treated as a remote URL.
|
|
10
|
-
*/
|
|
11
|
-
const REPO_NONE_SENTINEL = 'none';
|
|
12
|
-
/**
|
|
13
|
-
* Sentinel value for `--repo` that forces the platform-managed (native / GRS) flow
|
|
14
|
-
* deterministically: create the server-side app record, provision a platform-managed GRS
|
|
15
|
-
* repo, and write `ms.config.json` with `repoType: 'native'` — **without** inspecting the
|
|
16
|
-
* ambient git working tree. This lets automated callers (e.g. `power-apps migrate`) opt into
|
|
17
|
-
* native even when the target directory happens to sit inside another git repo, where an
|
|
18
|
-
* omitted `--repo` would otherwise auto-bind a parent remote. Comparison is case-insensitive
|
|
19
|
-
* — `native`, `Native`, `NATIVE` all select this flow.
|
|
20
|
-
*/
|
|
21
|
-
const REPO_NATIVE_SENTINEL = 'native';
|
|
22
|
-
/**
|
|
23
|
-
* Matches a GRS repository id — a GUID. Used to disambiguate a `--repo` value that is a
|
|
24
|
-
* platform-managed (GRS) repository id from an external repository URL. Case-insensitive.
|
|
25
|
-
*/
|
|
26
|
-
const GRS_REPOSITORY_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
27
|
-
/**
|
|
28
|
-
* Returns `true` when `value` looks like a GRS repository id (a GUID). Callers use this to
|
|
29
|
-
* overload `--repo` so it accepts either an external repo URL or an existing platform-managed
|
|
30
|
-
* (GRS) repository id. Trims surrounding whitespace before matching.
|
|
31
|
-
*/
|
|
32
|
-
export function isGrsRepositoryId(value) {
|
|
33
|
-
return GRS_REPOSITORY_ID_PATTERN.test(value.trim());
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Maps the raw `--repo` flag value to a `(repoType, remoteUrl)` pair.
|
|
37
|
-
* - omitted / empty → `native` (default GRS-backed flow)
|
|
38
|
-
* - `native` (case-insensitive) → `native` (explicit GRS flow; caller skips git detection)
|
|
39
|
-
* - `none` (case-insensitive) → `none` (no GRS, no local setup)
|
|
40
|
-
* - any other non-empty value → `github` (external GHE binding, the trimmed value
|
|
41
|
-
* flows through as `remoteUrl` to the action and the eventual git clone)
|
|
42
|
-
*
|
|
43
|
-
* Runtime invariant: `remoteUrl` is set iff `repoType === 'github'`. Consumers
|
|
44
|
-
* branch on `repoType` and assert `remoteUrl!` at github use sites — see
|
|
45
|
-
* `RepoSelection` for why narrowing is not automatic.
|
|
46
|
-
*
|
|
47
|
-
* Lives in `Utils/` (not `Verbs/CreateMaafApp.ts`) so the lightweight `app init`
|
|
48
|
-
* verb can call it without pulling in `giget`/`child_process` from CreateMaafApp.
|
|
49
|
-
*/
|
|
50
|
-
export function parseRepoOption(rawRepoValue) {
|
|
51
|
-
if (rawRepoValue === undefined || rawRepoValue === '') {
|
|
52
|
-
return { repoType: 'native', remoteUrl: undefined };
|
|
53
|
-
}
|
|
54
|
-
const trimmed = rawRepoValue.trim();
|
|
55
|
-
if (trimmed.toLowerCase() === REPO_NATIVE_SENTINEL) {
|
|
56
|
-
return { repoType: 'native', remoteUrl: undefined };
|
|
57
|
-
}
|
|
58
|
-
if (trimmed.toLowerCase() === REPO_NONE_SENTINEL) {
|
|
59
|
-
return { repoType: 'none', remoteUrl: undefined };
|
|
60
|
-
}
|
|
61
|
-
return { repoType: 'github', remoteUrl: trimmed };
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=RepoOption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepoOption.js","sourceRoot":"","sources":["../../src/Utils/RepoOption.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;;;;;GAMG;AACH,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAElC;;;;;;;;GAQG;AACH,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAEtC;;;GAGG;AACH,MAAM,yBAAyB,GAAG,iEAAiE,CAAC;AAEpG;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC7C,OAAO,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;AACtD,CAAC;AAkBD;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,eAAe,CAAC,YAAgC;IAC9D,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,EAAE,EAAE,CAAC;QACtD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;IACtD,CAAC;IACD,MAAM,OAAO,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC;IACpC,IAAI,OAAO,CAAC,WAAW,EAAE,KAAK,oBAAoB,EAAE,CAAC;QACnD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;IACtD,CAAC;IACD,IAAI,OAAO,CAAC,WAAW,EAAE,KAAK,kBAAkB,EAAE,CAAC;QACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;IACpD,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AACpD,CAAC"}
|
package/dist/Utils/RepoUrl.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Re-export of the canonical generic remote URL splitter. The implementation
|
|
6
|
-
* lives in `@microsoft/managed-apps-common/utils` so the actions package and
|
|
7
|
-
* the CLI agree on a single splitter; this file preserves the historical CLI
|
|
8
|
-
* import path for existing consumers.
|
|
9
|
-
*
|
|
10
|
-
* The CLI no longer performs scheme/host/shape validation on repo URLs — the
|
|
11
|
-
* server is the sole authority on URL acceptability. `parseRemoteUrl` is a
|
|
12
|
-
* best-effort splitter used purely for OAuth dispatch host extraction and
|
|
13
|
-
* PII-safe telemetry shaping.
|
|
14
|
-
*/
|
|
15
|
-
export type { ParsedRemoteUrl } from '@microsoft/managed-apps-common/utils';
|
|
16
|
-
export { parseRemoteUrl } from '@microsoft/managed-apps-common/utils';
|
|
17
|
-
export { computeRepoHash } from '@microsoft/managed-apps-common/utils/RepoHash';
|
|
18
|
-
//# sourceMappingURL=RepoUrl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepoUrl.d.ts","sourceRoot":"","sources":["../../src/Utils/RepoUrl.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;GAUG;AAEH,YAAY,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC"}
|
package/dist/Utils/RepoUrl.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepoUrl.js","sourceRoot":"","sources":["../../src/Utils/RepoUrl.ts"],"names":[],"mappings":"AAAA;;GAEG;AAeH,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import type { CommandTree, NounKey, ResolvedCommand } from '../Types/Command.types.js';
|
|
5
|
-
/**
|
|
6
|
-
* Resolves command-line tokens against the command tree.
|
|
7
|
-
*
|
|
8
|
-
* Every command lives under a noun, so the minimum match is 2 tokens (noun + verb).
|
|
9
|
-
* Typed verbs may nest arbitrarily, so a command path can be any depth (e.g.
|
|
10
|
-
* `app add table` is 3 tokens, `app share link create` is 4). The walker
|
|
11
|
-
* descends as deep as it can; when a typed verb has its own handler ("hybrid"
|
|
12
|
-
* verb, like `app share`) and the next token is **not** a known subcommand,
|
|
13
|
-
* it falls back to the parent handler so the remaining tokens become
|
|
14
|
-
* positional arguments — letting `ms app share alice@contoso.com` route to
|
|
15
|
-
* the `share` handler. When the next token IS a known sub-group of the
|
|
16
|
-
* typed verb but no leaf is reached, we return null instead of falling back,
|
|
17
|
-
* so callers can surface group help rather than misinterpret the sub-group
|
|
18
|
-
* name as a positional argument.
|
|
19
|
-
*
|
|
20
|
-
* @param argv - The full process.argv array (argv[0] = node, argv[1] = script)
|
|
21
|
-
* @param tree - The command tree to resolve against
|
|
22
|
-
* @returns The resolved command, or null if no match was found
|
|
23
|
-
*/
|
|
24
|
-
export declare function resolveCommand(argv: readonly string[], tree: CommandTree): ResolvedCommand | null;
|
|
25
|
-
/**
|
|
26
|
-
* Describes a partially-resolved typed-verb path. Returned by
|
|
27
|
-
* `findIncompleteTypedPath` when argv tokens reach a typed verb group but
|
|
28
|
-
* stop short of (or overshoot) any leaf command.
|
|
29
|
-
*/
|
|
30
|
-
export interface IncompleteTypedPath {
|
|
31
|
-
/** Tokens that matched the command tree along a typed-verb path, e.g. ['app','share','link']. */
|
|
32
|
-
pathTokens: readonly string[];
|
|
33
|
-
/** The next non-flag argv token after `pathTokens` if it failed to match a sub-key, else undefined. */
|
|
34
|
-
unknownToken: string | undefined;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Walks argv tokens along the command tree to detect an incomplete typed-verb
|
|
38
|
-
* path — i.e. a path that reached one or more typed verbs (groups) but did not
|
|
39
|
-
* land on a leaf command. Used by `ArgumentProvider` (when `resolveCommand`
|
|
40
|
-
* returns null) to either:
|
|
41
|
-
*
|
|
42
|
-
* - print the typed group's flattened help (when no extra non-flag token
|
|
43
|
-
* follows, e.g. `ms app share link` or `ms app add --connector shared_sql`), or
|
|
44
|
-
* - throw an "Unknown type 'X' for 'ms <path>'" error (when a bogus
|
|
45
|
-
* sub-token follows, e.g. `ms app share link bogus`).
|
|
46
|
-
*
|
|
47
|
-
* Returns null when the path is fully resolvable, when the noun is unknown,
|
|
48
|
-
* when only a noun is provided, or when the second token is not a typed verb
|
|
49
|
-
* (those cases are handled elsewhere in `ArgumentProvider`).
|
|
50
|
-
*/
|
|
51
|
-
export declare function findIncompleteTypedPath(argv: readonly string[], tree: CommandTree): IncompleteTypedPath | null;
|
|
52
|
-
/**
|
|
53
|
-
* Checks whether the given token is a known noun in the command tree.
|
|
54
|
-
* Used to distinguish `ms app` (show noun help) from `ms nonexistent` (error).
|
|
55
|
-
*/
|
|
56
|
-
export declare function isKnownNoun(token: string, tree: CommandTree): token is NounKey;
|
|
57
|
-
/**
|
|
58
|
-
* Checks whether the given noun + verb combination has typed subcommands.
|
|
59
|
-
* Used to show the type-picker help for `ms app add --help`.
|
|
60
|
-
*/
|
|
61
|
-
export declare function hasTypedSubcommands(noun: string, verb: string, tree: CommandTree): boolean;
|
|
62
|
-
//# sourceMappingURL=ResolveCommand.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResolveCommand.d.ts","sourceRoot":"","sources":["../../src/Utils/ResolveCommand.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAEV,WAAW,EAEX,OAAO,EACP,eAAe,EAEhB,MAAM,wBAAwB,CAAC;AAGhC;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,GAAG,eAAe,GAAG,IAAI,CAWjG;AA0DD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iGAAiG;IACjG,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,uGAAuG;IACvG,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,IAAI,EAAE,WAAW,GAChB,mBAAmB,GAAG,IAAI,CA8B5B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,KAAK,IAAI,OAAO,CAE9E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAK1F"}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
import { getCommandEntry, hasParentHandler, isTypedVerbDef } from '../Types/Command.types.js';
|
|
5
|
-
/**
|
|
6
|
-
* Resolves command-line tokens against the command tree.
|
|
7
|
-
*
|
|
8
|
-
* Every command lives under a noun, so the minimum match is 2 tokens (noun + verb).
|
|
9
|
-
* Typed verbs may nest arbitrarily, so a command path can be any depth (e.g.
|
|
10
|
-
* `app add table` is 3 tokens, `app share link create` is 4). The walker
|
|
11
|
-
* descends as deep as it can; when a typed verb has its own handler ("hybrid"
|
|
12
|
-
* verb, like `app share`) and the next token is **not** a known subcommand,
|
|
13
|
-
* it falls back to the parent handler so the remaining tokens become
|
|
14
|
-
* positional arguments — letting `ms app share alice@contoso.com` route to
|
|
15
|
-
* the `share` handler. When the next token IS a known sub-group of the
|
|
16
|
-
* typed verb but no leaf is reached, we return null instead of falling back,
|
|
17
|
-
* so callers can surface group help rather than misinterpret the sub-group
|
|
18
|
-
* name as a positional argument.
|
|
19
|
-
*
|
|
20
|
-
* @param argv - The full process.argv array (argv[0] = node, argv[1] = script)
|
|
21
|
-
* @param tree - The command tree to resolve against
|
|
22
|
-
* @returns The resolved command, or null if no match was found
|
|
23
|
-
*/
|
|
24
|
-
export function resolveCommand(argv, tree) {
|
|
25
|
-
const tokens = argv.slice(2);
|
|
26
|
-
if (tokens.length === 0 || tokens[0].startsWith('-')) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
const [t0] = tokens;
|
|
30
|
-
if (!isKnownNoun(t0, tree))
|
|
31
|
-
return null;
|
|
32
|
-
return walkCommands(tree[t0].commands, tokens, 1, [t0]);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Recursively walks the command tree, consuming one token per level.
|
|
36
|
-
*
|
|
37
|
-
* When the current token names a typed verb, we look at the *next* token to
|
|
38
|
-
* decide whether the user meant to drill deeper or pass a positional argument
|
|
39
|
-
* to a hybrid parent:
|
|
40
|
-
*
|
|
41
|
-
* - If the next token is a known sub-key of this typed verb, the user clearly
|
|
42
|
-
* intended to drill in. We descend and **do not** fall back to a hybrid
|
|
43
|
-
* ancestor if the deeper walk fails to reach a leaf — otherwise
|
|
44
|
-
* `ms app share link` would re-resolve as `ms app share <link>`, treating
|
|
45
|
-
* "link" as a positional principal. Returning null here lets
|
|
46
|
-
* `ArgumentProvider` surface the typed-group help (or an "Unknown type"
|
|
47
|
-
* error if a bogus sub-token follows).
|
|
48
|
-
*
|
|
49
|
-
* - If the next token is missing, a flag, or unrelated to this typed verb's
|
|
50
|
-
* children, we fall back to the typed verb's own handler when it has one
|
|
51
|
-
* (hybrid verb), so `ms app share alice@contoso.com` routes to `share`
|
|
52
|
-
* with `alice@contoso.com` as a positional argument.
|
|
53
|
-
*/
|
|
54
|
-
function walkCommands(commands, tokens, index, path) {
|
|
55
|
-
if (index >= tokens.length)
|
|
56
|
-
return null;
|
|
57
|
-
const token = tokens[index];
|
|
58
|
-
if (token.startsWith('-'))
|
|
59
|
-
return null;
|
|
60
|
-
const entry = getCommandEntry(commands, token);
|
|
61
|
-
if (!entry)
|
|
62
|
-
return null;
|
|
63
|
-
const nextPath = [...path, token];
|
|
64
|
-
if (!isTypedVerbDef(entry)) {
|
|
65
|
-
return { path: nextPath, handler: entry.handler, tokensConsumed: index + 1 };
|
|
66
|
-
}
|
|
67
|
-
const next = tokens[index + 1];
|
|
68
|
-
const nextIsKnownSub = next !== undefined &&
|
|
69
|
-
!next.startsWith('-') &&
|
|
70
|
-
getCommandEntry(entry.commands, next) !== undefined;
|
|
71
|
-
if (nextIsKnownSub) {
|
|
72
|
-
return walkCommands(entry.commands, tokens, index + 1, nextPath);
|
|
73
|
-
}
|
|
74
|
-
if (hasParentHandler(entry)) {
|
|
75
|
-
return { path: nextPath, handler: entry.handler, tokensConsumed: index + 1 };
|
|
76
|
-
}
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Walks argv tokens along the command tree to detect an incomplete typed-verb
|
|
81
|
-
* path — i.e. a path that reached one or more typed verbs (groups) but did not
|
|
82
|
-
* land on a leaf command. Used by `ArgumentProvider` (when `resolveCommand`
|
|
83
|
-
* returns null) to either:
|
|
84
|
-
*
|
|
85
|
-
* - print the typed group's flattened help (when no extra non-flag token
|
|
86
|
-
* follows, e.g. `ms app share link` or `ms app add --connector shared_sql`), or
|
|
87
|
-
* - throw an "Unknown type 'X' for 'ms <path>'" error (when a bogus
|
|
88
|
-
* sub-token follows, e.g. `ms app share link bogus`).
|
|
89
|
-
*
|
|
90
|
-
* Returns null when the path is fully resolvable, when the noun is unknown,
|
|
91
|
-
* when only a noun is provided, or when the second token is not a typed verb
|
|
92
|
-
* (those cases are handled elsewhere in `ArgumentProvider`).
|
|
93
|
-
*/
|
|
94
|
-
export function findIncompleteTypedPath(argv, tree) {
|
|
95
|
-
// Stop at the first flag token so flag *values* (e.g. `shared_sql` in
|
|
96
|
-
// `--connector shared_sql`) are not misclassified as subcommand/type tokens.
|
|
97
|
-
const allTokens = argv.slice(2);
|
|
98
|
-
const firstFlagIndex = allTokens.findIndex((t) => t.startsWith('-'));
|
|
99
|
-
const tokens = firstFlagIndex === -1 ? allTokens : allTokens.slice(0, firstFlagIndex);
|
|
100
|
-
if (tokens.length < 2)
|
|
101
|
-
return null;
|
|
102
|
-
const [noun, ...rest] = tokens;
|
|
103
|
-
if (!isKnownNoun(noun, tree))
|
|
104
|
-
return null;
|
|
105
|
-
let commands = tree[noun].commands;
|
|
106
|
-
const pathTokens = [noun];
|
|
107
|
-
let inTypedGroup = false;
|
|
108
|
-
for (const token of rest) {
|
|
109
|
-
const entry = getCommandEntry(commands, token);
|
|
110
|
-
if (!entry) {
|
|
111
|
-
return inTypedGroup ? { pathTokens, unknownToken: token } : null;
|
|
112
|
-
}
|
|
113
|
-
if (!isTypedVerbDef(entry)) {
|
|
114
|
-
// Matched a leaf — `resolveCommand` already handles this fully.
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
pathTokens.push(token);
|
|
118
|
-
commands = entry.commands;
|
|
119
|
-
inTypedGroup = true;
|
|
120
|
-
}
|
|
121
|
-
return inTypedGroup ? { pathTokens, unknownToken: undefined } : null;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Checks whether the given token is a known noun in the command tree.
|
|
125
|
-
* Used to distinguish `ms app` (show noun help) from `ms nonexistent` (error).
|
|
126
|
-
*/
|
|
127
|
-
export function isKnownNoun(token, tree) {
|
|
128
|
-
return token in tree;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Checks whether the given noun + verb combination has typed subcommands.
|
|
132
|
-
* Used to show the type-picker help for `ms app add --help`.
|
|
133
|
-
*/
|
|
134
|
-
export function hasTypedSubcommands(noun, verb, tree) {
|
|
135
|
-
if (!isKnownNoun(noun, tree))
|
|
136
|
-
return false;
|
|
137
|
-
const nounDef = tree[noun];
|
|
138
|
-
const verbEntry = nounDef.commands[verb];
|
|
139
|
-
return verbEntry !== undefined && isTypedVerbDef(verbEntry);
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=ResolveCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResolveCommand.js","sourceRoot":"","sources":["../../src/Utils/ResolveCommand.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
export interface RunCommandOptions {
|
|
5
|
-
/**
|
|
6
|
-
* When true, the child process's stdout/stderr are captured rather than inherited so
|
|
7
|
-
* the parent's stdout stays clean (e.g. JSON-mode callers). On failure the captured
|
|
8
|
-
* stderr is included in the thrown AppError's message; stdout is used as a fallback
|
|
9
|
-
* when stderr is silent (some toolchains route diagnostics through stdout).
|
|
10
|
-
*/
|
|
11
|
-
quiet?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Per-stream tail cap (in bytes) for quiet-mode capture. Defaults to
|
|
14
|
-
* {@link CAPTURE_TAIL_CAP_BYTES} (8 KB). Override when a caller needs a smaller or
|
|
15
|
-
* larger diagnostic tail than the default (e.g. very chatty toolchains that flush a
|
|
16
|
-
* relevant stack trace beyond 8 KB, or extra-small callers writing to a constrained
|
|
17
|
-
* telemetry sink). Ignored when `quiet` is false.
|
|
18
|
-
*/
|
|
19
|
-
captureTailCapBytes?: number;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Default per-stream tail cap for quiet-mode capture. A chatty `--verbose` build can
|
|
23
|
-
* spew tens or hundreds of MB; that whole payload would otherwise land in
|
|
24
|
-
* `AppError.message`, the JSON `errorMessage`, and the `trackErrorEvent` OneDS event.
|
|
25
|
-
* We keep only the tail — which is where the actual failure diagnostic lives — and
|
|
26
|
-
* prepend a marker line so the consumer knows truncation happened.
|
|
27
|
-
*
|
|
28
|
-
* 8 KB ≈ 8000 characters of mostly-ASCII tool output (~100 lines at 80 cols) — enough
|
|
29
|
-
* to capture a typical stack trace or compiler diagnostic without bloating telemetry.
|
|
30
|
-
*/
|
|
31
|
-
export declare const CAPTURE_TAIL_CAP_BYTES: number;
|
|
32
|
-
export declare function runCommandAsync(command: string, cwd: string, options?: RunCommandOptions): Promise<void>;
|
|
33
|
-
//# sourceMappingURL=RunCommand.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RunCommand.d.ts","sourceRoot":"","sources":["../../src/Utils/RunCommand.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,QAAW,CAAC;AAuC/C,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAmCf"}
|