@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.
- package/PACKAGE_GUIDE.md +269 -0
- package/package.json +28 -28
- package/dist/agent/codebase-indexer-service.d.ts +0 -17
- package/dist/agent/codebase-indexer-service.d.ts.map +0 -1
- package/dist/agent/document-fetcher.d.ts +0 -23
- package/dist/agent/document-fetcher.d.ts.map +0 -1
- package/dist/agent/git-workflow.d.ts +0 -59
- package/dist/agent/git-workflow.d.ts.map +0 -1
- package/dist/agent/index.d.ts +0 -9
- package/dist/agent/index.d.ts.map +0 -1
- package/dist/agent/review-service.d.ts +0 -21
- package/dist/agent/review-service.d.ts.map +0 -1
- package/dist/agent/reviewer-worker.d.ts +0 -41
- package/dist/agent/reviewer-worker.d.ts.map +0 -1
- package/dist/agent/task-executor.d.ts +0 -26
- package/dist/agent/task-executor.d.ts.map +0 -1
- package/dist/agent/worker-cli.d.ts +0 -6
- package/dist/agent/worker-cli.d.ts.map +0 -1
- package/dist/agent/worker-types.d.ts +0 -36
- package/dist/agent/worker-types.d.ts.map +0 -1
- package/dist/agent/worker.d.ts +0 -39
- package/dist/agent/worker.d.ts.map +0 -1
- package/dist/agent/worker.js +0 -2837
- package/dist/ai/__tests__/factory.test.d.ts +0 -2
- package/dist/ai/__tests__/factory.test.d.ts.map +0 -1
- package/dist/ai/claude-runner.d.ts +0 -42
- package/dist/ai/claude-runner.d.ts.map +0 -1
- package/dist/ai/codex-runner.d.ts +0 -38
- package/dist/ai/codex-runner.d.ts.map +0 -1
- package/dist/ai/factory.d.ts +0 -15
- package/dist/ai/factory.d.ts.map +0 -1
- package/dist/ai/index.d.ts +0 -6
- package/dist/ai/index.d.ts.map +0 -1
- package/dist/ai/runner.d.ts +0 -23
- package/dist/ai/runner.d.ts.map +0 -1
- package/dist/core/config.d.ts +0 -58
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/index.d.ts +0 -4
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/indexer.d.ts +0 -31
- package/dist/core/indexer.d.ts.map +0 -1
- package/dist/core/prompt-builder.d.ts +0 -14
- package/dist/core/prompt-builder.d.ts.map +0 -1
- package/dist/discussion/agents/facilitator-prompt.d.ts +0 -13
- package/dist/discussion/agents/facilitator-prompt.d.ts.map +0 -1
- package/dist/discussion/discussion-facilitator.d.ts +0 -67
- package/dist/discussion/discussion-facilitator.d.ts.map +0 -1
- package/dist/discussion/discussion-manager.d.ts +0 -59
- package/dist/discussion/discussion-manager.d.ts.map +0 -1
- package/dist/discussion/discussion-types.d.ts +0 -89
- package/dist/discussion/discussion-types.d.ts.map +0 -1
- package/dist/discussion/index.d.ts +0 -5
- package/dist/discussion/index.d.ts.map +0 -1
- package/dist/events.d.ts +0 -22
- package/dist/events.d.ts.map +0 -1
- package/dist/exec/context-tracker.d.ts +0 -183
- package/dist/exec/context-tracker.d.ts.map +0 -1
- package/dist/exec/event-emitter.d.ts +0 -117
- package/dist/exec/event-emitter.d.ts.map +0 -1
- package/dist/exec/events.d.ts +0 -171
- package/dist/exec/events.d.ts.map +0 -1
- package/dist/exec/exec-session.d.ts +0 -164
- package/dist/exec/exec-session.d.ts.map +0 -1
- package/dist/exec/history-manager.d.ts +0 -153
- package/dist/exec/history-manager.d.ts.map +0 -1
- package/dist/exec/index.d.ts +0 -7
- package/dist/exec/index.d.ts.map +0 -1
- package/dist/exec/types.d.ts +0 -130
- package/dist/exec/types.d.ts.map +0 -1
- package/dist/git/git-utils.d.ts +0 -31
- package/dist/git/git-utils.d.ts.map +0 -1
- package/dist/git/index.d.ts +0 -3
- package/dist/git/index.d.ts.map +0 -1
- package/dist/git/pr-service.d.ts +0 -66
- package/dist/git/pr-service.d.ts.map +0 -1
- package/dist/index-node.d.ts +0 -22
- package/dist/index-node.d.ts.map +0 -1
- package/dist/index-node.js +0 -5662
- package/dist/index.d.ts +0 -40
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -618
- package/dist/modules/auth.d.ts +0 -23
- package/dist/modules/auth.d.ts.map +0 -1
- package/dist/modules/base.d.ts +0 -8
- package/dist/modules/base.d.ts.map +0 -1
- package/dist/modules/ci.d.ts +0 -8
- package/dist/modules/ci.d.ts.map +0 -1
- package/dist/modules/docs.d.ts +0 -14
- package/dist/modules/docs.d.ts.map +0 -1
- package/dist/modules/instances.d.ts +0 -46
- package/dist/modules/instances.d.ts.map +0 -1
- package/dist/modules/invitations.d.ts +0 -10
- package/dist/modules/invitations.d.ts.map +0 -1
- package/dist/modules/organizations.d.ts +0 -24
- package/dist/modules/organizations.d.ts.map +0 -1
- package/dist/modules/sprints.d.ts +0 -14
- package/dist/modules/sprints.d.ts.map +0 -1
- package/dist/modules/tasks.d.ts +0 -25
- package/dist/modules/tasks.d.ts.map +0 -1
- package/dist/modules/workspaces.d.ts +0 -59
- package/dist/modules/workspaces.d.ts.map +0 -1
- package/dist/orchestrator/index.d.ts +0 -85
- package/dist/orchestrator/index.d.ts.map +0 -1
- package/dist/orchestrator/types.d.ts +0 -36
- package/dist/orchestrator/types.d.ts.map +0 -1
- package/dist/planning/agents/architect.d.ts +0 -1
- package/dist/planning/agents/architect.d.ts.map +0 -1
- package/dist/planning/agents/cross-task-reviewer.d.ts +0 -1
- package/dist/planning/agents/cross-task-reviewer.d.ts.map +0 -1
- package/dist/planning/agents/planner.d.ts +0 -20
- package/dist/planning/agents/planner.d.ts.map +0 -1
- package/dist/planning/agents/sprint-organizer.d.ts +0 -1
- package/dist/planning/agents/sprint-organizer.d.ts.map +0 -1
- package/dist/planning/agents/tech-lead.d.ts +0 -1
- package/dist/planning/agents/tech-lead.d.ts.map +0 -1
- package/dist/planning/index.d.ts +0 -4
- package/dist/planning/index.d.ts.map +0 -1
- package/dist/planning/plan-manager.d.ts +0 -51
- package/dist/planning/plan-manager.d.ts.map +0 -1
- package/dist/planning/planning-meeting.d.ts +0 -33
- package/dist/planning/planning-meeting.d.ts.map +0 -1
- package/dist/planning/sprint-plan.d.ts +0 -51
- package/dist/planning/sprint-plan.d.ts.map +0 -1
- package/dist/utils/colors.d.ts +0 -62
- package/dist/utils/colors.d.ts.map +0 -1
- package/dist/utils/json-extractor.d.ts +0 -10
- package/dist/utils/json-extractor.d.ts.map +0 -1
- package/dist/utils/resolve-bin.d.ts +0 -15
- package/dist/utils/resolve-bin.d.ts.map +0 -1
- package/dist/utils/retry.d.ts +0 -8
- package/dist/utils/retry.d.ts.map +0 -1
- package/dist/utils/structured-output.d.ts +0 -14
- package/dist/utils/structured-output.d.ts.map +0 -1
package/dist/utils/colors.d.ts
DELETED
|
@@ -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"}
|
package/dist/utils/retry.d.ts
DELETED
|
@@ -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"}
|