@locusai/sdk 0.16.1 → 0.18.1

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 (133) hide show
  1. package/PACKAGE_GUIDE.md +269 -0
  2. package/package.json +28 -28
  3. package/dist/agent/codebase-indexer-service.d.ts +0 -17
  4. package/dist/agent/codebase-indexer-service.d.ts.map +0 -1
  5. package/dist/agent/document-fetcher.d.ts +0 -23
  6. package/dist/agent/document-fetcher.d.ts.map +0 -1
  7. package/dist/agent/git-workflow.d.ts +0 -59
  8. package/dist/agent/git-workflow.d.ts.map +0 -1
  9. package/dist/agent/index.d.ts +0 -9
  10. package/dist/agent/index.d.ts.map +0 -1
  11. package/dist/agent/review-service.d.ts +0 -21
  12. package/dist/agent/review-service.d.ts.map +0 -1
  13. package/dist/agent/reviewer-worker.d.ts +0 -41
  14. package/dist/agent/reviewer-worker.d.ts.map +0 -1
  15. package/dist/agent/task-executor.d.ts +0 -26
  16. package/dist/agent/task-executor.d.ts.map +0 -1
  17. package/dist/agent/worker-cli.d.ts +0 -6
  18. package/dist/agent/worker-cli.d.ts.map +0 -1
  19. package/dist/agent/worker-types.d.ts +0 -36
  20. package/dist/agent/worker-types.d.ts.map +0 -1
  21. package/dist/agent/worker.d.ts +0 -39
  22. package/dist/agent/worker.d.ts.map +0 -1
  23. package/dist/agent/worker.js +0 -2837
  24. package/dist/ai/__tests__/factory.test.d.ts +0 -2
  25. package/dist/ai/__tests__/factory.test.d.ts.map +0 -1
  26. package/dist/ai/claude-runner.d.ts +0 -42
  27. package/dist/ai/claude-runner.d.ts.map +0 -1
  28. package/dist/ai/codex-runner.d.ts +0 -38
  29. package/dist/ai/codex-runner.d.ts.map +0 -1
  30. package/dist/ai/factory.d.ts +0 -15
  31. package/dist/ai/factory.d.ts.map +0 -1
  32. package/dist/ai/index.d.ts +0 -6
  33. package/dist/ai/index.d.ts.map +0 -1
  34. package/dist/ai/runner.d.ts +0 -23
  35. package/dist/ai/runner.d.ts.map +0 -1
  36. package/dist/core/config.d.ts +0 -58
  37. package/dist/core/config.d.ts.map +0 -1
  38. package/dist/core/index.d.ts +0 -4
  39. package/dist/core/index.d.ts.map +0 -1
  40. package/dist/core/indexer.d.ts +0 -31
  41. package/dist/core/indexer.d.ts.map +0 -1
  42. package/dist/core/prompt-builder.d.ts +0 -14
  43. package/dist/core/prompt-builder.d.ts.map +0 -1
  44. package/dist/discussion/agents/facilitator-prompt.d.ts +0 -13
  45. package/dist/discussion/agents/facilitator-prompt.d.ts.map +0 -1
  46. package/dist/discussion/discussion-facilitator.d.ts +0 -67
  47. package/dist/discussion/discussion-facilitator.d.ts.map +0 -1
  48. package/dist/discussion/discussion-manager.d.ts +0 -59
  49. package/dist/discussion/discussion-manager.d.ts.map +0 -1
  50. package/dist/discussion/discussion-types.d.ts +0 -89
  51. package/dist/discussion/discussion-types.d.ts.map +0 -1
  52. package/dist/discussion/index.d.ts +0 -5
  53. package/dist/discussion/index.d.ts.map +0 -1
  54. package/dist/events.d.ts +0 -22
  55. package/dist/events.d.ts.map +0 -1
  56. package/dist/exec/context-tracker.d.ts +0 -183
  57. package/dist/exec/context-tracker.d.ts.map +0 -1
  58. package/dist/exec/event-emitter.d.ts +0 -117
  59. package/dist/exec/event-emitter.d.ts.map +0 -1
  60. package/dist/exec/events.d.ts +0 -171
  61. package/dist/exec/events.d.ts.map +0 -1
  62. package/dist/exec/exec-session.d.ts +0 -164
  63. package/dist/exec/exec-session.d.ts.map +0 -1
  64. package/dist/exec/history-manager.d.ts +0 -153
  65. package/dist/exec/history-manager.d.ts.map +0 -1
  66. package/dist/exec/index.d.ts +0 -7
  67. package/dist/exec/index.d.ts.map +0 -1
  68. package/dist/exec/types.d.ts +0 -130
  69. package/dist/exec/types.d.ts.map +0 -1
  70. package/dist/git/git-utils.d.ts +0 -31
  71. package/dist/git/git-utils.d.ts.map +0 -1
  72. package/dist/git/index.d.ts +0 -3
  73. package/dist/git/index.d.ts.map +0 -1
  74. package/dist/git/pr-service.d.ts +0 -66
  75. package/dist/git/pr-service.d.ts.map +0 -1
  76. package/dist/index-node.d.ts +0 -22
  77. package/dist/index-node.d.ts.map +0 -1
  78. package/dist/index-node.js +0 -5662
  79. package/dist/index.d.ts +0 -40
  80. package/dist/index.d.ts.map +0 -1
  81. package/dist/index.js +0 -618
  82. package/dist/modules/auth.d.ts +0 -23
  83. package/dist/modules/auth.d.ts.map +0 -1
  84. package/dist/modules/base.d.ts +0 -8
  85. package/dist/modules/base.d.ts.map +0 -1
  86. package/dist/modules/ci.d.ts +0 -8
  87. package/dist/modules/ci.d.ts.map +0 -1
  88. package/dist/modules/docs.d.ts +0 -14
  89. package/dist/modules/docs.d.ts.map +0 -1
  90. package/dist/modules/instances.d.ts +0 -46
  91. package/dist/modules/instances.d.ts.map +0 -1
  92. package/dist/modules/invitations.d.ts +0 -10
  93. package/dist/modules/invitations.d.ts.map +0 -1
  94. package/dist/modules/organizations.d.ts +0 -24
  95. package/dist/modules/organizations.d.ts.map +0 -1
  96. package/dist/modules/sprints.d.ts +0 -14
  97. package/dist/modules/sprints.d.ts.map +0 -1
  98. package/dist/modules/tasks.d.ts +0 -25
  99. package/dist/modules/tasks.d.ts.map +0 -1
  100. package/dist/modules/workspaces.d.ts +0 -59
  101. package/dist/modules/workspaces.d.ts.map +0 -1
  102. package/dist/orchestrator/index.d.ts +0 -85
  103. package/dist/orchestrator/index.d.ts.map +0 -1
  104. package/dist/orchestrator/types.d.ts +0 -36
  105. package/dist/orchestrator/types.d.ts.map +0 -1
  106. package/dist/planning/agents/architect.d.ts +0 -1
  107. package/dist/planning/agents/architect.d.ts.map +0 -1
  108. package/dist/planning/agents/cross-task-reviewer.d.ts +0 -1
  109. package/dist/planning/agents/cross-task-reviewer.d.ts.map +0 -1
  110. package/dist/planning/agents/planner.d.ts +0 -20
  111. package/dist/planning/agents/planner.d.ts.map +0 -1
  112. package/dist/planning/agents/sprint-organizer.d.ts +0 -1
  113. package/dist/planning/agents/sprint-organizer.d.ts.map +0 -1
  114. package/dist/planning/agents/tech-lead.d.ts +0 -1
  115. package/dist/planning/agents/tech-lead.d.ts.map +0 -1
  116. package/dist/planning/index.d.ts +0 -4
  117. package/dist/planning/index.d.ts.map +0 -1
  118. package/dist/planning/plan-manager.d.ts +0 -51
  119. package/dist/planning/plan-manager.d.ts.map +0 -1
  120. package/dist/planning/planning-meeting.d.ts +0 -33
  121. package/dist/planning/planning-meeting.d.ts.map +0 -1
  122. package/dist/planning/sprint-plan.d.ts +0 -51
  123. package/dist/planning/sprint-plan.d.ts.map +0 -1
  124. package/dist/utils/colors.d.ts +0 -62
  125. package/dist/utils/colors.d.ts.map +0 -1
  126. package/dist/utils/json-extractor.d.ts +0 -10
  127. package/dist/utils/json-extractor.d.ts.map +0 -1
  128. package/dist/utils/resolve-bin.d.ts +0 -15
  129. package/dist/utils/resolve-bin.d.ts.map +0 -1
  130. package/dist/utils/retry.d.ts +0 -8
  131. package/dist/utils/retry.d.ts.map +0 -1
  132. package/dist/utils/structured-output.d.ts +0 -14
  133. package/dist/utils/structured-output.d.ts.map +0 -1
