@bytevion/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 (75) hide show
  1. package/bin/run.js +7 -0
  2. package/dist/base.d.ts +20 -0
  3. package/dist/base.js +49 -0
  4. package/dist/commands/batch/list.d.ts +5 -0
  5. package/dist/commands/batch/list.js +22 -0
  6. package/dist/commands/batch/poll.d.ts +13 -0
  7. package/dist/commands/batch/poll.js +42 -0
  8. package/dist/commands/batch/submit.d.ts +13 -0
  9. package/dist/commands/batch/submit.js +74 -0
  10. package/dist/commands/doctor.d.ts +5 -0
  11. package/dist/commands/doctor.js +65 -0
  12. package/dist/commands/env.d.ts +10 -0
  13. package/dist/commands/env.js +35 -0
  14. package/dist/commands/init.d.ts +12 -0
  15. package/dist/commands/init.js +58 -0
  16. package/dist/commands/integrate.d.ts +20 -0
  17. package/dist/commands/integrate.js +133 -0
  18. package/dist/commands/keys/create.d.ts +11 -0
  19. package/dist/commands/keys/create.js +33 -0
  20. package/dist/commands/keys/list.d.ts +5 -0
  21. package/dist/commands/keys/list.js +21 -0
  22. package/dist/commands/keys/revoke.d.ts +11 -0
  23. package/dist/commands/keys/revoke.js +19 -0
  24. package/dist/commands/keys/rotate.d.ts +11 -0
  25. package/dist/commands/keys/rotate.js +24 -0
  26. package/dist/commands/login.d.ts +9 -0
  27. package/dist/commands/login.js +76 -0
  28. package/dist/commands/logout.d.ts +5 -0
  29. package/dist/commands/logout.js +24 -0
  30. package/dist/commands/opt/preset.d.ts +8 -0
  31. package/dist/commands/opt/preset.js +23 -0
  32. package/dist/commands/opt/set.d.ts +10 -0
  33. package/dist/commands/opt/set.js +22 -0
  34. package/dist/commands/opt/show.d.ts +5 -0
  35. package/dist/commands/opt/show.js +24 -0
  36. package/dist/commands/providers/add.d.ts +12 -0
  37. package/dist/commands/providers/add.js +40 -0
  38. package/dist/commands/providers/list.d.ts +5 -0
  39. package/dist/commands/providers/list.js +22 -0
  40. package/dist/commands/providers/rotate.d.ts +14 -0
  41. package/dist/commands/providers/rotate.js +28 -0
  42. package/dist/commands/providers/test.d.ts +11 -0
  43. package/dist/commands/providers/test.js +22 -0
  44. package/dist/commands/run.d.ts +13 -0
  45. package/dist/commands/run.js +32 -0
  46. package/dist/commands/sessions/index.d.ts +5 -0
  47. package/dist/commands/sessions/index.js +21 -0
  48. package/dist/commands/sessions/revoke.d.ts +8 -0
  49. package/dist/commands/sessions/revoke.js +19 -0
  50. package/dist/commands/stats.d.ts +5 -0
  51. package/dist/commands/stats.js +27 -0
  52. package/dist/commands/usage.d.ts +8 -0
  53. package/dist/commands/usage.js +32 -0
  54. package/dist/commands/whoami.d.ts +5 -0
  55. package/dist/commands/whoami.js +19 -0
  56. package/dist/lib/api.d.ts +40 -0
  57. package/dist/lib/api.js +147 -0
  58. package/dist/lib/config.d.ts +20 -0
  59. package/dist/lib/config.js +52 -0
  60. package/dist/lib/credentials.d.ts +5 -0
  61. package/dist/lib/credentials.js +50 -0
  62. package/dist/lib/errors.d.ts +7 -0
  63. package/dist/lib/errors.js +30 -0
  64. package/dist/lib/integrations.d.ts +23 -0
  65. package/dist/lib/integrations.js +145 -0
  66. package/dist/lib/output.d.ts +4 -0
  67. package/dist/lib/output.js +37 -0
  68. package/dist/lib/paths.d.ts +3 -0
  69. package/dist/lib/paths.js +19 -0
  70. package/dist/lib/shell.d.ts +4 -0
  71. package/dist/lib/shell.js +25 -0
  72. package/dist/lib/util.d.ts +4 -0
  73. package/dist/lib/util.js +101 -0
  74. package/oclif.manifest.json +1516 -0
  75. package/package.json +59 -0
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@bytevion/cli",
3
+ "version": "0.1.0",
4
+ "description": "Byte — control your LLM optimization gateway from the terminal.",
5
+ "author": "Byte",
6
+ "license": "UNLICENSED",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "bin": {
11
+ "byte": "./bin/run.js"
12
+ },
13
+ "type": "commonjs",
14
+ "engines": {
15
+ "node": ">=20"
16
+ },
17
+ "files": [
18
+ "/bin",
19
+ "/dist",
20
+ "/oclif.manifest.json"
21
+ ],
22
+ "dependencies": {
23
+ "@oclif/core": "^4.0.0",
24
+ "cli-table3": "^0.6.5"
25
+ },
26
+ "devDependencies": {
27
+ "@types/node": "^22.0.0",
28
+ "oclif": "^4.14.0",
29
+ "typescript": "^5.5.0"
30
+ },
31
+ "oclif": {
32
+ "bin": "byte",
33
+ "dirname": "byte",
34
+ "targets": [
35
+ "win32-x64",
36
+ "linux-x64",
37
+ "darwin-x64",
38
+ "darwin-arm64"
39
+ ],
40
+ "commands": "./dist/commands",
41
+ "topicSeparator": " ",
42
+ "topics": {
43
+ "keys": { "description": "Create, list, rotate, and revoke Byte API keys" },
44
+ "providers": { "description": "Manage upstream provider keys (bring your own key)" },
45
+ "opt": { "description": "Inspect and tune optimizations" },
46
+ "batch": { "description": "Run offline, cost-optimized batch jobs" },
47
+ "sessions": { "description": "List and revoke terminal sessions" },
48
+ "integrate": { "description": "Wire a coding harness or SDK to Byte" }
49
+ }
50
+ },
51
+ "scripts": {
52
+ "build": "tsc -b && oclif manifest",
53
+ "clean": "tsc -b --clean",
54
+ "prepublishOnly": "node -e \"const fs=require('fs');for(const f of (fs.existsSync('dist')?fs.readdirSync('dist'):[])){if(f.endsWith('.tar.gz')||f.endsWith('.tar.xz')||f.startsWith('SHA256SUMS'))fs.rmSync('dist/'+f,{force:true})}\"",
55
+ "prepack": "npm run build",
56
+ "postpack": "node -e \"require('fs').rmSync('oclif.manifest.json',{force:true})\"",
57
+ "pack:tarballs": "oclif pack tarballs --no-xz"
58
+ }
59
+ }