@microsoft/cmr-cli 0.32.3 → 0.33.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.
Files changed (115) hide show
  1. package/dist/{Add-FU57YE5G.js → Add-75RSJNM4.js} +2 -2
  2. package/dist/{AddConfig-CI7KNLIG.js → AddConfig-4SAYYOBQ.js} +2 -2
  3. package/dist/{AddConnector-WH4IU3ND.js → AddConnector-P4R4NJ5P.js} +2 -2
  4. package/dist/{AddDeployment-GWFCPAL5.js → AddDeployment-TBA3AAGD.js} +2 -2
  5. package/dist/{AddDeploymentBinding-RFLI6DKH.js → AddDeploymentBinding-6FZ7Y5JM.js} +2 -2
  6. package/dist/{AddRayfin-VRCFEOIL.js → AddRayfin-35GBGCWF.js} +2 -2
  7. package/dist/{Alter-JFFT5JOA.js → Alter-U7WDVOMU.js} +2 -2
  8. package/dist/{AuthStatus-WCZYGI5G.js → AuthStatus-XA6RGYYZ.js} +2 -2
  9. package/dist/{AuthSwitch-XJMG7IUR.js → AuthSwitch-2FXB7WFU.js} +2 -2
  10. package/dist/Bin.js +1 -1
  11. package/dist/{BuildMaafApp-7AUZHYOQ.js → BuildMaafApp-3EGRD23G.js} +2 -2
  12. package/dist/{Clear-7B7CDIPV.js → Clear-MZGQZ2XK.js} +2 -2
  13. package/dist/{Cli-XZ4SJKBZ.js → Cli-6A2HUP7R.js} +3 -3
  14. package/dist/{CloneMaafApp-7W246RZA.js → CloneMaafApp-YAEYSP23.js} +2 -2
  15. package/dist/CreateMaafApp-2XYROOHB.js +23 -0
  16. package/dist/CreateMaafProject-Q7KIVAR2.js +11 -0
  17. package/dist/{DeleteMaafApp-TFGWGJO3.js → DeleteMaafApp-G3SL3GGP.js} +2 -2
  18. package/dist/DeployMaafApp-DBJONCUH.js +8 -0
  19. package/dist/DeployMaafProject-SOMMKVJO.js +11 -0
  20. package/dist/{DeploymentApprovals-WTXBXCKE.js → DeploymentApprovals-Y67LSQQG.js} +2 -2
  21. package/dist/{Dev-CIEWFRXR.js → Dev-TXJLPT7K.js} +3 -3
  22. package/dist/FeatureSettings-LYV6QUZB.js +11 -0
  23. package/dist/{GenerateCode-UQCHTRGP.js → GenerateCode-Z2OY3SZR.js} +2 -2
  24. package/dist/{GetMaafBuildStatus-6ZSLIZCH.js → GetMaafBuildStatus-ZR5GCREL.js} +2 -2
  25. package/dist/{GetMaafProjectDeployStatus-NZEMVQGJ.js → GetMaafProjectDeployStatus-OJ56DPZ6.js} +2 -2
  26. package/dist/{GetSettings-MVVEXMJC.js → GetSettings-64N4P6L7.js} +2 -2
  27. package/dist/{InfoMaafApp-7Z6OJCHD.js → InfoMaafApp-FJM7UI5H.js} +2 -2
  28. package/dist/InfoMaafProject-EU6OQ7DX.js +11 -0
  29. package/dist/{Init-PBH2IXVK.js → Init-MTONJT7V.js} +2 -2
  30. package/dist/{ListConnectorActions-UERYZ2C7.js → ListConnectorActions-PJTNNWLH.js} +2 -2
  31. package/dist/{ListConnectors-2FUTJMHY.js → ListConnectors-JYNVPB3O.js} +2 -2
  32. package/dist/{ListDeployments-4YWCHVKF.js → ListDeployments-UV6J6WA5.js} +2 -2
  33. package/dist/ListMaafApps-QPEX7JA4.js +11 -0
  34. package/dist/{ListMaafProjects-GNUXZSYL.js → ListMaafProjects-RDR2S3HD.js} +2 -2
  35. package/dist/{ListSchema-QKVHVPHB.js → ListSchema-IR7FTBRR.js} +2 -2
  36. package/dist/{ListSettings-IIA5OGMP.js → ListSettings-3M7UOOLI.js} +2 -2
  37. package/dist/{Login-BT6UTPCZ.js → Login-G7TNQISG.js} +2 -2
  38. package/dist/{Logout-FBJE35Q5.js → Logout-AOOISVWK.js} +2 -2
  39. package/dist/{MockFetch-LQLQGTNT.js → MockFetch-GKQMNDW3.js} +2 -2
  40. package/dist/{NodeMsalAuthenticationProvider-5TJFMHR4.js → NodeMsalAuthenticationProvider-6ABSS6QK.js} +2 -2
  41. package/dist/{Pack-TSFHSTB5.js → Pack-QJZCMVEM.js} +2 -2
  42. package/dist/{PackProject-T575KJQ4.js → PackProject-Y3Q3KOTC.js} +2 -2
  43. package/dist/{PlayMaafApp-74TQEAO5.js → PlayMaafApp-MH66OLOV.js} +2 -2
  44. package/dist/ProjectApprovals-NTFYLH3W.js +13 -0
  45. package/dist/{ProjectRoleAssignments-AI2FQ2VX.js → ProjectRoleAssignments-7IDK6SGJ.js} +2 -2
  46. package/dist/{RefreshDataSource-VARFN3IV.js → RefreshDataSource-CISFHQNA.js} +2 -2
  47. package/dist/{RefreshGitAuth-DC5NAZBJ.js → RefreshGitAuth-NUQ7JNJA.js} +2 -2
  48. package/dist/{Remove-MCQZVI3K.js → Remove-IYDTKDJE.js} +2 -2
  49. package/dist/{RemoveDataSource-RRND46QZ.js → RemoveDataSource-T2AG7ZWC.js} +2 -2
  50. package/dist/{RemoveDeployment-STNFNNZF.js → RemoveDeployment-K3GDRCXJ.js} +2 -2
  51. package/dist/{ServicePrincipalAuthenticationProvider-7RBHTYYY.js → ServicePrincipalAuthenticationProvider-CEHIAANL.js} +2 -2
  52. package/dist/{SetSetting-Q7EQNOTI.js → SetSetting-KOWAPJWX.js} +2 -2
  53. package/dist/{SetSetting-CEH44OT3.js → SetSetting-PD76MA6O.js} +2 -2
  54. package/dist/{ShareLinkCreate-ZUVHUQLH.js → ShareLinkCreate-VCWVBQ4B.js} +2 -2
  55. package/dist/{ShareLinkList-IEYU6NZW.js → ShareLinkList-5VG5CG34.js} +2 -2
  56. package/dist/ShareLinkRevoke-KYUNMTG5.js +11 -0
  57. package/dist/ShareList-M25UE6LD.js +11 -0
  58. package/dist/{ShareMaafApp-SFNOOMOD.js → ShareMaafApp-QMEJEXPZ.js} +2 -2
  59. package/dist/{TelemetrySettings-XCT73DEI.js → TelemetrySettings-FVJUK5MR.js} +2 -2
  60. package/dist/{UnshareMaafApp-TU7U3LQ3.js → UnshareMaafApp-RIUUYHIL.js} +2 -2
  61. package/dist/{chunk-Q3ONTUZ7.js → chunk-2UMD5IAQ.js} +2 -2
  62. package/dist/chunk-36YYCVFC.js +12 -0
  63. package/dist/chunk-3UIUI5Q2.js +11 -0
  64. package/dist/{chunk-KKC5ZK4D.js → chunk-4AO24KKT.js} +21 -21
  65. package/dist/{chunk-TMYOZDLM.js → chunk-4C6DWU2Y.js} +2 -2
  66. package/dist/{chunk-SIEI2EB5.js → chunk-4JTUAUHI.js} +2 -2
  67. package/dist/{chunk-UXKJNXTZ.js → chunk-4UHMKZLH.js} +2 -2
  68. package/dist/{chunk-3E7QQ2BR.js → chunk-4WQT5P2M.js} +2 -2
  69. package/dist/{chunk-GE3UFHZ5.js → chunk-5BE4TLDK.js} +2 -2
  70. package/dist/{chunk-XIX2O22O.js → chunk-A57M2UGH.js} +2 -2
  71. package/dist/chunk-B6REHI77.js +11 -0
  72. package/dist/{chunk-DKSLWH4O.js → chunk-BREK3DVB.js} +2 -2
  73. package/dist/{chunk-RFLXPXBN.js → chunk-C7V6WEZM.js} +2 -2
  74. package/dist/{chunk-DGUO74I3.js → chunk-CER3QPDN.js} +2 -2
  75. package/dist/{chunk-PEZMQ2A3.js → chunk-CONEIY4I.js} +2 -2
  76. package/dist/{chunk-UEZV46GZ.js → chunk-DOCWK326.js} +2 -2
  77. package/dist/{chunk-4XKA5APP.js → chunk-E2O4YZX2.js} +192 -192
  78. package/dist/{chunk-2LKCCYRF.js → chunk-EFTF4FA7.js} +2 -2
  79. package/dist/{chunk-6EF722GY.js → chunk-ELHOJBVT.js} +11 -11
  80. package/dist/{chunk-ADRQC63G.js → chunk-FGB6GFXI.js} +2 -2
  81. package/dist/chunk-GVLAG66W.js +13 -0
  82. package/dist/{chunk-PLFDUGBA.js → chunk-HWEMI6JI.js} +2 -2
  83. package/dist/{chunk-BRRT2E75.js → chunk-IM7SC23O.js} +3 -3
  84. package/dist/{chunk-KT2SUHGM.js → chunk-JDRULLI3.js} +2 -2
  85. package/dist/{chunk-EFY2BSWB.js → chunk-JMF444BA.js} +2 -2
  86. package/dist/{chunk-QLK3ZVWP.js → chunk-JWSX7DVU.js} +2 -2
  87. package/dist/chunk-MWN7R4VR.js +12 -0
  88. package/dist/{chunk-HSNRWBA6.js → chunk-O4G2KO7E.js} +2 -2
  89. package/dist/{chunk-FHE3OXIP.js → chunk-OB6WEE2V.js} +2 -2
  90. package/dist/{chunk-RDXQ3ZPT.js → chunk-OBATM5M4.js} +2 -2
  91. package/dist/{chunk-ZB6MB7GZ.js → chunk-OTXBVG3E.js} +2 -2
  92. package/dist/{chunk-5MHBEEMZ.js → chunk-PBXK6LJO.js} +2 -2
  93. package/dist/chunk-VAKAW5BD.js +12 -0
  94. package/dist/{chunk-4U53RYJJ.js → chunk-WS6TGUH7.js} +2 -2
  95. package/dist/{chunk-WTTK2GTG.js → chunk-WV7KDGLS.js} +2 -2
  96. package/dist/{chunk-NYPHWF7Q.js → chunk-YMRQPXY7.js} +2 -2
  97. package/dist/{chunk-WWVAS3DS.js → chunk-YYXAAA2U.js} +2 -2
  98. package/dist/{chunk-PZIEJEF5.js → chunk-ZREDMBLO.js} +2 -2
  99. package/package.json +4 -4
  100. package/dist/CreateMaafApp-6MSPHUU4.js +0 -22
  101. package/dist/CreateMaafProject-JKMF5TH3.js +0 -11
  102. package/dist/DeployMaafApp-K2APWFOD.js +0 -8
  103. package/dist/DeployMaafProject-6WRKGIIW.js +0 -11
  104. package/dist/FeatureSettings-77LZQSKD.js +0 -11
  105. package/dist/InfoMaafProject-SQYB736C.js +0 -11
  106. package/dist/ListMaafApps-ZATO77G3.js +0 -11
  107. package/dist/ProjectApprovals-5KLYEM7V.js +0 -13
  108. package/dist/ShareLinkRevoke-22RFGOFJ.js +0 -11
  109. package/dist/ShareList-6UWIHPBM.js +0 -11
  110. package/dist/chunk-2LDU3F6O.js +0 -11
  111. package/dist/chunk-A4PVXTJS.js +0 -13
  112. package/dist/chunk-BA52TY55.js +0 -12
  113. package/dist/chunk-HOIFXUTG.js +0 -11
  114. package/dist/chunk-TXMTKOEJ.js +0 -12
  115. package/dist/chunk-YRPTITKD.js +0 -12
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{a as E}from"./chunk-TYRVM4PP.js";import{c as m,d as c}from"./chunk-ZB6MB7GZ.js";import{z as s}from"./chunk-4XKA5APP.js";import{a as p}from"./chunk-FHE3OXIP.js";import{d as w}from"./chunk-UT667QSU.js";var l=w(E(),1);import{execFileSync as G}from"child_process";import{dirname as u,join as a}from"path";function x(){let e=c(["--version"],{captureStdout:!0,allowFailure:!0,emitStderr:!1});if(!e.success){if(e.error.code!=="ENOENT"){let i=m("",{action:"checking the Git version"},e.error);throw i||new s("Git could not be started while checking its version. Check the Git executable and your endpoint security policy, then retry.",{prerequisite:"git"},{errorCode:"GitProcessLaunchFailed",retryable:!1,telemetryDetails:{prerequisite:"git"}})}throw new s("'git' is required but was not found on PATH.",{prerequisite:"git"},{errorCode:"GitNotInstalled",telemetryDetails:{prerequisite:"git"}})}let r=e.stdout,t=p.engines.git;if(!l.default.validRange(t))return;let n=l.default.coerce(r);if(n&&!l.default.satisfies(n,t))throw new s(`Git ${t} is required (found ${n.version}). Please upgrade git.`,{prerequisite:"git",requiredVersion:t,foundVersion:n.version},{errorCode:"GitVersionUnsupported",telemetryDetails:{prerequisite:"git",requiredVersion:t,foundVersion:n.version}})}function B(){let e=b(),r=h("git-credential-manager",e),t=r.success?r:h("git-credential-manager-core",e);if(!t.success){let i=!r.success&&d(r.error),y=d(t.error);if(i&&y)throw new s("Git Credential Manager is required for the native app flow but was not found. Install Git Credential Manager, then run `git-credential-manager configure` and retry.",{prerequisite:"git-credential-manager"},{errorCode:"GitCredentialManagerNotInstalled",telemetryDetails:{prerequisite:"git-credential-manager"}});let f=[r,t].filter(o=>!o.success).map(o=>o.error).find(o=>o.code!=="ENOENT");throw f?M(f):new s("Git Credential Manager is required for the native app flow but was not found. Install Git Credential Manager, then run `git-credential-manager configure` and retry.",{prerequisite:"git-credential-manager"},{errorCode:"GitCredentialManagerNotInstalled",telemetryDetails:{prerequisite:"git-credential-manager"}})}let n=c(["config","--get-all","credential.helper"],{captureStdout:!0,allowFailure:!0,emitStderr:!1});if(!(n.success?n.stdout.split(/\r?\n/).some(i=>/(?:^|[\\/])git-credential-manager(?:-core)?(?:\.exe)?(?:["']|\s|$)/i.test(i.trim())||/^(?:manager|manager-core)$/i.test(i.trim())):!1))throw new s("Git Credential Manager is installed but not configured as a Git credential helper. Run `git-credential-manager configure` and retry.",{prerequisite:"git-credential-manager"},{errorCode:"GitCredentialManagerNotConfigured",telemetryDetails:{prerequisite:"git-credential-manager"}})}function b(){let e=c(["--exec-path"],{captureStdout:!0,allowFailure:!0,emitStderr:!1});return e.success&&e.stdout.trim()?e.stdout.trim():void 0}function h(e,r){let t=C(e);if(t.success||!d(t.error)||!r)return t;let n=process.platform==="win32"?[a(r,`${e}.exe`),a(r,e),a(u(u(r)),"bin",`${e}.exe`),a(u(u(r)),"bin",e)]:[a(r,e)];for(let g of n){let i=C(g);if(i.success||!d(i.error))return i}return t}function C(e){try{return G(e,["--version"],{stdio:["ignore","ignore","ignore"]}),{success:!0}}catch(r){return{success:!1,error:r instanceof Error?r:new Error(String(r))}}}function d(e){return e.code==="ENOENT"}function M(e){let r="git-credential-manager";return e.code==="EACCES"?new s("Git Credential Manager is installed but is not permitted to run. Check its executable permissions and your endpoint security policy, then retry.",{prerequisite:r,classifierBucket:"process-access-denied"},{errorCode:"GitCredentialManagerProcessAccessDenied",retryable:!1,telemetryDetails:{prerequisite:r,classifierBucket:"process-access-denied"}}):e.code==="EBADARCH"||e.errno===86||e.errno===-86?new s("Git Credential Manager is installed but is incompatible with this Mac. Install a build for this Mac's architecture, then retry.",{prerequisite:r,classifierBucket:"process-bad-architecture"},{errorCode:"GitCredentialManagerProcessBadArchitecture",retryable:!1,telemetryDetails:{prerequisite:r,classifierBucket:"process-bad-architecture"}}):new s("Git Credential Manager was found but could not be started. Check its installation and your endpoint security policy, then retry.",{prerequisite:r,classifierBucket:"process-launch-failed"},{errorCode:"GitCredentialManagerProcessLaunchFailed",retryable:!1,telemetryDetails:{prerequisite:r,classifierBucket:"process-launch-failed"}})}export{x as a,B as b};
7
+ import{a as E}from"./chunk-TYRVM4PP.js";import{c as m,d as c}from"./chunk-OTXBVG3E.js";import{A as s}from"./chunk-E2O4YZX2.js";import{a as p}from"./chunk-OB6WEE2V.js";import{d as w}from"./chunk-UT667QSU.js";var l=w(E(),1);import{execFileSync as G}from"child_process";import{dirname as u,join as a}from"path";function x(){let e=c(["--version"],{captureStdout:!0,allowFailure:!0,emitStderr:!1});if(!e.success){if(e.error.code!=="ENOENT"){let i=m("",{action:"checking the Git version"},e.error);throw i||new s("Git could not be started while checking its version. Check the Git executable and your endpoint security policy, then retry.",{prerequisite:"git"},{errorCode:"GitProcessLaunchFailed",retryable:!1,telemetryDetails:{prerequisite:"git"}})}throw new s("'git' is required but was not found on PATH.",{prerequisite:"git"},{errorCode:"GitNotInstalled",telemetryDetails:{prerequisite:"git"}})}let r=e.stdout,t=p.engines.git;if(!l.default.validRange(t))return;let n=l.default.coerce(r);if(n&&!l.default.satisfies(n,t))throw new s(`Git ${t} is required (found ${n.version}). Please upgrade git.`,{prerequisite:"git",requiredVersion:t,foundVersion:n.version},{errorCode:"GitVersionUnsupported",telemetryDetails:{prerequisite:"git",requiredVersion:t,foundVersion:n.version}})}function B(){let e=b(),r=h("git-credential-manager",e),t=r.success?r:h("git-credential-manager-core",e);if(!t.success){let i=!r.success&&d(r.error),y=d(t.error);if(i&&y)throw new s("Git Credential Manager is required for the native app flow but was not found. Install Git Credential Manager, then run `git-credential-manager configure` and retry.",{prerequisite:"git-credential-manager"},{errorCode:"GitCredentialManagerNotInstalled",telemetryDetails:{prerequisite:"git-credential-manager"}});let f=[r,t].filter(o=>!o.success).map(o=>o.error).find(o=>o.code!=="ENOENT");throw f?M(f):new s("Git Credential Manager is required for the native app flow but was not found. Install Git Credential Manager, then run `git-credential-manager configure` and retry.",{prerequisite:"git-credential-manager"},{errorCode:"GitCredentialManagerNotInstalled",telemetryDetails:{prerequisite:"git-credential-manager"}})}let n=c(["config","--get-all","credential.helper"],{captureStdout:!0,allowFailure:!0,emitStderr:!1});if(!(n.success?n.stdout.split(/\r?\n/).some(i=>/(?:^|[\\/])git-credential-manager(?:-core)?(?:\.exe)?(?:["']|\s|$)/i.test(i.trim())||/^(?:manager|manager-core)$/i.test(i.trim())):!1))throw new s("Git Credential Manager is installed but not configured as a Git credential helper. Run `git-credential-manager configure` and retry.",{prerequisite:"git-credential-manager"},{errorCode:"GitCredentialManagerNotConfigured",telemetryDetails:{prerequisite:"git-credential-manager"}})}function b(){let e=c(["--exec-path"],{captureStdout:!0,allowFailure:!0,emitStderr:!1});return e.success&&e.stdout.trim()?e.stdout.trim():void 0}function h(e,r){let t=C(e);if(t.success||!d(t.error)||!r)return t;let n=process.platform==="win32"?[a(r,`${e}.exe`),a(r,e),a(u(u(r)),"bin",`${e}.exe`),a(u(u(r)),"bin",e)]:[a(r,e)];for(let g of n){let i=C(g);if(i.success||!d(i.error))return i}return t}function C(e){try{return G(e,["--version"],{stdio:["ignore","ignore","ignore"]}),{success:!0}}catch(r){return{success:!1,error:r instanceof Error?r:new Error(String(r))}}}function d(e){return e.code==="ENOENT"}function M(e){let r="git-credential-manager";return e.code==="EACCES"?new s("Git Credential Manager is installed but is not permitted to run. Check its executable permissions and your endpoint security policy, then retry.",{prerequisite:r,classifierBucket:"process-access-denied"},{errorCode:"GitCredentialManagerProcessAccessDenied",retryable:!1,telemetryDetails:{prerequisite:r,classifierBucket:"process-access-denied"}}):e.code==="EBADARCH"||e.errno===86||e.errno===-86?new s("Git Credential Manager is installed but is incompatible with this Mac. Install a build for this Mac's architecture, then retry.",{prerequisite:r,classifierBucket:"process-bad-architecture"},{errorCode:"GitCredentialManagerProcessBadArchitecture",retryable:!1,telemetryDetails:{prerequisite:r,classifierBucket:"process-bad-architecture"}}):new s("Git Credential Manager was found but could not be started. Check its installation and your endpoint security policy, then retry.",{prerequisite:r,classifierBucket:"process-launch-failed"},{errorCode:"GitCredentialManagerProcessLaunchFailed",retryable:!1,telemetryDetails:{prerequisite:r,classifierBucket:"process-launch-failed"}})}export{x as a,B as b};
8
8
  /*!
9
9
  * Copyright (C) Microsoft Corporation. All rights reserved.
10
10
  */
11
- //# sourceMappingURL=chunk-TMYOZDLM.js.map
11
+ //# sourceMappingURL=chunk-4C6DWU2Y.js.map
@@ -4,9 +4,9 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{a as p,d}from"./chunk-ADRQC63G.js";import{Fb as m}from"./chunk-4XKA5APP.js";import{a as s}from"./chunk-HOIFXUTG.js";import{A as o,D as c,I as r,K as a}from"./chunk-KKC5ZK4D.js";var f="*";async function C(e){D(e),await e.runVerb();let t=await d(async()=>await m(p()));if(e.isJsonMode()){c(u(t));return}b(t)}function u(e){let{tables:t,...n}=e;return{...n,collections:t.map(({columns:i,...h})=>({...h,properties:i}))}}function b(e){if(r(`Schema: ${e.schemaPath}`),!e.exists){r("No state schema found. Create the file to start defining collections.");return}if(r(`Locale: ${e.locale}`),e.validationEnabled||a("Write validation is disabled ('x-ms-validation' is false). Declared indexes remain active."),e.tables.length===0){r("No collections defined.");return}let t=!1;for(let n of e.tables)t||=n.columns.some(i=>i.automatic),o({title:n.name,columns:[{header:"Property",maxWidth:32},{header:"Type"},{header:"Required"},{header:"Index"},{header:"Constraints",maxWidth:40}],rows:n.columns.map(i=>[i.automatic?`${i.name}${f}`:i.name,i.type,i.required?"Yes":"No",g(i),x(i)]),emptyMessage:"No properties defined.",totalLabel:"properties"}),n.representable||a(`Collection '${n.name}' also uses schema constructs not shown in the scalar-property view (${n.unrepresentableAt}).`);t&&r(`
7
+ import{a as p,d}from"./chunk-FGB6GFXI.js";import{Gb as m}from"./chunk-E2O4YZX2.js";import{a as s}from"./chunk-3UIUI5Q2.js";import{E as o,H as c,M as r,O as a}from"./chunk-4AO24KKT.js";var f="*";async function C(e){D(e),await e.runVerb();let t=await d(async()=>await m(p()));if(e.isJsonMode()){c(u(t));return}b(t)}function u(e){let{tables:t,...n}=e;return{...n,collections:t.map(({columns:i,...h})=>({...h,properties:i}))}}function b(e){if(r(`Schema: ${e.schemaPath}`),!e.exists){r("No state schema found. Create the file to start defining collections.");return}if(r(`Locale: ${e.locale}`),e.validationEnabled||a("Write validation is disabled ('x-ms-validation' is false). Declared indexes remain active."),e.tables.length===0){r("No collections defined.");return}let t=!1;for(let n of e.tables)t||=n.columns.some(i=>i.automatic),o({title:n.name,columns:[{header:"Property",maxWidth:32},{header:"Type"},{header:"Required"},{header:"Index"},{header:"Constraints",maxWidth:40}],rows:n.columns.map(i=>[i.automatic?`${i.name}${f}`:i.name,i.type,i.required?"Yes":"No",g(i),x(i)]),emptyMessage:"No properties defined.",totalLabel:"properties"}),n.representable||a(`Collection '${n.name}' also uses schema constructs not shown in the scalar-property view (${n.unrepresentableAt}).`);t&&r(`
8
8
  ${f} set by the platform on every collection.`),r(s.project.state["list-schema"].hint),r(`Run "${"ms"} project state list-schema --json" for the full definition.`)}function g(e){if(!e.indexed)return"No";let t=[];return e.index?.ignoreCase&&t.push("ignore case"),e.index?.ignoreAccents&&t.push("ignore accents"),t.length===0?"Yes":`Yes (${t.join(", ")})`}function x(e){let t=[];return e.format!==void 0&&t.push(`format=${e.format}`),e.minLength!==void 0&&t.push(`minLength=${e.minLength}`),e.maxLength!==void 0&&t.push(`maxLength=${e.maxLength}`),e.minValue!==void 0&&t.push(`min=${e.minValue}`),e.maxValue!==void 0&&t.push(`max=${e.maxValue}`),e.resourceKind!==void 0&&t.push(`kind=${e.resourceKind}`),t.join(", ")}function D(e){e.setDescription(s.project.state["list-schema"].description),e.addExamples(s.project.state["list-schema"].examples)}export{C as a,u as b};
9
9
  /*!
10
10
  * Copyright (C) Microsoft Corporation. All rights reserved.
11
11
  */
12
- //# sourceMappingURL=chunk-SIEI2EB5.js.map
12
+ //# sourceMappingURL=chunk-4JTUAUHI.js.map
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{k as o,pa as r}from"./chunk-4XKA5APP.js";async function m(e,a){let t=!0;try{await r(e,{stageName:a})}catch(n){if(i(n))t=!1;else throw n}return{projectId:e,deploymentCreated:t}}function i(e){return e instanceof o&&e.status===409&&e.code==="StageNameConflict"}export{m as a};
7
+ import{l as o,qa as r}from"./chunk-E2O4YZX2.js";async function m(e,a){let t=!0;try{await r(e,{stageName:a})}catch(n){if(i(n))t=!1;else throw n}return{projectId:e,deploymentCreated:t}}function i(e){return e instanceof o&&e.status===409&&e.code==="StageNameConflict"}export{m as a};
8
8
  /*!
9
9
  * Copyright (C) Microsoft Corporation. All rights reserved.
10
10
  */
11
- //# sourceMappingURL=chunk-UXKJNXTZ.js.map
11
+ //# sourceMappingURL=chunk-4UHMKZLH.js.map
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{h as s}from"./chunk-BRRT2E75.js";import{h as n}from"./chunk-OUKOEUZA.js";var l=new Set(["--help","-h","--version","-v","--json","--no-color","--non-interactive"]);function t(e){let o=e.slice(2);return o.some(r=>r==="--help"||r==="-h"||r==="--version"||r==="-v")&&o.every(r=>l.has(r))}function u(e){return t(e)?(e.includes("--no-color")&&n("NO_COLOR","1"),s(null).parse([...e]),!0):!1}export{u as a};
7
+ import{h as s}from"./chunk-IM7SC23O.js";import{h as n}from"./chunk-OUKOEUZA.js";var l=new Set(["--help","-h","--version","-v","--json","--no-color","--non-interactive"]);function t(e){let o=e.slice(2);return o.some(r=>r==="--help"||r==="-h"||r==="--version"||r==="-v")&&o.every(r=>l.has(r))}function u(e){return t(e)?(e.includes("--no-color")&&n("NO_COLOR","1"),s(null).parse([...e]),!0):!1}export{u as a};
8
8
  /*!
9
9
  * Copyright (C) Microsoft Corporation. All rights reserved.
10
10
  */
11
- //# sourceMappingURL=chunk-3E7QQ2BR.js.map
11
+ //# sourceMappingURL=chunk-4WQT5P2M.js.map
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{Ob as et,u as Q,w as tt,x as N}from"./chunk-4XKA5APP.js";import{K as D,a as j}from"./chunk-KKC5ZK4D.js";import{b as Ut,d as dt}from"./chunk-UT667QSU.js";var ot=Ut((Re,Mt)=>{"use strict";var nt={to(t,e){return e?`\x1B[${e+1};${t+1}H`:`\x1B[${t+1}G`},move(t,e){let s="";return t<0?s+=`\x1B[${-t}D`:t>0&&(s+=`\x1B[${t}C`),e<0?s+=`\x1B[${-e}A`:e>0&&(s+=`\x1B[${e}B`),s},up:(t=1)=>`\x1B[${t}A`,down:(t=1)=>`\x1B[${t}B`,forward:(t=1)=>`\x1B[${t}C`,backward:(t=1)=>`\x1B[${t}D`,nextLine:(t=1)=>"\x1B[E".repeat(t),prevLine:(t=1)=>"\x1B[F".repeat(t),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},ie={up:(t=1)=>"\x1B[S".repeat(t),down:(t=1)=>"\x1B[T".repeat(t)},re={screen:"\x1B[2J",up:(t=1)=>"\x1B[1J".repeat(t),down:(t=1)=>"\x1B[J".repeat(t),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(t){let e="";for(let s=0;s<t;s++)e+=this.line+(s<t-1?nt.up():"");return t&&(e+=nt.left),e}};Mt.exports={cursor:nt,scroll:ie,erase:re,beep:"\x07"}});import{styleText as at}from"node:util";import{stdout as Pt,stdin as ne}from"node:process";import oe from"node:readline";var mt=(()=>{let t=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return e=>{let s=0;for(t.lastIndex=0;t.test(e);)s+=1;return e.length-s}})(),gt=t=>t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510,ft=t=>t===8987||t===9001||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t>=131072&&t<=196605||t>=196608&&t<=262141;var Bt=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,Kt=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,$t=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,Ht=/\t{1,1000}/y,vt=new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*","yu"),qt=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,zt=new RegExp("\\p{M}+","gu"),Jt={limit:1/0,ellipsis:""},yt=(t,e={},s={})=>{let i=e.limit??1/0,r=e.ellipsis??"",o=e?.ellipsisWidth??(r?yt(r,Jt,s).width:0),n=0,a=s.controlWidth??0,l=s.tabWidth??8,h=s.emojiWidth??2,d=2,c=s.regularWidth??1,p=s.wideWidth??d,v=[[qt,c],[Bt,n],[Kt,a],[Ht,l],[vt,h],[$t,p]],f=0,$=0,I=t.length,S=0,P=!1,F=I,_=Math.max(0,i-o),y=0,b=0,w=0,x=0;t:for(;;){if(b>y||$>=I&&$>f){let C=t.slice(y,b)||t.slice(f,$);S=0;for(let O of C.replaceAll(zt,"")){let E=O.codePointAt(0)||0;if(gt(E)?x=d:ft(E)?x=p:x=c,w+x>_&&(F=Math.min(F,Math.max(y,f)+S)),w+x>i){P=!0;break t}S+=O.length,w+=x}y=b=0}if($>=I)break t;for(let C=0,O=v.length;C<O;C++){let[E,pt]=v[C];if(E.lastIndex=$,E.test(t)){if(S=E===$t?mt(t.slice($,E.lastIndex)):E===vt?1:E.lastIndex-$,x=S*pt,w+x>_&&(F=Math.min(F,$+Math.floor((_-w)/pt))),w+x>i){P=!0;break t}w+=x,y=f,b=$,$=f=E.lastIndex;continue t}}$+=1}return{width:P?_:w,index:P?F:I,truncated:P,ellipsed:P&&i>=o}},wt=yt;var Yt={limit:1/0,ellipsis:"",ellipsisWidth:0},Xt=(t,e={})=>wt(t,Yt,e).width,A=Xt;var U="\x1B",xt="\x9B",Zt=39,it="\x07",Ct="[",Qt="]",Et="m",rt=`${Qt}8;;`,It=new RegExp(`(?:\\${Ct}(?<code>\\d+)m|\\${rt}(?<uri>.*)${it})`,"y"),bt=t=>{if(t>=30&&t<=37||t>=90&&t<=97)return 39;if(t>=40&&t<=47||t>=100&&t<=107)return 49;if(t===1||t===2)return 22;if(t===3)return 23;if(t===4)return 24;if(t===7)return 27;if(t===8)return 28;if(t===9)return 29;if(t===0)return 0},St=t=>`${U}${Ct}${t}${Et}`,_t=t=>`${U}${rt}${t}${it}`,st=(t,e,s)=>{let i=e[Symbol.iterator](),r=!1,o=!1,n=t.at(-1),a=n===void 0?0:A(n),l=i.next(),h=i.next(),d=0;for(;!l.done;){let c=l.value,p=A(c);a+p<=s?t[t.length-1]+=c:(t.push(c),a=0),(c===U||c===xt)&&(r=!0,o=e.startsWith(rt,d+1)),r?o?c===it&&(r=!1,o=!1):c===Et&&(r=!1):(a+=p,a===s&&!h.done&&(t.push(""),a=0)),l=h,h=i.next(),d+=c.length}n=t.at(-1),!a&&n!==void 0&&n.length&&t.length>1&&(t[t.length-2]+=t.pop())},te=t=>{let e=t.split(" "),s=e.length;for(;s&&!A(e[s-1]);)s--;return s===e.length?t:e.slice(0,s).join(" ")+e.slice(s).join("")},ee=(t,e,s={})=>{if(s.trim!==!1&&t.trim()==="")return"";let i="",r,o,n=t.split(" "),a=[""],l=0;for(let c=0;c<n.length;c++){let p=n[c];if(s.trim!==!1){let f=a.at(-1)??"",$=f.trimStart();f.length!==$.length&&(a[a.length-1]=$,l=A($))}c!==0&&(l>=e&&(s.wordWrap===!1||s.trim===!1)&&(a.push(""),l=0),(l||s.trim===!1)&&(a[a.length-1]+=" ",l++));let v=A(p);if(s.hard&&v>e){let f=e-l,$=1+Math.floor((v-f-1)/e);Math.floor((v-1)/e)<$&&a.push(""),st(a,p,e),l=A(a.at(-1)??"");continue}if(l+v>e&&l&&v){if(s.wordWrap===!1&&l<e){st(a,p,e),l=A(a.at(-1)??"");continue}a.push(""),l=0}if(l+v>e&&s.wordWrap===!1){st(a,p,e),l=A(a.at(-1)??"");continue}a[a.length-1]+=p,l+=v}s.trim!==!1&&(a=a.map(c=>te(c)));let h=a.join(`
7
+ import{Pb as et,v as Q,x as tt,y as N}from"./chunk-E2O4YZX2.js";import{O as D,a as j}from"./chunk-4AO24KKT.js";import{b as Ut,d as dt}from"./chunk-UT667QSU.js";var ot=Ut((Re,Mt)=>{"use strict";var nt={to(t,e){return e?`\x1B[${e+1};${t+1}H`:`\x1B[${t+1}G`},move(t,e){let s="";return t<0?s+=`\x1B[${-t}D`:t>0&&(s+=`\x1B[${t}C`),e<0?s+=`\x1B[${-e}A`:e>0&&(s+=`\x1B[${e}B`),s},up:(t=1)=>`\x1B[${t}A`,down:(t=1)=>`\x1B[${t}B`,forward:(t=1)=>`\x1B[${t}C`,backward:(t=1)=>`\x1B[${t}D`,nextLine:(t=1)=>"\x1B[E".repeat(t),prevLine:(t=1)=>"\x1B[F".repeat(t),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},ie={up:(t=1)=>"\x1B[S".repeat(t),down:(t=1)=>"\x1B[T".repeat(t)},re={screen:"\x1B[2J",up:(t=1)=>"\x1B[1J".repeat(t),down:(t=1)=>"\x1B[J".repeat(t),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(t){let e="";for(let s=0;s<t;s++)e+=this.line+(s<t-1?nt.up():"");return t&&(e+=nt.left),e}};Mt.exports={cursor:nt,scroll:ie,erase:re,beep:"\x07"}});import{styleText as at}from"node:util";import{stdout as Pt,stdin as ne}from"node:process";import oe from"node:readline";var mt=(()=>{let t=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return e=>{let s=0;for(t.lastIndex=0;t.test(e);)s+=1;return e.length-s}})(),gt=t=>t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510,ft=t=>t===8987||t===9001||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t>=131072&&t<=196605||t>=196608&&t<=262141;var Bt=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,Kt=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,$t=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,Ht=/\t{1,1000}/y,vt=new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*","yu"),qt=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,zt=new RegExp("\\p{M}+","gu"),Jt={limit:1/0,ellipsis:""},yt=(t,e={},s={})=>{let i=e.limit??1/0,r=e.ellipsis??"",o=e?.ellipsisWidth??(r?yt(r,Jt,s).width:0),n=0,a=s.controlWidth??0,l=s.tabWidth??8,h=s.emojiWidth??2,d=2,c=s.regularWidth??1,p=s.wideWidth??d,v=[[qt,c],[Bt,n],[Kt,a],[Ht,l],[vt,h],[$t,p]],f=0,$=0,I=t.length,S=0,P=!1,F=I,_=Math.max(0,i-o),y=0,b=0,w=0,x=0;t:for(;;){if(b>y||$>=I&&$>f){let C=t.slice(y,b)||t.slice(f,$);S=0;for(let O of C.replaceAll(zt,"")){let E=O.codePointAt(0)||0;if(gt(E)?x=d:ft(E)?x=p:x=c,w+x>_&&(F=Math.min(F,Math.max(y,f)+S)),w+x>i){P=!0;break t}S+=O.length,w+=x}y=b=0}if($>=I)break t;for(let C=0,O=v.length;C<O;C++){let[E,pt]=v[C];if(E.lastIndex=$,E.test(t)){if(S=E===$t?mt(t.slice($,E.lastIndex)):E===vt?1:E.lastIndex-$,x=S*pt,w+x>_&&(F=Math.min(F,$+Math.floor((_-w)/pt))),w+x>i){P=!0;break t}w+=x,y=f,b=$,$=f=E.lastIndex;continue t}}$+=1}return{width:P?_:w,index:P?F:I,truncated:P,ellipsed:P&&i>=o}},wt=yt;var Yt={limit:1/0,ellipsis:"",ellipsisWidth:0},Xt=(t,e={})=>wt(t,Yt,e).width,A=Xt;var U="\x1B",xt="\x9B",Zt=39,it="\x07",Ct="[",Qt="]",Et="m",rt=`${Qt}8;;`,It=new RegExp(`(?:\\${Ct}(?<code>\\d+)m|\\${rt}(?<uri>.*)${it})`,"y"),bt=t=>{if(t>=30&&t<=37||t>=90&&t<=97)return 39;if(t>=40&&t<=47||t>=100&&t<=107)return 49;if(t===1||t===2)return 22;if(t===3)return 23;if(t===4)return 24;if(t===7)return 27;if(t===8)return 28;if(t===9)return 29;if(t===0)return 0},St=t=>`${U}${Ct}${t}${Et}`,_t=t=>`${U}${rt}${t}${it}`,st=(t,e,s)=>{let i=e[Symbol.iterator](),r=!1,o=!1,n=t.at(-1),a=n===void 0?0:A(n),l=i.next(),h=i.next(),d=0;for(;!l.done;){let c=l.value,p=A(c);a+p<=s?t[t.length-1]+=c:(t.push(c),a=0),(c===U||c===xt)&&(r=!0,o=e.startsWith(rt,d+1)),r?o?c===it&&(r=!1,o=!1):c===Et&&(r=!1):(a+=p,a===s&&!h.done&&(t.push(""),a=0)),l=h,h=i.next(),d+=c.length}n=t.at(-1),!a&&n!==void 0&&n.length&&t.length>1&&(t[t.length-2]+=t.pop())},te=t=>{let e=t.split(" "),s=e.length;for(;s&&!A(e[s-1]);)s--;return s===e.length?t:e.slice(0,s).join(" ")+e.slice(s).join("")},ee=(t,e,s={})=>{if(s.trim!==!1&&t.trim()==="")return"";let i="",r,o,n=t.split(" "),a=[""],l=0;for(let c=0;c<n.length;c++){let p=n[c];if(s.trim!==!1){let f=a.at(-1)??"",$=f.trimStart();f.length!==$.length&&(a[a.length-1]=$,l=A($))}c!==0&&(l>=e&&(s.wordWrap===!1||s.trim===!1)&&(a.push(""),l=0),(l||s.trim===!1)&&(a[a.length-1]+=" ",l++));let v=A(p);if(s.hard&&v>e){let f=e-l,$=1+Math.floor((v-f-1)/e);Math.floor((v-1)/e)<$&&a.push(""),st(a,p,e),l=A(a.at(-1)??"");continue}if(l+v>e&&l&&v){if(s.wordWrap===!1&&l<e){st(a,p,e),l=A(a.at(-1)??"");continue}a.push(""),l=0}if(l+v>e&&s.wordWrap===!1){st(a,p,e),l=A(a.at(-1)??"");continue}a[a.length-1]+=p,l+=v}s.trim!==!1&&(a=a.map(c=>te(c)));let h=a.join(`
8
8
  `),d=!1;for(let c=0;c<h.length;c++){let p=h[c];if(i+=p,d)d=!1;else if(d=p>="\uD800"&&p<="\uDBFF",d)continue;if(p===U||p===xt){It.lastIndex=c+1;let f=It.exec(h)?.groups;if(f?.code!==void 0){let $=Number.parseFloat(f.code);r=$===Zt?void 0:$}else f?.uri!==void 0&&(o=f.uri.length===0?void 0:f.uri)}if(h[c+1]===`
9
9
  `){o&&(i+=_t(""));let v=r?bt(r):void 0;r&&v&&(i+=St(v))}else p===`
10
10
  `&&(r&&bt(r)&&(i+=St(r)),o&&(i+=_t(o)))}return i},se=/\r?\n/;function R(t,e,s){return String(t).normalize().split(se).map(i=>ee(i,e,s)).join(`
@@ -51,4 +51,4 @@ ${a}
51
51
  /*!
52
52
  * Copyright (C) Microsoft Corporation. All rights reserved.
53
53
  */
54
- //# sourceMappingURL=chunk-GE3UFHZ5.js.map
54
+ //# sourceMappingURL=chunk-5BE4TLDK.js.map
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{f as s}from"./chunk-OUKOEUZA.js";import{E as a,I as i}from"./chunk-KKC5ZK4D.js";import{spawn as c}from"node:child_process";var g={showUserCode({userCode:t,verificationUri:e,expiresIn:r}){i(""),i("First copy your one-time code:"),i(""),i(` ${t}`),i(""),i("Then visit this URL to sign in to GitHub:"),i(""),i(` ${e}`),i(""),i(`(Code expires in ${Math.round(r/60)} minutes.)`)},showWaiting(){i("Waiting for authentication...")},openVerificationUri(t){return f(t,{skip:!1})}},p=class{showUserCode(e){this._emit({phase:"github-auth-initiated",sessionId:e.sessionId,userCode:e.userCode,verificationUri:e.verificationUri,expiresIn:e.expiresIn,pollIntervalSeconds:e.pollIntervalSeconds})}showWaiting(){}showPollIteration(){this._emit({phase:"github-auth-pending"})}showComplete(e){this._emit({phase:"github-auth-complete",githubLogin:e.githubLogin,mappingExpiresAt:e.mappingExpiresAt})}_emit(e){a(e)}};function f(t,e){if(e.skip||process.stdin.isTTY===!1||s("MS_NO_BROWSER")==="1"||s("CI")==="true")return!1;let r;try{r=new URL(t)}catch{return!1}if(r.protocol!=="https:")return!1;try{let n=l(t,process.platform);if(!n)return!1;let o=c(n.file,n.args,{shell:!1,detached:!0,stdio:"ignore"});return o.on("error",()=>{}),o.unref(),!0}catch{return!1}}function l(t,e){switch(e){case"win32":return{file:"cmd.exe",args:["/c","start","",t]};case"darwin":return{file:"open",args:[t]};case"linux":return{file:"xdg-open",args:[t]};default:return}}export{g as a,p as b};
7
+ import{f as s}from"./chunk-OUKOEUZA.js";import{I as a,M as i}from"./chunk-4AO24KKT.js";import{spawn as c}from"node:child_process";var g={showUserCode({userCode:t,verificationUri:e,expiresIn:r}){i(""),i("First copy your one-time code:"),i(""),i(` ${t}`),i(""),i("Then visit this URL to sign in to GitHub:"),i(""),i(` ${e}`),i(""),i(`(Code expires in ${Math.round(r/60)} minutes.)`)},showWaiting(){i("Waiting for authentication...")},openVerificationUri(t){return f(t,{skip:!1})}},p=class{showUserCode(e){this._emit({phase:"github-auth-initiated",sessionId:e.sessionId,userCode:e.userCode,verificationUri:e.verificationUri,expiresIn:e.expiresIn,pollIntervalSeconds:e.pollIntervalSeconds})}showWaiting(){}showPollIteration(){this._emit({phase:"github-auth-pending"})}showComplete(e){this._emit({phase:"github-auth-complete",githubLogin:e.githubLogin,mappingExpiresAt:e.mappingExpiresAt})}_emit(e){a(e)}};function f(t,e){if(e.skip||process.stdin.isTTY===!1||s("MS_NO_BROWSER")==="1"||s("CI")==="true")return!1;let r;try{r=new URL(t)}catch{return!1}if(r.protocol!=="https:")return!1;try{let n=l(t,process.platform);if(!n)return!1;let o=c(n.file,n.args,{shell:!1,detached:!0,stdio:"ignore"});return o.on("error",()=>{}),o.unref(),!0}catch{return!1}}function l(t,e){switch(e){case"win32":return{file:"cmd.exe",args:["/c","start","",t]};case"darwin":return{file:"open",args:[t]};case"linux":return{file:"xdg-open",args:[t]};default:return}}export{g as a,p as b};
8
8
  /*!
9
9
  * Copyright (C) Microsoft Corporation. All rights reserved.
10
10
  */
11
- //# sourceMappingURL=chunk-XIX2O22O.js.map
11
+ //# sourceMappingURL=chunk-A57M2UGH.js.map
@@ -0,0 +1,11 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __pathDirname(__filename);
7
+ import{a as C,c as F,d as S}from"./chunk-C7V6WEZM.js";import{a as c,b as f,c as g,d as m}from"./chunk-OUKOEUZA.js";import{O as p}from"./chunk-4AO24KKT.js";var o={ga:{stage:"development",displayName:"Portable Definitions",description:"Adds portable app and project definitions",isEnabledInWorkspace:async()=>!1},codegenv3:{stage:"development",displayName:"Simplified Codegen",description:"Adds simplified code generation",isEnabledInWorkspace:async()=>!1},state:{stage:"experimental",displayName:"App State",description:"Adds the ms project state commands",isEnabledInWorkspace:async e=>[e?.state,e?.data,e?.db].some(t=>t?.enabled===!0)},alm:{stage:"development",displayName:"Application Lifecycle Management",description:"Adds deployment target and other project-based capabilities",isEnabledInWorkspace:async e=>!!e?.projectId},projects:{stage:"development",displayName:"Managed Projects",description:"Adds managed project commands and Managed DevOps app deployments",isEnabledInWorkspace:async(e,t)=>t!==void 0||!!e?.projectId},rayfin:{stage:"development",displayName:"Rayfin",description:"Adds Rayfin backend support",isEnabledInWorkspace:async()=>!1}},u={"72f988bf-86f1-41af-91ab-2d7cd011db47":{}};function T(e){return`FEATURE_${e.toUpperCase()}`}var I="features";function x(e){return e.trim().toLowerCase()}function L(e){return Object.hasOwn(o,e)}function O(){return Object.keys(o).filter(e=>o[e].stage!=="development")}function U(e){if(typeof e!="string")return;let t=e.trim().toLowerCase();return t==="enabled"||t==="disabled"?t:void 0}function k(e){let t=e?.[I];return F(t)?t:{}}function j(e){let t=new Map;for(let[n,r]of Object.entries(k(e))){let a=U(r);a&&t.set(x(n),a)}return t}var y=!1;function v(){try{return j(S())}catch{return y||(y=!0,p(`Ignoring saved feature settings: couldn't read ${C()}. Make sure it contains a valid JSON object, or delete it to clear your saved settings.`)),new Map}}var b;function M(e){b=e}function E(){return b?.getUserTenantId()?.trim().toLowerCase()||void 0}function R(e,t){if(!(t===void 0||!Object.hasOwn(u,t)))return u[t][e]}var N=new Set;async function $(e,t){let n=new Set;for(let r of Object.keys(o))await o[r].isEnabledInWorkspace(e,t)&&n.add(r);N=n}function D(e,t,n,r){let a=T(e),i=f(a),d=n.get(e),l=R(e,r),s={name:e,stage:t.stage,description:t.description,envVar:c(a),...i!==void 0&&{envValue:i},...d&&{userSetting:d},...r!==void 0&&{tenantId:r},...l&&{tenantDefault:l}};return g(i)?{...s,enabled:!0,source:"environment"}:m(i)?{...s,enabled:!1,source:"environment"}:d?{...s,enabled:d==="enabled",source:"userSettings"}:l?{...s,enabled:l==="enabled",source:"tenant"}:{...s,enabled:!1,source:"default"}}function A(e,t,n){let r=o[e],a=D(e,r,t,n),i=N.has(e);return i&&!a.enabled?{...a,usedInWorkspace:i,enabled:!0,source:"workspace"}:{...a,usedInWorkspace:i}}function _(e,t=v()){return A(e,t,E())}function z(e=v()){let t=E();return Object.keys(o).map(n=>A(n,e,t)).filter(n=>n.enabled||n.stage!=="development")}function B(e){return _(e).enabled}export{o as a,T as b,I as c,x as d,L as e,O as f,U as g,k as h,j as i,M as j,$ as k,_ as l,z as m,B as n};
8
+ /*!
9
+ * Copyright (C) Microsoft Corporation. All rights reserved.
10
+ */
11
+ //# sourceMappingURL=chunk-B6REHI77.js.map
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{j as P,o as k}from"./chunk-GE3UFHZ5.js";import{J as N,L as A,M as w,Ob as I,Q as b,c as v,x as l}from"./chunk-4XKA5APP.js";import{a as O,b as x,c as S,d as L,e as T,f as M,g as $,h as z}from"./chunk-BRRT2E75.js";import{m as D}from"./chunk-2LDU3F6O.js";import{a as C,b as _}from"./chunk-OUKOEUZA.js";import{l as h}from"./chunk-4U53RYJJ.js";import{a as R}from"./chunk-HOIFXUTG.js";import{I as f,f as m,g as p}from"./chunk-KKC5ZK4D.js";var F={treatment:"presenceOnly"};function E(s){let e=s.trim();if(!e)return"path:empty";let t=/^([a-zA-Z]:[\\/]|\\\\|\/)/.test(e),n=e.lastIndexOf("."),i=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\")),r=n>i?e.slice(n).toLowerCase():"";return`path:${t?"absolute":"relative"}${r?`:${r}`:""}`}function H(s){try{let e=new URL(s),t=e.hostname.toLowerCase(),n=t==="localhost"||t==="127.0.0.1"||t==="::1"?"localhost":"remote",i=e.protocol.replace(":","")||"unknown";return`url:${n}:${i}`}catch{return"url:unparseable"}}function G(s){let e=s.trim().toLowerCase();if(!e||e==="none")return"repo:none";if(e==="native")return"repo:native";try{let t=new URL(s).hostname.toLowerCase();return t==="github.com"?"repo:github.com":t.includes("ghe")?"repo:ghe":"repo:other"}catch{return"repo:other"}}function J(s){let e=s.trim().toLowerCase();return e==="build"||e==="none"?e:"invalid"}function Y(s){let e=s.trim(),t=e.match(/\/environments\/([^/]+)\/?$/i);return v(t?t[1]:e)}var B={connector:{treatment:"full"},solutionId:{treatment:"full"},connectionId:{treatment:"full"},connection:{treatment:"full"},connectionRef:{treatment:"full"},as:{treatment:"full"},dataverseEnvironmentId:{treatment:"full"},environmentId:{treatment:"full",normalize:Y},linkId:{treatment:"full"},repositoryId:{treatment:"full"},appId:{treatment:"full"},template:{treatment:"full"},commit:{treatment:"full"},cloud:{treatment:"full"},port:{treatment:"full"},mode:{treatment:"full"},permission:{treatment:"full"},access:{treatment:"full"},skipCodegen:{treatment:"full"},useV1Codegen:{treatment:"full"},useSso:{treatment:"full"},offline:{treatment:"full"},configOnly:{treatment:"full"},onlyAllowed:{treatment:"full"},force:{treatment:"full"},forceReauth:{treatment:"full"},openBrowser:{treatment:"full"},wait:{treatment:"full"},browser:{treatment:"full"},showLog:{treatment:"full"},deviceCode:{treatment:"full"},nonInteractive:{treatment:"full"},json:{treatment:"full"},color:{treatment:"full"},buildPath:{treatment:"descriptor",describe:E},buildEntryPoint:{treatment:"descriptor",describe:E},iconPath:{treatment:"descriptor",describe:E},artifact:{treatment:"descriptor",describe:E},localAppUrl:{treatment:"descriptor",describe:H},repo:{treatment:"descriptor",describe:G},buildType:{treatment:"descriptor",describe:J},displayName:{treatment:"presenceOnly"},description:{treatment:"presenceOnly"},search:{treatment:"presenceOnly"},app:{treatment:"presenceOnly"},name:{treatment:"presenceOnly"},buildCommand:{treatment:"presenceOnly"},dataset:{treatment:"presenceOnly"},sqlStoredProcedure:{treatment:"presenceOnly"},resourceName:{treatment:"presenceOnly"},stage:{treatment:"presenceOnly"},status:{treatment:"presenceOnly"},table:{treatment:"presenceOnly"},top:{treatment:"presenceOnly"}};function W(s){return B[s]??F}function V(s,e){let t=W(s);if(e==null||e==="")return{treatment:t.treatment};switch(t.treatment){case"full":{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean"){if(t.normalize){if(typeof e!="string")return{treatment:"presenceOnly"};let n=t.normalize(e);return n===void 0?{treatment:"presenceOnly"}:{treatment:"full",value:n}}return{treatment:"full",value:e}}return{treatment:"presenceOnly"}}case"descriptor":{let n=typeof e=="string"?e:String(e);try{return{treatment:"descriptor",value:t.describe(n)}}catch{return{treatment:"descriptor",value:"unparseable"}}}default:return{treatment:"presenceOnly"}}}function c(s){return typeof s!="string"?void 0:s.trim()||void 0}function q(s){return s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}var j=class{constructor(e,t,n,i,r=x(process.argv,T)){this._httpClient=e;this._logger=t;this._authenticationProvider=n;this._accountManager=i;this._resolvedCommand=r,this._resolvedCommand&&(this._verb=this._resolvedCommand.path.join(" "),this._tokensConsumed=this._resolvedCommand.tokensConsumed),this._program=z(this._resolvedCommand);let o=I(),a=c(o.appConfig?.environmentId),d=c(_("MAAF_DEBUG_ENVIRONMENT_ID"));this._configEnvironmentId=a,this._debugEnvironmentId=d,this._environmentId=a??d,!a&&d&&!this._resolvedCommand?.localOnly&&f(`[debug] ${C("MAAF_DEBUG_ENVIRONMENT_ID")} is set to '${d}'.`);let u=this._resolvedCommand?.localOnly?void 0:o.appConfig?.cloud;if(u){let y=u.toLowerCase();if(!m.includes(y))throw new l(`Invalid cloud value '${u}' in the local config. Valid values are: ${m.join(", ")}.`);this._cloud=y,this._region=p(this._cloud)}this._cloud||this.addOption({flags:{key:h.Cloud.name},env:h.Cloud.envVar,default:"public",description:R.global.cloud}),this._resolvedCommand?.localOnly||N({httpClient:this._httpClient,logger:this._logger,region:this._region??p("public"),environmentName:this._resolveEnvironmentId()||"default",featureGates:{useManagedDevOpsDeployment:this.isManagedDevOpsDeploymentEnabled()}})}_httpClient;_logger;_authenticationProvider;_accountManager;_environmentId;_configEnvironmentId;_debugEnvironmentId;_environmentIdNotified=!1;_cloud;_region;_verb;_resolvedCommand;_tokensConsumed=0;_program;_options={};_positionalArgNames=[];_isParsed=!1;_parameterTelemetry=new Map;isManagedDevOpsDeploymentEnabled(){return D("projects")}addSwitch(e){this._createOption(e,!1)}addSwitches(e){e.forEach(t=>this._createOption(t,!1))}consumePositionalArg(e){let t=e.startsWith("[")||e.startsWith("<")?e.slice(1,-1):e;this._program.argument(`[${t}]`),this._positionalArgNames.push(e),this._program.usage(`${this._positionalArgNames.join(" ")} [options]`)}consumePositionalArgs(e){this._program.argument(`[${e}...]`),this._positionalArgNames.push(`<${e}...>`),this._program.usage(`${this._positionalArgNames.join(" ")} [options]`)}getPositionalArg(e){let t=this._program.processedArgs[e];return typeof t=="string"?t:void 0}getPositionalArgs(e){let t=this._program.processedArgs[e];return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}addOption(e){this._createOption(e)}addOptions(e){e.forEach(t=>this._createOption(t))}async runVerb(){if(this._tokensConsumed>0){let e=[process.argv[0],process.argv[1],...process.argv.slice(2+this._tokensConsumed)];this._program.parse(e)}else this._program.parse();if(this._isParsed=!0,this._captureExplicitCliParameters(),this.useProjectConfigDefaults(),await this._getRequiredVariables(),!this._region)throw new l(`Region is not set. Use --cloud or set the ${C("CLOUD_INSTANCE")} environment variable.`);this._resolvedCommand?.localOnly||(this._logger.setTelemetryContext({region:this._region}),await this._authenticationProvider.initAsync(this._region)),this._logger.trackActivityEvent("Initialize",{verb:this._verb})}handleGlobalHelpOrFlagsAndExit(){let e=process.argv[2];if(e||this._program.help(),e.startsWith("-")){this._program.parse(process.argv),this._isParsed=!0;return}if(this._resolvedCommand||this._rejectNonRootVersionFlag(),this._tryPrintDeepTypedHelp()&&process.exit(0),!this._resolvedCommand){let t=S(process.argv,T);if(t){if(t.unknownToken!==void 0)throw new l(`Unknown type '${t.unknownToken}' for '${"ms"} ${t.pathTokens.join(" ")}'. Run "${"ms"} ${t.pathTokens.join(" ")} --help" for available types.`);let n=$(t.pathTokens);n&&(f(`${O()}
7
+ import{j as P,o as k}from"./chunk-5BE4TLDK.js";import{K as N,M as A,N as w,Pb as I,R as b,c as v,y as l}from"./chunk-E2O4YZX2.js";import{a as O,b as x,c as S,d as L,e as T,f as M,g as $,h as z}from"./chunk-IM7SC23O.js";import{n as D}from"./chunk-B6REHI77.js";import{a as C,b as _}from"./chunk-OUKOEUZA.js";import{l as h}from"./chunk-WS6TGUH7.js";import{a as R}from"./chunk-3UIUI5Q2.js";import{M as f,e as m,f as p}from"./chunk-4AO24KKT.js";var F={treatment:"presenceOnly"};function E(s){let e=s.trim();if(!e)return"path:empty";let t=/^([a-zA-Z]:[\\/]|\\\\|\/)/.test(e),n=e.lastIndexOf("."),i=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\")),r=n>i?e.slice(n).toLowerCase():"";return`path:${t?"absolute":"relative"}${r?`:${r}`:""}`}function H(s){try{let e=new URL(s),t=e.hostname.toLowerCase(),n=t==="localhost"||t==="127.0.0.1"||t==="::1"?"localhost":"remote",i=e.protocol.replace(":","")||"unknown";return`url:${n}:${i}`}catch{return"url:unparseable"}}function G(s){let e=s.trim().toLowerCase();if(!e||e==="none")return"repo:none";if(e==="native")return"repo:native";try{let t=new URL(s).hostname.toLowerCase();return t==="github.com"?"repo:github.com":t.includes("ghe")?"repo:ghe":"repo:other"}catch{return"repo:other"}}function J(s){let e=s.trim().toLowerCase();return e==="build"||e==="none"?e:"invalid"}function Y(s){let e=s.trim(),t=e.match(/\/environments\/([^/]+)\/?$/i);return v(t?t[1]:e)}var B={connector:{treatment:"full"},solutionId:{treatment:"full"},connectionId:{treatment:"full"},connection:{treatment:"full"},connectionRef:{treatment:"full"},as:{treatment:"full"},dataverseEnvironmentId:{treatment:"full"},environmentId:{treatment:"full",normalize:Y},linkId:{treatment:"full"},repositoryId:{treatment:"full"},appId:{treatment:"full"},template:{treatment:"full"},commit:{treatment:"full"},cloud:{treatment:"full"},port:{treatment:"full"},mode:{treatment:"full"},permission:{treatment:"full"},access:{treatment:"full"},skipCodegen:{treatment:"full"},useV1Codegen:{treatment:"full"},useSso:{treatment:"full"},offline:{treatment:"full"},configOnly:{treatment:"full"},onlyAllowed:{treatment:"full"},force:{treatment:"full"},forceReauth:{treatment:"full"},openBrowser:{treatment:"full"},wait:{treatment:"full"},browser:{treatment:"full"},showLog:{treatment:"full"},deviceCode:{treatment:"full"},nonInteractive:{treatment:"full"},json:{treatment:"full"},color:{treatment:"full"},buildPath:{treatment:"descriptor",describe:E},buildEntryPoint:{treatment:"descriptor",describe:E},iconPath:{treatment:"descriptor",describe:E},artifact:{treatment:"descriptor",describe:E},localAppUrl:{treatment:"descriptor",describe:H},repo:{treatment:"descriptor",describe:G},buildType:{treatment:"descriptor",describe:J},displayName:{treatment:"presenceOnly"},description:{treatment:"presenceOnly"},search:{treatment:"presenceOnly"},app:{treatment:"presenceOnly"},name:{treatment:"presenceOnly"},buildCommand:{treatment:"presenceOnly"},dataset:{treatment:"presenceOnly"},sqlStoredProcedure:{treatment:"presenceOnly"},resourceName:{treatment:"presenceOnly"},stage:{treatment:"presenceOnly"},status:{treatment:"presenceOnly"},table:{treatment:"presenceOnly"},top:{treatment:"presenceOnly"}};function W(s){return B[s]??F}function V(s,e){let t=W(s);if(e==null||e==="")return{treatment:t.treatment};switch(t.treatment){case"full":{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean"){if(t.normalize){if(typeof e!="string")return{treatment:"presenceOnly"};let n=t.normalize(e);return n===void 0?{treatment:"presenceOnly"}:{treatment:"full",value:n}}return{treatment:"full",value:e}}return{treatment:"presenceOnly"}}case"descriptor":{let n=typeof e=="string"?e:String(e);try{return{treatment:"descriptor",value:t.describe(n)}}catch{return{treatment:"descriptor",value:"unparseable"}}}default:return{treatment:"presenceOnly"}}}function c(s){return typeof s!="string"?void 0:s.trim()||void 0}function q(s){return s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}var j=class{constructor(e,t,n,i,r=x(process.argv,T)){this._httpClient=e;this._logger=t;this._authenticationProvider=n;this._accountManager=i;this._resolvedCommand=r,this._resolvedCommand&&(this._verb=this._resolvedCommand.path.join(" "),this._tokensConsumed=this._resolvedCommand.tokensConsumed),this._program=z(this._resolvedCommand);let o=I(),a=c(o.appConfig?.environmentId),d=c(_("MAAF_DEBUG_ENVIRONMENT_ID"));this._configEnvironmentId=a,this._debugEnvironmentId=d,this._environmentId=a??d,!a&&d&&!this._resolvedCommand?.localOnly&&f(`[debug] ${C("MAAF_DEBUG_ENVIRONMENT_ID")} is set to '${d}'.`);let u=this._resolvedCommand?.localOnly?void 0:o.appConfig?.cloud;if(u){let y=u.toLowerCase();if(!m.includes(y))throw new l(`Invalid cloud value '${u}' in the local config. Valid values are: ${m.join(", ")}.`);this._cloud=y,this._region=p(this._cloud)}this._cloud||this.addOption({flags:{key:h.Cloud.name},env:h.Cloud.envVar,default:"public",description:R.global.cloud}),this._resolvedCommand?.localOnly||N({httpClient:this._httpClient,logger:this._logger,region:this._region??p("public"),environmentName:this._resolveEnvironmentId()||"default",featureGates:{useManagedDevOpsDeployment:this.isManagedDevOpsDeploymentEnabled()}})}_httpClient;_logger;_authenticationProvider;_accountManager;_environmentId;_configEnvironmentId;_debugEnvironmentId;_environmentIdNotified=!1;_cloud;_region;_verb;_resolvedCommand;_tokensConsumed=0;_program;_options={};_positionalArgNames=[];_isParsed=!1;_parameterTelemetry=new Map;isManagedDevOpsDeploymentEnabled(){return D("projects")}addSwitch(e){this._createOption(e,!1)}addSwitches(e){e.forEach(t=>this._createOption(t,!1))}consumePositionalArg(e){let t=e.startsWith("[")||e.startsWith("<")?e.slice(1,-1):e;this._program.argument(`[${t}]`),this._positionalArgNames.push(e),this._program.usage(`${this._positionalArgNames.join(" ")} [options]`)}consumePositionalArgs(e){this._program.argument(`[${e}...]`),this._positionalArgNames.push(`<${e}...>`),this._program.usage(`${this._positionalArgNames.join(" ")} [options]`)}getPositionalArg(e){let t=this._program.processedArgs[e];return typeof t=="string"?t:void 0}getPositionalArgs(e){let t=this._program.processedArgs[e];return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}addOption(e){this._createOption(e)}addOptions(e){e.forEach(t=>this._createOption(t))}async runVerb(){if(this._tokensConsumed>0){let e=[process.argv[0],process.argv[1],...process.argv.slice(2+this._tokensConsumed)];this._program.parse(e)}else this._program.parse();if(this._isParsed=!0,this._captureExplicitCliParameters(),this.useProjectConfigDefaults(),await this._getRequiredVariables(),!this._region)throw new l(`Region is not set. Use --cloud or set the ${C("CLOUD_INSTANCE")} environment variable.`);this._resolvedCommand?.localOnly||(this._logger.setTelemetryContext({region:this._region}),await this._authenticationProvider.initAsync(this._region)),this._logger.trackActivityEvent("Initialize",{verb:this._verb})}handleGlobalHelpOrFlagsAndExit(){let e=process.argv[2];if(e||this._program.help(),e.startsWith("-")){this._program.parse(process.argv),this._isParsed=!0;return}if(this._resolvedCommand||this._rejectNonRootVersionFlag(),this._tryPrintDeepTypedHelp()&&process.exit(0),!this._resolvedCommand){let t=S(process.argv,T);if(t){if(t.unknownToken!==void 0)throw new l(`Unknown type '${t.unknownToken}' for '${"ms"} ${t.pathTokens.join(" ")}'. Run "${"ms"} ${t.pathTokens.join(" ")} --help" for available types.`);let n=$(t.pathTokens);n&&(f(`${O()}
8
8
 
9
9
  ${n}`),process.exit(0))}if(L(e,T)){let n=process.argv[3];if(n&&!n.startsWith("-"))throw new l(`Unknown command '${n}' under '${"ms"} ${e}'. Run "${"ms"} ${e} --help" for available commands.`);f(`${O()}
10
10
 
@@ -15,4 +15,4 @@ ${i}`),!0):!1}_rejectNonRootVersionFlag(){let e=process.argv.slice(2),t=e.indexO
15
15
  /*!
16
16
  * Copyright (C) Microsoft Corporation. All rights reserved.
17
17
  */
18
- //# sourceMappingURL=chunk-DKSLWH4O.js.map
18
+ //# sourceMappingURL=chunk-BREK3DVB.js.map
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{c as r,m as i}from"./chunk-FHE3OXIP.js";import{K as o}from"./chunk-KKC5ZK4D.js";import*as e from"fs";import*as u from"path";function s(){return u.join(r,i)}function g(){o(`The CLI's settings file is at ${s()}.`)}function f(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function a(){let t=s();if(!e.existsSync(t))return;let n=JSON.parse(e.readFileSync(t,"utf-8"));if(!f(n))throw new Error(`${i} must contain a JSON object.`);return n}function S(t){return{errorName:t instanceof Error?t.name:typeof t,errorCode:t?.code}}function d(t){let n=t(a()??{});return e.mkdirSync(r,{recursive:!0}),e.writeFileSync(s(),JSON.stringify(n,null,2),"utf-8"),n}export{s as a,g as b,f as c,a as d,S as e,d as f};
7
+ import{c as r,m as i}from"./chunk-OB6WEE2V.js";import{O as o}from"./chunk-4AO24KKT.js";import*as e from"fs";import*as u from"path";function s(){return u.join(r,i)}function g(){o(`The CLI's settings file is at ${s()}.`)}function f(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function a(){let t=s();if(!e.existsSync(t))return;let n=JSON.parse(e.readFileSync(t,"utf-8"));if(!f(n))throw new Error(`${i} must contain a JSON object.`);return n}function S(t){return{errorName:t instanceof Error?t.name:typeof t,errorCode:t?.code}}function d(t){let n=t(a()??{});return e.mkdirSync(r,{recursive:!0}),e.writeFileSync(s(),JSON.stringify(n,null,2),"utf-8"),n}export{s as a,g as b,f as c,a as d,S as e,d as f};
8
8
  /*!
9
9
  * Copyright (C) Microsoft Corporation. All rights reserved.
10
10
  */
11
- //# sourceMappingURL=chunk-RFLXPXBN.js.map
11
+ //# sourceMappingURL=chunk-C7V6WEZM.js.map
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{m as E}from"./chunk-GE3UFHZ5.js";import{B as u,K as w,p as c,q as v,s as l,t as p,x as a}from"./chunk-4XKA5APP.js";import{p as y}from"./chunk-FHE3OXIP.js";import{I as m,L as f}from"./chunk-KKC5ZK4D.js";async function A(n,r,t){try{let e=await n;if(e.status===200){if(e.data.operationSuccess===!1||e.data.environmentFound===!1||e.data.errorCode)throw new c(200,e.data.message,e.data.errorCode);let i=e.data.environment?.name;if(!i)throw new u("Routing service returned 200 with no environment name.");return i}let o=await p(r,e.pollingUrl,e.authResource,t);if(!o.environment?.name)throw new u("Routing service finished provisioning but returned no environment name.");return o.environment.name}catch(e){throw P(e)}}function P(n){if(n instanceof c){let r=n.apiMessage?` ${n.apiMessage}`:" Ensure your account has the required permissions to create a Developer environment.";return new a(`Could not provision a Developer environment for your tenant (status ${n.status}).${r}`)}return n instanceof v?new a("Timed out waiting for a Developer environment to provision. Try again."):n instanceof Error?n:new Error(String(n))}function k(n,r,t,e,o){let{trackBackgroundFailure:i=!0,dogfood:I=!1}=o??{},g=n.getHttpClient(),{region:R}=w(),d=A(l(g,r,y,{provisionDataverse:!1,...I?{dogfood:!0}:{}},R,t),g,t);return i&&d.catch(s=>{t.trackErrorEvent(`${e}.RoutingEnvironmentBackgroundFailure`,{error:s instanceof Error?s.message:String(s)})}),d}function h(n){let r=n instanceof Error?n.message:String(n);f(`Failed to resolve a developer environment.
7
+ import{m as E}from"./chunk-5BE4TLDK.js";import{C as u,L as w,q as c,r as v,t as l,u as p,y as a}from"./chunk-E2O4YZX2.js";import{p as y}from"./chunk-OB6WEE2V.js";import{M as m,P as f}from"./chunk-4AO24KKT.js";async function A(n,r,t){try{let e=await n;if(e.status===200){if(e.data.operationSuccess===!1||e.data.environmentFound===!1||e.data.errorCode)throw new c(200,e.data.message,e.data.errorCode);let i=e.data.environment?.name;if(!i)throw new u("Routing service returned 200 with no environment name.");return i}let o=await p(r,e.pollingUrl,e.authResource,t);if(!o.environment?.name)throw new u("Routing service finished provisioning but returned no environment name.");return o.environment.name}catch(e){throw P(e)}}function P(n){if(n instanceof c){let r=n.apiMessage?` ${n.apiMessage}`:" Ensure your account has the required permissions to create a Developer environment.";return new a(`Could not provision a Developer environment for your tenant (status ${n.status}).${r}`)}return n instanceof v?new a("Timed out waiting for a Developer environment to provision. Try again."):n instanceof Error?n:new Error(String(n))}function k(n,r,t,e,o){let{trackBackgroundFailure:i=!0,dogfood:I=!1}=o??{},g=n.getHttpClient(),{region:R}=w(),d=A(l(g,r,y,{provisionDataverse:!1,...I?{dogfood:!0}:{}},R,t),g,t);return i&&d.catch(s=>{t.trackErrorEvent(`${e}.RoutingEnvironmentBackgroundFailure`,{error:s instanceof Error?s.message:String(s)})}),d}function h(n){let r=n instanceof Error?n.message:String(n);f(`Failed to resolve a developer environment.
8
8
 
9
9
  ${r}
10
10
 
@@ -12,4 +12,4 @@ To retry, run the same command again. Alternatively, pass --environment-id <id>
12
12
  /*!
13
13
  * Copyright (C) Microsoft Corporation. All rights reserved.
14
14
  */
15
- //# sourceMappingURL=chunk-DGUO74I3.js.map
15
+ //# sourceMappingURL=chunk-CER3QPDN.js.map
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{b as p}from"./chunk-Q3ONTUZ7.js";import{Pb as f,k as u,u as l,v as s,w as i}from"./chunk-4XKA5APP.js";import{E as a}from"./chunk-KKC5ZK4D.js";function c(t){if(t instanceof Error)return t.message;if(typeof t=="string")return t;if(t==null)return String(t);try{let e=new WeakSet;return JSON.stringify(t,(n,r)=>{if(typeof r=="object"&&r!==null){if(e.has(r))return"[Circular]";e.add(r)}return r})}catch{return String(t)}}function m(t){if(!(t instanceof u))return null;let e="HttpRequestFailed",n=s.Platform,r=!1;return t.status===401?(e="HttpAuthenticationFailed",n=s.User):t.status===403?(e="HttpAuthorizationFailed",n=s.User):t.status===404?(e="HttpResourceNotFound",n=s.User):t.status===408?e="HttpRequestTimedOut":t.status===429?(e="HttpRequestThrottled",r=!0):t.status>=400&&t.status<500?(e="HttpRequestRejected",n=s.User):t.status>=500&&t.status<600&&(e="HttpServiceUnavailable"),new i(t.message,l.GeneralError,void 0,{errorCode:e,errorCategory:n,retryable:r,telemetryDetails:{httpStatus:t.status}})}function C(t){let e=p(t)??m(t)??t;return{error:e,message:c(e),exitCode:e instanceof i?e.exitCode:1}}function h(t){let{error:e,message:n,exitCode:r}=C(t),o=e instanceof i?e.outputDetails:void 0;a({success:!1,exitCode:r,errorMessage:n,...o!==void 0&&{errorData:o}});let d=e instanceof i?{errorCode:e.errorCode,errorCategory:e.errorCategory,exitCode:r,telemetryDetails:e.telemetryDetails,retryable:e.retryable}:{exitCode:r};throw new f(n,e instanceof i?e.errorData:void 0,d,e)}export{C as a,h as b};
7
+ import{b as p}from"./chunk-2UMD5IAQ.js";import{Qb as f,l as u,v as l,w as s,x as i}from"./chunk-E2O4YZX2.js";import{I as a}from"./chunk-4AO24KKT.js";function c(t){if(t instanceof Error)return t.message;if(typeof t=="string")return t;if(t==null)return String(t);try{let e=new WeakSet;return JSON.stringify(t,(n,r)=>{if(typeof r=="object"&&r!==null){if(e.has(r))return"[Circular]";e.add(r)}return r})}catch{return String(t)}}function m(t){if(!(t instanceof u))return null;let e="HttpRequestFailed",n=s.Platform,r=!1;return t.status===401?(e="HttpAuthenticationFailed",n=s.User):t.status===403?(e="HttpAuthorizationFailed",n=s.User):t.status===404?(e="HttpResourceNotFound",n=s.User):t.status===408?e="HttpRequestTimedOut":t.status===429?(e="HttpRequestThrottled",r=!0):t.status>=400&&t.status<500?(e="HttpRequestRejected",n=s.User):t.status>=500&&t.status<600&&(e="HttpServiceUnavailable"),new i(t.message,l.GeneralError,void 0,{errorCode:e,errorCategory:n,retryable:r,telemetryDetails:{httpStatus:t.status}})}function C(t){let e=p(t)??m(t)??t;return{error:e,message:c(e),exitCode:e instanceof i?e.exitCode:1}}function h(t){let{error:e,message:n,exitCode:r}=C(t),o=e instanceof i?e.outputDetails:void 0;a({success:!1,exitCode:r,errorMessage:n,...o!==void 0&&{errorData:o}});let d=e instanceof i?{errorCode:e.errorCode,errorCategory:e.errorCategory,exitCode:r,telemetryDetails:e.telemetryDetails,retryable:e.retryable}:{exitCode:r};throw new f(n,e instanceof i?e.errorData:void 0,d,e)}export{C as a,h as b};
8
8
  /*!
9
9
  * Copyright (C) Microsoft Corporation. All rights reserved.
10
10
  */
11
- //# sourceMappingURL=chunk-PEZMQ2A3.js.map
11
+ //# sourceMappingURL=chunk-CONEIY4I.js.map
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __pathDirname(__filename);
7
- import{a as K,c as Q}from"./chunk-2LKCCYRF.js";import{c as _}from"./chunk-GE3UFHZ5.js";import{B as F,K as E,Nb as I,Ob as M,R as H,T as W,U as Y,V,W as x,X as R,Y as O,_ as G,k as D,n as j,va as J,w as B,x as m}from"./chunk-4XKA5APP.js";import{e as z}from"./chunk-OUKOEUZA.js";import{A as q,C as $,I as g,K as v}from"./chunk-KKC5ZK4D.js";import*as ee from"http";import ne from"open";var X={defaultBehavior:"Allow",allowedConnectors:[]},T="Reason: The connector service rejected the automatic connection request.";function k(r,t){I().trackErrorEvent("Connection.AutoCreateFailed",{apiId:r,error:t instanceof Error?t.message:String(t)})}async function ge(r,t,e){if(r.toLowerCase().startsWith("shared_"))return r;let n=await Y(void 0,t??void 0),o=r.toLowerCase(),s=n.find(c=>c.name.toLowerCase()===`shared_${o}`);if(s)return s.name;let u=n.filter(c=>c.properties.displayName.toLowerCase()===o),a=u.length===0,f=a?n.filter(c=>c.properties.displayName.toLowerCase().includes(o)):u;if(f.length===0)return r;if(f.length===1)return a&&!e?.jsonMode&&g(`Resolved '${r}' \u2192 '${f[0].properties.displayName}' (${f[0].name})`),f[0].name;if(M().interactive&&!e?.jsonMode)return await _({message:`Multiple connectors match '${r}'. Select a connector:`,options:f.map(c=>({value:c.name,label:c.properties.displayName,hint:c.name}))});let l=f.map(c=>` ${c.name} (${c.properties.displayName})`).join(`
7
+ import{a as K,c as Q}from"./chunk-EFTF4FA7.js";import{c as _}from"./chunk-5BE4TLDK.js";import{$ as G,C as F,L as E,Ob as I,Pb as M,S as H,U as W,V as Y,W as V,X as x,Y as R,Z as O,l as D,o as j,wa as J,x as B,y as m}from"./chunk-E2O4YZX2.js";import{e as z}from"./chunk-OUKOEUZA.js";import{E as q,G as $,M as g,O as v}from"./chunk-4AO24KKT.js";import*as ee from"http";import ne from"open";var X={defaultBehavior:"Allow",allowedConnectors:[]},T="Reason: The connector service rejected the automatic connection request.";function k(r,t){I().trackErrorEvent("Connection.AutoCreateFailed",{apiId:r,error:t instanceof Error?t.message:String(t)})}async function ge(r,t,e){if(r.toLowerCase().startsWith("shared_"))return r;let n=await Y(void 0,t??void 0),o=r.toLowerCase(),s=n.find(c=>c.name.toLowerCase()===`shared_${o}`);if(s)return s.name;let u=n.filter(c=>c.properties.displayName.toLowerCase()===o),a=u.length===0,f=a?n.filter(c=>c.properties.displayName.toLowerCase().includes(o)):u;if(f.length===0)return r;if(f.length===1)return a&&!e?.jsonMode&&g(`Resolved '${r}' \u2192 '${f[0].properties.displayName}' (${f[0].name})`),f[0].name;if(M().interactive&&!e?.jsonMode)return await _({message:`Multiple connectors match '${r}'. Select a connector:`,options:f.map(c=>({value:c.name,label:c.properties.displayName,hint:c.name}))});let l=f.map(c=>` ${c.name} (${c.properties.displayName})`).join(`
8
8
  `);throw new m(`Multiple connectors match '${r}'. Specify the connector ID directly:
9
9
  ${l}`)}var Z="__create__",oe=600*1e3,L="1";async function Ce(r,t){let e=I(),n=await r.getTenantIdAsync();n||(e.trackErrorEvent("DlpSkippedNoTenantId",{apiId:t}),v(`Could not resolve tenant ID; skipping connector policy check. Sign in with '${"ms"} auth login' for full enforcement.`));let[o,s]=await Promise.all([H(t,e),n?G(e,n).catch(()=>(v("Could not verify connector policy; proceeding without enforcement."),X)):Promise.resolve(X)]);if(!o)throw new F(`Connector '${t}' not found. Run '${"ms"} connector list' to see available connector IDs.`);let u=(o.name??t).toLowerCase(),a=new Map(s.allowedConnectors.map(c=>[c.connectorId.toLowerCase(),c])),f=new Set((s.blockedConnectors??[]).map(c=>c.connectorId.toLowerCase()));if(s.defaultBehavior==="Block"?!a.has(u):f.has(u))throw Q(`Connector '${o.properties.displayName??t}' is blocked by your organization's connector policy.`,K.ConnectorPolicyBlocked,"connector_preflight");return{connector:o,tenantId:n,policy:s}}async function ye(r){let t=M(),{argumentProvider:e,apiId:n,connector:o,useSso:s,interactive:u=t.interactive,quiet:a=!1,nonInteractiveReason:f="cli-mode",connectionFilter:l,noMatchingConnectionMessage:c,beforeConnectionTest:i}=r,d=I(),C=E(),w=await W(n,d)??[],S=l?w.filter(l):w;if(!u&&l&&w.length>0&&S.length===0)throw new m(c??`No existing connections for '${o.properties.displayName??n}' satisfy the required connection settings.`);if(!u)return te({argumentProvider:e,apiId:n,connector:o,connections:S,useSso:s,quiet:a,nonInteractiveReason:f,beforeConnectionTest:i});if(s){if(!R(o))throw new m(`--use-sso was set but '${o.properties.displayName??n}' does not support single sign-on (SSO) authentication.
10
10
  To fix: Re-run without --use-sso to create a connection interactively.`);let h=S.filter(p=>O(p,o));if(h.length>0){let[p]=h;return g(`Using existing SSO connection '${p.properties.displayName}' (${p.name}).`),h.length>1&&v(`Multiple SSO connections found for '${o.properties.displayName??n}'. Re-run with --connection-id <id> or -c <id> to use a specific one.`),{connectionId:p.name,autoSelected:!0}}let y=await A(e,n,i);return $(`Created a new connection '${y.properties.displayName}' (${y.name}).`),{connectionId:y.name,autoSelected:!1}}let N=[...S.map(h=>({value:h.name,label:h.properties.displayName,hint:h.name})),{value:Z,label:"(Create a new connection)"}],b=await _({message:"Select a connection:",options:N});if(b===Z){if(x(o))try{return{connectionId:(await A(e,n,i)).name,autoSelected:!1}}catch(U){k(n,U),v("Silent connection creation failed."),g(`Falling back to browser-based connection creation...
@@ -41,4 +41,4 @@ Cancelling...`),c(),s({status:"cancelled"})};function c(){clearTimeout(f),proces
41
41
  /*!
42
42
  * Copyright (C) Microsoft Corporation. All rights reserved.
43
43
  */
44
- //# sourceMappingURL=chunk-UEZV46GZ.js.map
44
+ //# sourceMappingURL=chunk-DOCWK326.js.map