@@ -1,62 +0,0 @@
1
- /**
2
- * Simple ANSI color utility for terminal output
3
- * Dependency-free and works in Node.js/Bun environments
4
- */
5
- declare const colors: {
6
- reset: string;
7
- bold: string;
8
- dim: string;
9
- italic: string;
10
- underline: string;
11
- black: string;
12
- red: string;
13
- green: string;
14
- yellow: string;
15
- blue: string;
16
- magenta: string;
17
- cyan: string;
18
- white: string;
19
- gray: string;
20
- brightRed: string;
21
- brightGreen: string;
22
- brightYellow: string;
23
- brightBlue: string;
24
- brightMagenta: string;
25
- brightCyan: string;
26
- brightWhite: string;
27
- bgBlack: string;
28
- bgRed: string;
29
- bgGreen: string;
30
- bgYellow: string;
31
- bgBlue: string;
32
- bgMagenta: string;
33
- bgCyan: string;
34
- bgWhite: string;
35
- };
36
- type ColorName = keyof typeof colors;
37
- export declare const c: {
38
- text: (text: string, ...colorNames: ColorName[]) => string;
39
- bold: (t: string) => string;
40
- dim: (t: string) => string;
41
- red: (t: string) => string;
42
- green: (t: string) => string;
43
- yellow: (t: string) => string;
44
- blue: (t: string) => string;
45
- magenta: (t: string) => string;
46
- cyan: (t: string) => string;
47
- gray: (t: string) => string;
48
- white: (t: string) => string;
49
- brightBlue: (t: string) => string;
50
- bgBlue: (t: string) => string;
51
- success: (t: string) => string;
52
- error: (t: string) => string;
53
- warning: (t: string) => string;
54
- info: (t: string) => string;
55
- primary: (t: string) => string;
56
- secondary: (t: string) => string;
57
- header: (t: string) => string;
58
- step: (t: string) => string;
59
- underline: (t: string) => string;
60
- };
61
- export {};
62
- //# sourceMappingURL=colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/utils/colors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCX,CAAC;AAEF,KAAK,SAAS,GAAG,MAAM,OAAO,MAAM,CAAC;AAErC,eAAO,MAAM,CAAC;iBACC,MAAM,iBAAiB,SAAS,EAAE;cAMrC,MAAM;aACP,MAAM;aACN,MAAM;eACJ,MAAM;gBACL,MAAM;cACR,MAAM;iBACH,MAAM;cACT,MAAM;cACN,MAAM;eAEL,MAAM;oBACD,MAAM;gBACV,MAAM;iBAGL,MAAM;eACR,MAAM;iBACJ,MAAM;cACT,MAAM;iBACH,MAAM;mBACJ,MAAM;gBACT,MAAM;cACR,MAAM;mBACD,MAAM;CACtB,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Extract a JSON object string from LLM output.
3
- *
4
- * Handles common LLM output patterns:
5
- * - Pure JSON
6
- * - JSON wrapped in markdown code fences
7
- * - JSON preceded/followed by prose text
8
- */
9
- export declare function extractJsonFromLLMOutput(raw: string): string;
10
- //# sourceMappingURL=json-extractor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-extractor.d.ts","sourceRoot":"","sources":["../../src/utils/json-extractor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiD5D"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Build a PATH string that includes common CLI binary directories
3
- * in addition to the current process PATH. Existing entries take priority.
4
- */
5
- export declare function getAugmentedPath(): string;
6
- /**
7
- * Returns a copy of the current process.env with an augmented PATH.
8
- * Use this when spawning CLI tools (claude, codex) to ensure they
9
- * can be found even when running from restricted environments.
10
- *
11
- * Strips environment variables that interfere with spawned CLI
12
- * processes (e.g. CLAUDECODE which triggers nested-session guards).
13
- */
14
- export declare function getAugmentedEnv(overrides?: Record<string, string>): NodeJS.ProcessEnv;
15
- //# sourceMappingURL=resolve-bin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-bin.d.ts","sourceRoot":"","sources":["../../src/utils/resolve-bin.ts"],"names":[],"mappings":"AA4GA;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CA2BzC;AASD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACrC,MAAM,CAAC,UAAU,CAYnB"}
@@ -1,8 +0,0 @@
1
- export interface RetryOptions {
2
- maxRetries?: number;
3
- initialDelay?: number;
4
- maxDelay?: number;
5
- factor?: number;
6
- retryCondition?: (error: unknown) => boolean;
7
- }
8
- //# sourceMappingURL=retry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../src/utils/retry.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;CAC9C"}
@@ -1,14 +0,0 @@
1
- import { z } from "zod";
2
- /**
3
- * Parse raw LLM output into a typed object validated by a Zod schema.
4
- *
5
- * Steps:
6
- * 1. Extract JSON from the raw LLM text (handles markdown blocks, surrounding prose)
7
- * 2. Parse the extracted string with JSON.parse
8
- * 3. Validate + coerce through the provided Zod schema
9
- *
10
- * On failure, throws with an actionable error message that includes
11
- * the Zod validation issues so callers can log or surface them.
12
- */
13
- export declare function parseJsonWithSchema<T extends z.ZodType>(raw: string, schema: T): z.output<T>;
14
- //# sourceMappingURL=structured-output.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"structured-output.d.ts","sourceRoot":"","sources":["../../src/utils/structured-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EACrD,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,GACR,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CA2Bb"}