@vectorx/xhs-cloud-cli 0.1.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 (50) hide show
  1. package/README.md +34 -0
  2. package/bin/rcb.js +264 -0
  3. package/lib/commands/agent/build.js +222 -0
  4. package/lib/commands/agent/dev.js +112 -0
  5. package/lib/commands/agent/index.js +19 -0
  6. package/lib/commands/agent/new.js +125 -0
  7. package/lib/commands/auth/index.js +18 -0
  8. package/lib/commands/auth/login.js +196 -0
  9. package/lib/commands/auth/logout.js +87 -0
  10. package/lib/commands/index.js +18 -0
  11. package/lib/constants/cmd.js +37 -0
  12. package/lib/core/base.js +95 -0
  13. package/lib/decorators/auth.js +49 -0
  14. package/lib/decorators/captureError.js +28 -0
  15. package/lib/decorators/constants.js +15 -0
  16. package/lib/decorators/index.js +20 -0
  17. package/lib/decorators/injectParams.js +57 -0
  18. package/lib/decorators/params/common.js +16 -0
  19. package/lib/decorators/params/index.js +29 -0
  20. package/lib/index.js +17 -0
  21. package/lib/main.js +20 -0
  22. package/lib/output.js +7 -0
  23. package/package.json +103 -0
  24. package/templates/chatbox-agent/.env.template +2 -0
  25. package/templates/chatbox-agent/agent-cloudbase-functions.json +11 -0
  26. package/templates/chatbox-agent/package.json +11 -0
  27. package/templates/chatbox-agent/project.config.json +5 -0
  28. package/templates/chatbox-agent/src/index.js +50 -0
  29. package/templates/weather-agent/index.js +92 -0
  30. package/templates/weather-agent/project.config.json +4 -0
  31. package/types/commands/agent/build.d.ts +26 -0
  32. package/types/commands/agent/dev.d.ts +15 -0
  33. package/types/commands/agent/index.d.ts +3 -0
  34. package/types/commands/agent/new.d.ts +16 -0
  35. package/types/commands/auth/index.d.ts +2 -0
  36. package/types/commands/auth/login.d.ts +13 -0
  37. package/types/commands/auth/logout.d.ts +7 -0
  38. package/types/commands/index.d.ts +2 -0
  39. package/types/constants/cmd.d.ts +11 -0
  40. package/types/core/base.d.ts +40 -0
  41. package/types/decorators/auth.d.ts +1 -0
  42. package/types/decorators/captureError.d.ts +1 -0
  43. package/types/decorators/constants.d.ts +11 -0
  44. package/types/decorators/index.d.ts +4 -0
  45. package/types/decorators/injectParams.d.ts +1 -0
  46. package/types/decorators/params/common.d.ts +4 -0
  47. package/types/decorators/params/index.d.ts +8 -0
  48. package/types/index.d.ts +1 -0
  49. package/types/main.d.ts +3 -0
  50. package/types/output.d.ts +3 -0
@@ -0,0 +1,4 @@
1
+ import { type ParamTypes } from "../constants";
2
+ type GetterFunction = (target: any) => Promise<any> | any;
3
+ export declare const createParamDecorator: (paramtype: ParamTypes, getter: GetterFunction) => () => (target: any, key: string | symbol, index: number) => void;
4
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const Credential: () => (target: any, key: string | symbol, index: number) => void;
2
+ export declare const Log: () => (target: any, key: string | symbol, index: number) => void;
3
+ export declare const CmdContext: () => (target: any, key: string | symbol, index: number) => void;
4
+ export declare const ArgsOptions: () => (target: any, key: string | symbol, index: number) => void;
5
+ export declare const ArgsParams: () => (target: any, key: string | symbol, index: number) => void;
6
+ export declare const EnvId: () => (target: any, key: string | symbol, index: number) => void;
7
+ export declare const Config: () => (target: any, key: string | symbol, index: number) => void;
8
+ export declare const IsPrivateEnv: () => (target: any, key: string | symbol, index: number) => void;
@@ -0,0 +1 @@
1
+ export * from "./main";
@@ -0,0 +1,3 @@
1
+ import "reflect-metadata";
2
+ import "./commands";
3
+ export declare function registerCommands(): Promise<void>;
@@ -0,0 +1,3 @@
1
+ export declare const output: {
2
+ helpInfo: () => void;
3
+ };