ferix-code 0.0.2-beta.13 → 0.0.2-beta.14
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/dist/index.d.ts +11 -8
- package/dist/index.js +404 -311
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as effect_Types from 'effect/Types';
|
|
|
4
4
|
import * as effect_Effect from 'effect/Effect';
|
|
5
5
|
import * as effect_ParseResult from 'effect/ParseResult';
|
|
6
6
|
import * as effect_SchemaAST from 'effect/SchemaAST';
|
|
7
|
+
import * as effect_Layer from 'effect/Layer';
|
|
7
8
|
|
|
8
9
|
declare const LLMError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
9
10
|
readonly _tag: "LLMError";
|
|
@@ -107,7 +108,7 @@ type FerixError = LLMError | ParseError | PlanStoreError | SessionStoreError | P
|
|
|
107
108
|
/**
|
|
108
109
|
* Supported LLM provider names.
|
|
109
110
|
*/
|
|
110
|
-
declare const ProviderNameSchema: Schema.Literal<["claude", "cursor"]>;
|
|
111
|
+
declare const ProviderNameSchema: Schema.Literal<["claude", "cursor", "opencode"]>;
|
|
111
112
|
type ProviderName = typeof ProviderNameSchema.Type;
|
|
112
113
|
declare const PhasePromptOverridesSchema: Schema.Struct<{
|
|
113
114
|
breakdown: Schema.optional<typeof Schema.String>;
|
|
@@ -156,7 +157,7 @@ declare const LoopConfigSchema: Schema.Struct<{
|
|
|
156
157
|
additionalContext: Schema.optional<typeof Schema.String>;
|
|
157
158
|
}>>;
|
|
158
159
|
/** LLM provider to use. Defaults to "claude". */
|
|
159
|
-
provider: Schema.optional<Schema.Literal<["claude", "cursor"]>>;
|
|
160
|
+
provider: Schema.optional<Schema.Literal<["claude", "cursor", "opencode"]>>;
|
|
160
161
|
}>;
|
|
161
162
|
type LoopConfig = typeof LoopConfigSchema.Type;
|
|
162
163
|
declare const LoopSummarySchema: Schema.Struct<{
|
|
@@ -195,7 +196,7 @@ declare const decodeLoopConfig: (u: unknown, overrideOptions?: effect_SchemaAST.
|
|
|
195
196
|
} | undefined;
|
|
196
197
|
readonly additionalContext?: string | undefined;
|
|
197
198
|
} | undefined;
|
|
198
|
-
readonly provider?: "claude" | "cursor" | undefined;
|
|
199
|
+
readonly provider?: "claude" | "cursor" | "opencode" | undefined;
|
|
199
200
|
}, effect_ParseResult.ParseError, never>;
|
|
200
201
|
|
|
201
202
|
/**
|
|
@@ -224,7 +225,7 @@ declare const LoopStartedEventSchema: Schema.TaggedStruct<"LoopStarted", {
|
|
|
224
225
|
}>>;
|
|
225
226
|
additionalContext: Schema.optional<typeof Schema.String>;
|
|
226
227
|
}>>;
|
|
227
|
-
provider: Schema.optional<Schema.Literal<["claude", "cursor"]>>;
|
|
228
|
+
provider: Schema.optional<Schema.Literal<["claude", "cursor", "opencode"]>>;
|
|
228
229
|
}>;
|
|
229
230
|
timestamp: typeof Schema.Number;
|
|
230
231
|
}>;
|
|
@@ -516,7 +517,7 @@ declare const DomainEventSchema: Schema.Union<[Schema.TaggedStruct<"LoopStarted"
|
|
|
516
517
|
}>>;
|
|
517
518
|
additionalContext: Schema.optional<typeof Schema.String>;
|
|
518
519
|
}>>;
|
|
519
|
-
provider: Schema.optional<Schema.Literal<["claude", "cursor"]>>;
|
|
520
|
+
provider: Schema.optional<Schema.Literal<["claude", "cursor", "opencode"]>>;
|
|
520
521
|
}>;
|
|
521
522
|
timestamp: typeof Schema.Number;
|
|
522
523
|
}>, Schema.TaggedStruct<"LoopCompleted", {
|
|
@@ -1032,7 +1033,7 @@ declare const RunOptionsDataSchema: Schema.Struct<{
|
|
|
1032
1033
|
}>>;
|
|
1033
1034
|
additionalContext: Schema.optional<typeof Schema.String>;
|
|
1034
1035
|
}>>;
|
|
1035
|
-
provider: Schema.optional<Schema.Literal<["claude", "cursor"]>>;
|
|
1036
|
+
provider: Schema.optional<Schema.Literal<["claude", "cursor", "opencode"]>>;
|
|
1036
1037
|
}>;
|
|
1037
1038
|
consumer: Schema.optional<Schema.Literal<["tui", "headless", "none"]>>;
|
|
1038
1039
|
}>;
|
|
@@ -2098,6 +2099,8 @@ interface ProviderConfig {
|
|
|
2098
2099
|
readonly env?: Readonly<Record<string, string>>;
|
|
2099
2100
|
/** Permission mode for the CLI */
|
|
2100
2101
|
readonly permissions?: "acceptEdits" | "yolo" | "prompt";
|
|
2102
|
+
/** URL for installation instructions */
|
|
2103
|
+
readonly installUrl: string;
|
|
2101
2104
|
}
|
|
2102
2105
|
/**
|
|
2103
2106
|
* Provider interface that all LLM implementations must satisfy.
|
|
@@ -2126,7 +2129,7 @@ declare const PROVIDER_CONFIGS: Readonly<Record<ProviderName, ProviderConfig>>;
|
|
|
2126
2129
|
* ClaudeCLI namespace containing the Live layer.
|
|
2127
2130
|
*/
|
|
2128
2131
|
declare const ClaudeCLI: {
|
|
2129
|
-
readonly Live:
|
|
2132
|
+
readonly Live: effect_Layer.Layer<LLM, never, never>;
|
|
2130
2133
|
readonly Provider: Provider;
|
|
2131
2134
|
};
|
|
2132
2135
|
|
|
@@ -2134,7 +2137,7 @@ declare const ClaudeCLI: {
|
|
|
2134
2137
|
* CursorCLI namespace containing the Live layer.
|
|
2135
2138
|
*/
|
|
2136
2139
|
declare const CursorCLI: {
|
|
2137
|
-
readonly Live:
|
|
2140
|
+
readonly Live: effect_Layer.Layer<LLM, never, never>;
|
|
2138
2141
|
readonly Provider: Provider;
|
|
2139
2142
|
};
|
|
2140
2143
|
|