codebuff 1.0.237 → 1.0.239

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/dist/background-process-manager.js +43 -4
  2. package/dist/background-process-manager.js.map +1 -1
  3. package/dist/checkpoints/file-manager.js +1 -1
  4. package/dist/cli.d.ts +0 -1
  5. package/dist/cli.js +19 -11
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client.d.ts +12 -2
  8. package/dist/client.js +54 -25
  9. package/dist/client.js.map +1 -1
  10. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  11. package/dist/common/billing/quota-manager.d.ts +29 -0
  12. package/dist/common/billing/quota-manager.js +251 -0
  13. package/dist/common/billing/quota-manager.js.map +1 -0
  14. package/dist/common/constants/analytics-events.d.ts +12 -0
  15. package/dist/common/constants/analytics-events.js +19 -0
  16. package/dist/common/constants/analytics-events.js.map +1 -0
  17. package/dist/common/logger.d.ts +1 -0
  18. package/dist/common/logger.js +7 -0
  19. package/dist/common/logger.js.map +1 -0
  20. package/dist/common/types/usage.d.ts +4 -4
  21. package/dist/common/util/constants.d.ts +1 -0
  22. package/dist/common/util/constants.js +7 -0
  23. package/dist/common/util/constants.js.map +1 -0
  24. package/dist/common/util/helpers.d.ts +1 -0
  25. package/dist/common/util/helpers.js +6 -0
  26. package/dist/common/util/helpers.js.map +1 -0
  27. package/dist/common/util/logger.js +1 -1
  28. package/dist/common/util/logger.js.map +1 -1
  29. package/dist/common/util/token-counter.d.ts +3 -0
  30. package/dist/common/util/token-counter.js +27 -0
  31. package/dist/common/util/token-counter.js.map +1 -0
  32. package/dist/common/util/tools.d.ts +2 -0
  33. package/dist/common/util/tools.js +13 -0
  34. package/dist/common/util/tools.js.map +1 -0
  35. package/dist/dev-process-manager.js +3 -3
  36. package/dist/dev-process-manager.js.map +1 -1
  37. package/dist/index.js +5 -1
  38. package/dist/index.js.map +1 -1
  39. package/dist/menu.js +14 -12
  40. package/dist/menu.js.map +1 -1
  41. package/dist/update-codebuff.js +2 -0
  42. package/dist/update-codebuff.js.map +1 -1
  43. package/dist/utils/analytics.d.ts +6 -0
  44. package/dist/utils/analytics.js +53 -0
  45. package/dist/utils/analytics.js.map +1 -0
  46. package/dist/utils/logger.d.ts +21 -0
  47. package/dist/utils/logger.js +78 -0
  48. package/dist/utils/logger.js.map +1 -0
  49. package/package.json +2 -1
  50. package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +0 -66
@@ -1,66 +0,0 @@
1
- // Bun Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`stringifySchemaForLLM should correctly stringify StartupProcessSchema 1`] = `
4
- "Schema: StartupProcessSchema
5
- Object (Defines a single startup process. This validates the structure of an object representing a command that Codebuff can run automatically when it starts.) {
6
- name: String (A user-friendly name for the process.)
7
- command: String (The actual shell command to execute.)
8
- cwd: Optional<String> (The working directory from which to run the command.)
9
- enabled: Default<Optional<Boolean>> (default: true) (Whether this process should be run.)
10
- stdoutFile: Optional<String> (Path to write process stdout output. If not specified, output is not stored.)
11
- stderrFile: Optional<String> (Path to write process stderr output. If not specified, output is not stored.)
12
- }"
13
- `;
14
-
15
- exports[`stringifySchemaForLLM should correctly stringify CodebuffConfigSchema 1`] = `
16
- "Schema: CodebuffConfigSchema
17
- Object (Defines the overall Codebuff configuration file (e.g., codebuff.json). This schema defines the top-level structure of the configuration.) {
18
- startupProcesses: Optional<Array<Object (Defines a single startup process. This validates the structure of an object representing a command that Codebuff can run automatically when it starts.) {
19
- name: String (A user-friendly name for the process.)
20
- command: String (The actual shell command to execute.)
21
- cwd: Optional<String> (The working directory from which to run the command.)
22
- enabled: Default<Optional<Boolean>> (default: true) (Whether this process should be run.)
23
- stdoutFile: Optional<String> (Path to write process stdout output. If not specified, output is not stored.)
24
- stderrFile: Optional<String> (Path to write process stderr output. If not specified, output is not stored.)
25
- }>> (An array of startup processes, each validated by the StartupProcessSchema.)
26
- }"
27
- `;
28
-
29
- exports[`stringifySchemaForLLM should handle a more complex schema 1`] = `
30
- "Schema: ComplexSchema
31
- Object (A complex test schema) {
32
- id: String (Unique identifier)
33
- count: Number (A positive integer count)
34
- isActive: Boolean (Activity status)
35
- tags: Optional<Array<String>> (Optional list of tags)
36
- nested: Object (A nested object structure) {
37
- value: String
38
- config: Object (Nested configuration) {
39
- retries: Default<Number> (default: 3) (Number of retries)
40
- }
41
- }
42
- }"
43
- `;
44
-
45
- exports[`stringifySchemaForLLM should handle an empty object schema 1`] = `
46
- "Schema: EmptySchema
47
- Object (An empty schema) {
48
- }"
49
- `;
50
-
51
- exports[`stringifySchemaForLLM should handle schema with only optional fields 1`] = `
52
- "Schema: OptionalOnlySchema
53
- Object (Schema with only optional fields) {
54
- field1: Optional<String> (Optional field 1)
55
- field2: Optional<Number> (Optional field 2)
56
- }"
57
- `;
58
-
59
- exports[`stringifySchemaForLLM should handle schema with default values 1`] = `
60
- "Schema: DefaultSchema
61
- Object (Schema demonstrating default values) {
62
- name: Default<String> (default: "anonymous") (Name with default)
63
- level: Default<Number> (default: 1) (Level with default)
64
- enabled: Default<Boolean> (default: false) (Enabled with default)
65
- }"
66
- `;