yuangs 1.3.39 → 1.3.45

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 (59) hide show
  1. package/README.md +44 -0
  2. package/dist/ai/client.d.ts +9 -0
  3. package/dist/ai/client.js +118 -0
  4. package/dist/ai/client.js.map +1 -0
  5. package/dist/ai/prompt.d.ts +3 -0
  6. package/dist/ai/prompt.js +56 -0
  7. package/dist/ai/prompt.js.map +1 -0
  8. package/dist/ai/types.d.ts +5 -0
  9. package/dist/ai/types.js +3 -0
  10. package/dist/ai/types.js.map +1 -0
  11. package/dist/cli.d.ts +2 -0
  12. package/dist/cli.js +142 -0
  13. package/dist/cli.js.map +1 -0
  14. package/dist/commands/handleAIChat.d.ts +1 -0
  15. package/dist/commands/handleAIChat.js +111 -0
  16. package/dist/commands/handleAIChat.js.map +1 -0
  17. package/dist/commands/handleAICommand.d.ts +4 -0
  18. package/dist/commands/handleAICommand.js +97 -0
  19. package/dist/commands/handleAICommand.js.map +1 -0
  20. package/dist/commands/handleConfig.d.ts +1 -0
  21. package/dist/commands/handleConfig.js +73 -0
  22. package/dist/commands/handleConfig.js.map +1 -0
  23. package/dist/core/apps.d.ts +7 -0
  24. package/dist/core/apps.js +64 -0
  25. package/dist/core/apps.js.map +1 -0
  26. package/dist/core/autofix.d.ts +3 -0
  27. package/dist/core/autofix.js +24 -0
  28. package/dist/core/autofix.js.map +1 -0
  29. package/dist/core/executor.d.ts +6 -0
  30. package/dist/core/executor.js +28 -0
  31. package/dist/core/executor.js.map +1 -0
  32. package/dist/core/macros.d.ts +9 -0
  33. package/dist/core/macros.js +51 -0
  34. package/dist/core/macros.js.map +1 -0
  35. package/dist/core/os.d.ts +7 -0
  36. package/dist/core/os.js +36 -0
  37. package/dist/core/os.js.map +1 -0
  38. package/dist/core/risk.d.ts +1 -0
  39. package/dist/core/risk.js +11 -0
  40. package/dist/core/risk.js.map +1 -0
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.js +3 -0
  43. package/dist/index.js.map +1 -0
  44. package/dist/utils/confirm.d.ts +1 -0
  45. package/dist/utils/confirm.js +55 -0
  46. package/dist/utils/confirm.js.map +1 -0
  47. package/dist/utils/history.d.ts +10 -0
  48. package/dist/utils/history.js +31 -0
  49. package/dist/utils/history.js.map +1 -0
  50. package/package.json +24 -8
  51. package/cli.js +0 -597
  52. package/index.js +0 -361
  53. package/test/index.test.js +0 -78
  54. package/test/macros.test.js +0 -91
  55. package/test_interactive_history.js +0 -66
  56. package/test_interactive_history_multi.js +0 -67
  57. package/yuangs.config.example.json +0 -11
  58. package/yuangs.config.example.yaml +0 -23
  59. package/yuangs.config.json +0 -9
@@ -1,23 +0,0 @@
1
- # Example configuration file for yuangs CLI
2
- # Add your custom applications here
3
-
4
- shici: "https://wealth.want.biz/shici/index.html"
5
- dict: "https://wealth.want.biz/pages/dict.html"
6
- pong: "https://wealth.want.biz/pages/pong.html"
7
- github: "https://github.com"
8
- calendar: "https://calendar.google.com"
9
- mail: "https://mail.google.com"
10
-
11
- # AI Configuration
12
- aiProxyUrl: "https://aiproxy.want.biz/v1/chat/completions"
13
- defaultModel: "Assistant"
14
- accountType: "free"
15
-
16
- # You can also use the apps property if you prefer to group them
17
- # apps:
18
- # shici: "https://wealth.want.biz/shici/index.html"
19
- # dict: "https://wealth.want.biz/pages/dict.html"
20
- # pong: "https://wealth.want.biz/pages/pong.html"
21
- # github: "https://github.com"
22
- # calendar: "https://calendar.google.com"
23
- # mail: "https://mail.google.com"
@@ -1,9 +0,0 @@
1
- {
2
- "shici": "https://wealth.want.biz/shici/index.html",
3
- "dict": "https://wealth.want.biz/pages/dict.html",
4
- "pong": "https://wealth.want.biz/pages/pong.html",
5
- "mail": "https://mail.google.com",
6
- "github": "https://github.com",
7
- "calendar": "https://calendar.google.com",
8
- "homepage": "https://i.want.biz"
9
- }