@microsoft/inshellisense 0.0.1-rc.21 → 0.0.1-rc.23

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 (48) hide show
  1. package/package.json +11 -78
  2. package/CODE_OF_CONDUCT.md +0 -9
  3. package/LICENSE +0 -21
  4. package/README.md +0 -132
  5. package/SECURITY.md +0 -41
  6. package/SUPPORT.md +0 -13
  7. package/build/commands/complete.js +0 -16
  8. package/build/commands/doctor.js +0 -11
  9. package/build/commands/init.js +0 -24
  10. package/build/commands/root.js +0 -37
  11. package/build/commands/specs/list.js +0 -26
  12. package/build/commands/specs/root.js +0 -8
  13. package/build/commands/uninstall.js +0 -11
  14. package/build/index.js +0 -35
  15. package/build/isterm/commandManager.js +0 -184
  16. package/build/isterm/index.js +0 -4
  17. package/build/isterm/pty.js +0 -361
  18. package/build/runtime/alias.js +0 -66
  19. package/build/runtime/generator.js +0 -55
  20. package/build/runtime/model.js +0 -3
  21. package/build/runtime/parser.js +0 -133
  22. package/build/runtime/runtime.js +0 -282
  23. package/build/runtime/spec.js +0 -36
  24. package/build/runtime/suggestion.js +0 -232
  25. package/build/runtime/template.js +0 -50
  26. package/build/runtime/utils.js +0 -121
  27. package/build/ui/suggestionManager.js +0 -162
  28. package/build/ui/ui-doctor.js +0 -69
  29. package/build/ui/ui-root.js +0 -141
  30. package/build/ui/ui-uninstall.js +0 -9
  31. package/build/ui/utils.js +0 -57
  32. package/build/utils/ansi.js +0 -37
  33. package/build/utils/config.js +0 -99
  34. package/build/utils/log.js +0 -39
  35. package/build/utils/shell.js +0 -318
  36. package/build/utils/version.js +0 -13
  37. package/scripts/postinstall.js +0 -9
  38. package/shell/bash-preexec.sh +0 -380
  39. package/shell/shellIntegration-env.zsh +0 -12
  40. package/shell/shellIntegration-login.zsh +0 -9
  41. package/shell/shellIntegration-profile.zsh +0 -9
  42. package/shell/shellIntegration-rc.zsh +0 -66
  43. package/shell/shellIntegration.bash +0 -114
  44. package/shell/shellIntegration.fish +0 -27
  45. package/shell/shellIntegration.nu +0 -29
  46. package/shell/shellIntegration.ps1 +0 -26
  47. package/shell/shellIntegration.xsh +0 -31
  48. package/todo.md +0 -17
@@ -1,31 +0,0 @@
1
- import os
2
- from xonsh.main import XSH
3
-
4
- def __is_prompt_start() -> str:
5
- return "\001" + "\x1b]6973;PS\x07"
6
-
7
-
8
- def __is_prompt_end() -> str:
9
- return "\001" + "\x1b]6973;PE\x07" + "\002"
10
-
11
- def __is_escape_value(value: str) -> str:
12
- byte_list = [bytes([byte]).decode("utf-8") for byte in list(value.encode("utf-8"))]
13
- return "".join(
14
- [
15
- "\\x3b" if byte == ";" else "\\\\" if byte == "\\" else "\\x1b" if byte == "\x1b" else "\x0a" if byte == "\n"else "\\x07" if byte == "\x07" else byte
16
- for byte in byte_list
17
- ]
18
- )
19
-
20
- def __is_update_cwd() -> str:
21
- return f"\x1b]6973;CWD;{__is_escape_value(os.getcwd())}\x07" + "\002"
22
-
23
- __is_original_prompt = $PROMPT
24
-
25
- $PROMPT_FIELDS['__is_prompt_start'] = __is_prompt_start
26
- $PROMPT_FIELDS['__is_prompt_end'] = __is_prompt_end
27
- $PROMPT_FIELDS['__is_update_cwd'] = __is_update_cwd
28
- if 'ISTERM_TESTING' in ${...}:
29
- $PROMPT = "> "
30
-
31
- $PROMPT = "{__is_prompt_start}{__is_update_cwd}" + $PROMPT + "{__is_prompt_end}"
package/todo.md DELETED
@@ -1,17 +0,0 @@
1
- - [x] convert source code to commonjs
2
- - [x] convert deps to commonjs (fig/autocomplete is esm)
3
- - [ ] convert requires to SEA requires
4
- - [ ] swap over to node-pty
5
- - [ ] build for SEA
6
-
7
- esbuild build/index.js --bundle --platform=node --outdir=bundle --format=cjs --external:node-pty
8
- node scripts/require.js
9
-
10
-
11
- replace `../build/Debug/pty.node` with ``
12
-
13
- node --experimental-sea-config sea-config.json
14
- node -e "require('fs').copyFileSync(process.execPath, 'hello.exe')"
15
- signtool remove /s hello.exe
16
- npx postject hello.exe NODE_SEA_BLOB sea-prep.blob `
17
- --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2