@corbat-tech/coco 1.9.0 → 2.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.
- package/README.md +351 -170
- package/dist/cli/index.js +31331 -24231
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +27 -2
- package/dist/index.js +2020 -382
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -379,7 +379,7 @@ interface Orchestrator {
|
|
|
379
379
|
interface OrchestratorConfig {
|
|
380
380
|
projectPath: string;
|
|
381
381
|
provider: {
|
|
382
|
-
type: "anthropic" | "openai" | "gemini" | "kimi" | "lmstudio";
|
|
382
|
+
type: "anthropic" | "openai" | "gemini" | "kimi" | "kimi-code" | "lmstudio";
|
|
383
383
|
apiKey?: string;
|
|
384
384
|
model: string;
|
|
385
385
|
maxTokens?: number;
|
|
@@ -500,8 +500,16 @@ declare const CocoConfigSchema: z.ZodObject<{
|
|
|
500
500
|
openai: "openai";
|
|
501
501
|
gemini: "gemini";
|
|
502
502
|
kimi: "kimi";
|
|
503
|
+
"kimi-code": "kimi-code";
|
|
503
504
|
lmstudio: "lmstudio";
|
|
505
|
+
deepseek: "deepseek";
|
|
506
|
+
mistral: "mistral";
|
|
507
|
+
codex: "codex";
|
|
504
508
|
ollama: "ollama";
|
|
509
|
+
groq: "groq";
|
|
510
|
+
openrouter: "openrouter";
|
|
511
|
+
together: "together";
|
|
512
|
+
huggingface: "huggingface";
|
|
505
513
|
}>>;
|
|
506
514
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
507
515
|
model: z.ZodDefault<z.ZodString>;
|
|
@@ -608,6 +616,14 @@ declare const CocoConfigSchema: z.ZodObject<{
|
|
|
608
616
|
ciCheckTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
609
617
|
ciCheckPollMs: z.ZodDefault<z.ZodNumber>;
|
|
610
618
|
}, z.core.$strip>>;
|
|
619
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
620
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
621
|
+
globalDir: z.ZodOptional<z.ZodString>;
|
|
622
|
+
projectDir: z.ZodOptional<z.ZodString>;
|
|
623
|
+
autoActivate: z.ZodDefault<z.ZodBoolean>;
|
|
624
|
+
maxActiveSkills: z.ZodDefault<z.ZodNumber>;
|
|
625
|
+
disabled: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
626
|
+
}, z.core.$strip>>;
|
|
611
627
|
}, z.core.$strip>;
|
|
612
628
|
type CocoConfig = z.infer<typeof CocoConfigSchema>;
|
|
613
629
|
|
|
@@ -2943,6 +2959,15 @@ declare class AnthropicProvider implements LLMProvider {
|
|
|
2943
2959
|
* Ensure client is initialized
|
|
2944
2960
|
*/
|
|
2945
2961
|
private ensureInitialized;
|
|
2962
|
+
/**
|
|
2963
|
+
* Extract system prompt from messages array or options.
|
|
2964
|
+
*
|
|
2965
|
+
* The agent-loop passes the system message as the first element of the
|
|
2966
|
+
* messages array (role: "system"). convertMessages() strips it out because
|
|
2967
|
+
* Anthropic requires it as a top-level parameter — but all callers forgot
|
|
2968
|
+
* to also pass it via options.system. This helper bridges that gap.
|
|
2969
|
+
*/
|
|
2970
|
+
private extractSystem;
|
|
2946
2971
|
/**
|
|
2947
2972
|
* Convert messages to Anthropic format
|
|
2948
2973
|
*/
|
|
@@ -3056,7 +3081,7 @@ declare class TaskError extends CocoError {
|
|
|
3056
3081
|
/**
|
|
3057
3082
|
* Supported provider types
|
|
3058
3083
|
*/
|
|
3059
|
-
type ProviderType = "anthropic" | "openai" | "codex" | "gemini" | "kimi" | "lmstudio" | "ollama";
|
|
3084
|
+
type ProviderType = "anthropic" | "openai" | "codex" | "gemini" | "kimi" | "kimi-code" | "lmstudio" | "ollama" | "groq" | "openrouter" | "mistral" | "deepseek" | "together" | "huggingface";
|
|
3060
3085
|
/**
|
|
3061
3086
|
* Create a provider by type
|
|
3062
3087
|
*/
|