codebuff 1.0.290 → 1.0.291

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 (46) hide show
  1. package/dist/cli-handlers/checkpoint.d.ts +1 -1
  2. package/dist/cli.d.ts +1 -1
  3. package/dist/cli.js +1 -1
  4. package/dist/client.d.ts +4 -4
  5. package/dist/common/actions.d.ts +144 -144
  6. package/dist/common/db/schema.d.ts +1 -1
  7. package/dist/common/types/agent-state.d.ts +8 -8
  8. package/dist/common/types/message.d.ts +6 -6
  9. package/dist/common/types/organization.d.ts +102 -0
  10. package/dist/common/types/organization.js +3 -0
  11. package/dist/common/types/organization.js.map +1 -0
  12. package/dist/common/types/usage.d.ts +2 -2
  13. package/dist/common/util/credentials.d.ts +2 -2
  14. package/dist/common/websockets/websocket-schema.d.ts +256 -256
  15. package/dist/index.js +9 -3
  16. package/dist/organization-context.d.ts +33 -0
  17. package/dist/organization-context.js +112 -0
  18. package/dist/organization-context.js.map +1 -0
  19. package/dist/slash-commands.d.ts +7 -0
  20. package/dist/slash-commands.js +21 -0
  21. package/dist/slash-commands.js.map +1 -0
  22. package/dist/utils/spinner.js +1 -1
  23. package/package.json +1 -1
  24. package/dist/common/__tests__/project-file-tree.test.d.ts +0 -1
  25. package/dist/common/__tests__/project-file-tree.test.js +0 -251
  26. package/dist/common/__tests__/project-file-tree.test.js.map +0 -1
  27. package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +0 -119
  28. package/dist/common/util/process-stream.d.ts +0 -7
  29. package/dist/common/util/process-stream.js +0 -162
  30. package/dist/common/util/process-stream.js.map +0 -1
  31. package/dist/readline.d.ts +0 -22
  32. package/dist/readline.js +0 -180
  33. package/dist/readline.js.map +0 -1
  34. package/dist/utils/__tests__/__snapshots__/background-process-manager.test.js.snap +0 -137
  35. package/dist/utils/__tests__/file-paths.test.d.ts +0 -1
  36. package/dist/utils/__tests__/file-paths.test.js +0 -37
  37. package/dist/utils/__tests__/file-paths.test.js.map +0 -1
  38. package/dist/utils/__tests__/path.test.d.ts +0 -1
  39. package/dist/utils/__tests__/path.test.js +0 -37
  40. package/dist/utils/__tests__/path.test.js.map +0 -1
  41. package/dist/utils/file-paths.d.ts +0 -9
  42. package/dist/utils/file-paths.js +0 -24
  43. package/dist/utils/file-paths.js.map +0 -1
  44. package/dist/utils/path.d.ts +0 -9
  45. package/dist/utils/path.js +0 -27
  46. package/dist/utils/path.js.map +0 -1
@@ -1,9 +0,0 @@
1
- /**
2
- * Transforms a relative filepath into an absolute one, using the project root as the base.
3
- * Handles '..' and '.' in paths correctly. Also handles Windows paths.
4
- *
5
- * @param filepath The relative filepath to transform
6
- * @param projectRoot The absolute path to the project root
7
- * @returns The absolute filepath
8
- */
9
- export declare function toAbsolutePath(filepath: string, projectRoot: string): string;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.toAbsolutePath = toAbsolutePath;
7
- const path_1 = __importDefault(require("path"));
8
- /**
9
- * Transforms a relative filepath into an absolute one, using the project root as the base.
10
- * Handles '..' and '.' in paths correctly. Also handles Windows paths.
11
- *
12
- * @param filepath The relative filepath to transform
13
- * @param projectRoot The absolute path to the project root
14
- * @returns The absolute filepath
15
- */
16
- function toAbsolutePath(filepath, projectRoot) {
17
- // If already absolute, normalize and return
18
- if (path_1.default.isAbsolute(filepath)) {
19
- return path_1.default.normalize(filepath);
20
- }
21
- // Handle Windows paths
22
- const normalizedFilepath = filepath.replace(/\\/g, '/');
23
- const normalizedProjectRoot = projectRoot.replace(/\\/g, '/');
24
- // Handle '..' at the start by resolving against project root
25
- return path_1.default.normalize(path_1.default.resolve(normalizedProjectRoot, normalizedFilepath));
26
- }
27
- //# sourceMappingURL=path.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"path.js","sourceRoot":"","sources":["../../src/utils/path.ts"],"names":[],"mappings":";;;;;AAUA,wCAYC;AAtBD,gDAAuB;AAEvB;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,QAAgB,EAAE,WAAmB;IAClE,4CAA4C;IAC5C,IAAI,cAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC9B,OAAO,cAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;IACjC,CAAC;IAED,uBAAuB;IACvB,MAAM,kBAAkB,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;IACvD,MAAM,qBAAqB,GAAG,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;IAE7D,6DAA6D;IAC7D,OAAO,cAAI,CAAC,SAAS,CAAC,cAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAAC,CAAA;AAChF,CAAC"}