@devkong/cli 0.0.67-alpha.3 → 0.0.67-alpha.30

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 (40) hide show
  1. package/README.md +0 -11
  2. package/assets/python-install.bat +11 -11
  3. package/assets/python-install.sh +10 -10
  4. package/index.js +11475 -2966
  5. package/package.json +4 -3
  6. package/packages/kong-cli/src/commands/connectCommand.d.ts +49 -0
  7. package/packages/kong-cli/src/commands/generateCommand.d.ts +3 -1
  8. package/packages/kong-cli/src/commands/listAliasesCommand.d.ts +1 -1
  9. package/packages/kong-cli/src/commands/listVersionsCommand.d.ts +1 -1
  10. package/packages/kong-cli/src/commands/publishVersionCommand.d.ts +9 -2
  11. package/packages/kong-cli/src/commands/setAliasCommand.d.ts +20 -1
  12. package/packages/kong-cli/src/common/deployment.d.ts +2 -0
  13. package/packages/kong-cli/src/common/utils.d.ts +2 -3
  14. package/packages/kong-cli/src/services/managementClient.d.ts +4 -2
  15. package/packages/kong-spec/src/index.d.ts +4 -2
  16. package/packages/kong-spec/src/lib/kongSpec.d.ts +6 -3
  17. package/packages/kong-spec/src/lib/kongSpecDoc.d.ts +1 -0
  18. package/packages/kong-spec/src/lib/kongSpecFunctionContract.d.ts +26 -0
  19. package/packages/kong-spec/src/lib/kongSpecUtils.d.ts +2 -10
  20. package/packages/kong-ts/src/index.d.ts +4 -4
  21. package/packages/kong-ts/src/lib/id.d.ts +1 -0
  22. package/packages/kong-ts/src/lib/jq.d.ts +1 -0
  23. package/packages/kong-ts/src/lib/jsonSchema.d.ts +25 -0
  24. package/packages/kong-ts/src/lib/url.d.ts +1 -0
  25. package/packages/kong-ts/src/lib/user.d.ts +1 -0
  26. package/packages/kong-ts-contract/src/index.d.ts +8 -2
  27. package/packages/kong-ts-contract/src/lib/appAliasUse.d.ts +1 -1
  28. package/packages/kong-ts-contract/src/lib/appAliasUseDetails.d.ts +1 -1
  29. package/packages/kong-ts-contract/src/lib/appArtifact.d.ts +19 -0
  30. package/packages/kong-ts-contract/src/lib/appAuditLog.d.ts +2 -1
  31. package/packages/kong-ts-contract/src/lib/appConnect.d.ts +45 -0
  32. package/packages/kong-ts-contract/src/lib/appDependency.d.ts +9 -0
  33. package/packages/kong-ts-contract/src/lib/appDocument.d.ts +1 -0
  34. package/packages/kong-ts-contract/src/lib/appExtension.d.ts +3 -0
  35. package/packages/kong-ts-contract/src/lib/appOrganizationItem.d.ts +7 -0
  36. package/packages/kong-ts-contract/src/lib/appProject.d.ts +1 -0
  37. package/packages/kong-ts-contract/src/lib/appSecretDetails.d.ts +2 -0
  38. package/packages/kong-ts-contract/src/lib/appSecretPermission.d.ts +5 -0
  39. package/packages/kong-ts-contract/src/lib/appSecretType.d.ts +1 -1
  40. package/packages/kong-ts-contract/src/lib/appWorkspace.d.ts +1 -0
package/README.md CHANGED
@@ -29,14 +29,3 @@ Publish with custom tag to avoid @latest:
29
29
  ```sh
30
30
  npx nx release publish --git-commit=false --tag=dev
31
31
  ```
32
-
33
- ## Publish to the Nexus
34
-
35
- ```shell script
36
- code ~/.npmrc
37
-
38
- @kong:registry=https://nexus.shared.sg.app-dts.net/repository/npm-hosted/
39
- //nexus.shared.sg.app-dts.net/repository/npm-hosted/:username=kong
40
- //nexus.shared.sg.app-dts.net/repository/npm-hosted/:_password={BASE_64_PASSWORD}
41
- //nexus.shared.sg.app-dts.net/repository/npm-hosted/:always-auth=true
42
- ```
@@ -10,19 +10,19 @@ if %errorlevel% equ 0 (
10
10
  set PYTHON_CMD=python3
11
11
  )
12
12
 
13
- where pip >nul 2>&1
14
- if %errorlevel% equ 0 (
15
- set PIP_CMD=pip
16
- ) else (
17
- set PIP_CMD=pip3
18
- )
19
-
20
13
  cd %EXTENSION_DIR%
21
14
 
22
- %PYTHON_CMD% -m venv .venv
15
+ REM Recreate the venv from scratch so a stale interpreter path (e.g. left over
16
+ REM after a Python upgrade or a moved/copied project) can't leave pip pointing
17
+ REM at a missing binary.
18
+ %PYTHON_CMD% -m venv --clear .venv
19
+ if errorlevel 1 exit /b 1
23
20
 
24
21
  call .venv\Scripts\activate.bat
25
22
 
26
- %PIP_CMD% freeze > requirements-lock.txt
27
- %PIP_CMD% install --default-timeout=120 -r requirements.txt -r requirements-dev.txt
28
- %PIP_CMD% freeze > requirements-lock.txt
23
+ REM Invoke pip via `python -m pip` rather than the pip/pip3 wrapper so we don't
24
+ REM depend on the wrapper script's (possibly stale) shebang.
25
+ python -m pip freeze > requirements-lock.txt
26
+ python -m pip install --default-timeout=120 -r requirements.txt -r requirements-dev.txt
27
+ if errorlevel 1 exit /b 1
28
+ python -m pip freeze > requirements-lock.txt
@@ -1,4 +1,5 @@
1
1
  #!/bin/bash
2
+ set -e
2
3
 
3
4
  EXTENSION_DIR=$1
4
5
 
@@ -8,18 +9,17 @@ else
8
9
  PYTHON_CMD="python3"
9
10
  fi
10
11
 
11
- if [ -x "$(command -v python)" ]; then
12
- PIP_CMD="pip"
13
- else
14
- PIP_CMD="pip3"
15
- fi
16
-
17
12
  cd "$EXTENSION_DIR" || exit
18
13
 
19
- $PYTHON_CMD -m venv .venv
14
+ # Recreate the venv from scratch so a stale interpreter path (e.g. left over
15
+ # after a Python/nvm/pyenv upgrade) can't leave pip pointing at a missing
16
+ # binary, which fails with "cannot execute: required file not found".
17
+ $PYTHON_CMD -m venv --clear .venv
20
18
 
21
19
  source .venv/bin/activate
22
20
 
23
- $PIP_CMD freeze > requirements-lock.txt
24
- $PIP_CMD install --default-timeout=120 -r requirements-dev.txt -r requirements.txt
25
- $PIP_CMD freeze > requirements-lock.txt
21
+ # Invoke pip via `python -m pip` rather than the pip/pip3 wrapper so we don't
22
+ # depend on the wrapper script's (possibly stale) shebang.
23
+ python -m pip freeze > requirements-lock.txt
24
+ python -m pip install --default-timeout=120 -r requirements-dev.txt -r requirements.txt
25
+ python -m pip freeze > requirements-lock.txt